void RealtimeTrafficInfoPluginInit () {

   roadmap_config_declare
      ("schema", &RouteInfoConfigRouteColorGood,  "#fdf66b", NULL); //Yellow
   roadmap_config_declare
      ("schema", &RouteInfoConfigRouteColorMild,  "#f57a24", NULL); //Orange
   roadmap_config_declare
      ("schema", &RouteInfoConfigRouteColorBad,  "#FF0000", NULL); //Red

   roadmap_config_declare_enumeration
      ("preferences", &RouteInfoConfigDisplayTraffic, NULL, "yes", "no", NULL);

   pens[TRAFFIC_OK] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenGood");
   roadmap_canvas_set_foreground
      (roadmap_config_get (&RouteInfoConfigRouteColorGood));
   roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);

   pens[TRAFFIC_MILD] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenMild");
   roadmap_canvas_set_foreground
      (roadmap_config_get (&RouteInfoConfigRouteColorMild));
   roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);

   pens[TRAFFIC_BAD] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenBad");
   roadmap_canvas_set_foreground
      (roadmap_config_get (&RouteInfoConfigRouteColorBad));
   roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);

   speed_text_pen = 	roadmap_canvas_create_pen("SpeedText");
	roadmap_canvas_set_foreground("#000000");

   if (roadmap_config_match(&RouteInfoConfigDisplayTraffic, "yes")){
   	RealtimeTrafficInfoRegister();
   	Realtime_SendTrafficInfo(1);
   }
}
Ejemplo n.º 2
0
void roadmap_res_download_init (void) {

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadImageUrl, "http://waze-client-resources.s3.amazonaws.com/images/", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadSoundUrl, "http://waze-client-resources.s3.amazonaws.com/sounds/", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadConfigUrl, "http://waze-client-resources.s3.amazonaws.com/config/", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadLangUrl, "http://waze-client-resources.s3.amazonaws.com/langs/", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadCountrySpecificImagesUrl, "", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadImageUrl_Ver, "", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadCountrySpecificImagesUrl_Ver, "", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadSoundUrl_Ver, "", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadConfigUrl_Ver, "", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigDownloadLangUrl_Ver, "", NULL);


   Initialized = TRUE;
}
Ejemplo n.º 3
0
void roadmap_fuzzy_initialize (void) {

    roadmap_config_declare
        ("preferences", &RoadMapConfigAccuracyStreet, "120", NULL);

    roadmap_config_declare
        ("preferences", &RoadMapConfigConfidence, "50", NULL);
}
Ejemplo n.º 4
0
/*  Name        : roadmap_recorder_voice_inialize()
 *  Purpose     : Initializes the recorder voice related parameters
 *
 */
void roadmap_recorder_voice_initialize( void )
{
    /// Declare the configuration entries
    // Server for voice upload
    roadmap_config_declare( "preferences", &RMCfgRecorderVoiceServer, CFG_RECORDER_VOICE_SERVER_DEFAULT, NULL );
    // Url prefix for the voice download
    roadmap_config_declare( "preferences", &RMCfgRecorderVoiceUrlPrefix, CFG_RECORDER_VOICE_URL_PREFIX_DEFAULT, NULL );
}
Ejemplo n.º 5
0
void roadmap_help_initialize (void) {

   roadmap_config_declare
      ("preferences", &RoadMapConfigBrowserOptions, "%s", NULL);

   roadmap_config_declare
      ("preferences", &RoadMapConfigBrowser, ROADMAP_BROWSER, NULL);
}
Ejemplo n.º 6
0
void roadmap_lang_initialize_params(void){
   roadmap_config_declare
         ("user", &RoadMapConfigSystemLanguage, "default", NULL);

   roadmap_config_declare
         ("preferences", &RoadMapConfigDefaultLanguage, "eng", NULL);

   roadmap_config_declare
         ("session", &RoadMapConfigLangUpdateTime, "", NULL);
}
Ejemplo n.º 7
0
static void roadmap_splash_init_params (void) {

   roadmap_config_declare ("session", &RoadMapConfigSplashUpdateTime, "", NULL);

   roadmap_config_declare ("session", &RoadMapConfigLastCheckTime, "-1", NULL);

   roadmap_config_declare_enumeration ("preferences", &RoadMapConfigSplashFeatureEnabled, NULL, "no",
                  "yes", NULL);

   initialized = TRUE;
}
Ejemplo n.º 8
0
void roadmap_option_initialize (void) {

   roadmap_config_declare_enumeration
      ("preferences", &RoadMapConfigGeneralToolbar, NULL, "yes", "no", NULL);

   roadmap_config_declare_enumeration
      ("preferences", &RoadMapConfigGeneralIcons, NULL, "yes", "no", NULL);

   roadmap_config_declare ("preferences", &RoadMapConfigMapCache, "8", NULL );

   roadmap_config_declare( "preferences", &RoadMapConfigGeneralLogLevel, OBJ2STR( DEFAULT_LOG_LEVEL ), NULL );

   roadmap_option_set_verbosity( roadmap_config_get_integer( &RoadMapConfigGeneralLogLevel ) );
}
Ejemplo n.º 9
0
void roadmap_sound_initialize ()
{

   int curLvl;
   char sound_dir[MAX_SOUND_NAME];

   // Initialize the volume labels for GUI
   SND_VOLUME_LVLS_LABELS[0] = roadmap_lang_get( "Silent" );
   SND_VOLUME_LVLS_LABELS[1] = roadmap_lang_get( "Low" );
   SND_VOLUME_LVLS_LABELS[2] = roadmap_lang_get( "Medium" );
   SND_VOLUME_LVLS_LABELS[3] = roadmap_lang_get( "High" );

   // Set current volume from the configuration
   roadmap_config_declare("user", &RoadMapConfigVolControl, SND_DEFAULT_VOLUME_LVL, NULL );
   curLvl = roadmap_config_get_integer( &RoadMapConfigVolControl );
//   FreeMapNativeManager_SetVolume( curLvl, SND_VOLUME_LVLS[0], SND_VOLUME_LVLS[SND_VOLUME_LVLS_COUNT-1] );

   // Preload the sound resources
   snprintf( sound_dir, sizeof( sound_dir ), "%s//%s//%s",
				roadmap_path_downloads(), "sound", roadmap_prompts_get_name() );
   FreeMapNativeSoundManager_LoadSoundData( sound_dir );

   sgInitialized = TRUE;
   // Log the operation
   roadmap_log( ROADMAP_DEBUG, "Current volume initialized to level : %d.", curLvl );
}
Ejemplo n.º 10
0
static void roadmap_option_set_geometry2 (const char *value) {

    char *p;
    char *geometry;
    char buffer[256];
    RoadMapConfigDescriptor descriptor;

    strncpy_safe (buffer, value, sizeof(buffer));

    geometry = strchr (buffer, '=');
    if (geometry == NULL) {
        roadmap_log (ROADMAP_FATAL,
                     "%s: invalid geometry option syntax", value);
    }
    *(geometry++) = 0;

    for (p = strchr(buffer, '-'); p != NULL; p =strchr(p, '-')) {
        *p = ' ';
    }

    descriptor.category = "Geometry";
    descriptor.name = strdup(buffer);
    descriptor.reference = NULL;
    roadmap_config_declare ("preferences", &descriptor, "300x200", NULL);
    roadmap_config_set (&descriptor, geometry);
}
Ejemplo n.º 11
0
void roadmap_alerter_initialize(void) {

    //minimum speed to check alerts
    roadmap_config_declare
    ("preferences", &MinSpeedToAlertCfg, "10", NULL);

    // Enable/Diable audio alerts
    roadmap_config_declare_enumeration
    ("preferences", &AlertsAudioEnabledCfg, NULL, "yes", "no", NULL);

    // Enable/Diable alerts
    roadmap_config_declare_enumeration
    ("preferences", &AlertsEnabledCfg, NULL, "yes", "no", NULL);

    RoadMapAlertProvidors.count = 0;

    alert_should_be_visible = FALSE;
    alert_active = FALSE;
    the_active_alert.active_alert_id = -1;
    the_active_alert.alert_providor = 	-1;

    roadmap_alerter_register(&RoadmapAlertProvidor);


}
Ejemplo n.º 12
0
const char *roadmap_mood_get_top_name(){

   static char mood_top[100];
   roadmap_config_declare
        ("user", &MoodCfg, "happy", NULL);
    sprintf(mood_top, "top_mood_%s", roadmap_config_get (&MoodCfg));
    return &mood_top[0];
}
Ejemplo n.º 13
0
const char *roadmap_lang_get_lang_file_update_time(const char *lang_value){

   RoadMapConfigDescriptor descriptor;

   descriptor.category = lang_value;
   descriptor.name = "Update time";
   roadmap_config_declare("session",&descriptor, "", NULL);

   return roadmap_config_get (&descriptor);
}
Ejemplo n.º 14
0
void roadmap_mood_init(void){

   const char * mood_cfg;

   if (initialized)
      return;

   roadmap_config_declare("preferences", &NewbieNumberOfMilesCfg, "50", NULL);

   roadmap_config_declare
        ("user", &MoodCfg, "baby", NULL);
    mood_cfg = roadmap_config_get (&MoodCfg);

    if (strcmp(mood_cfg,"baby")){
       Realtime_SetIsNewbieConfig(FALSE);
    }

    initialized = TRUE;
}
Ejemplo n.º 15
0
/*
 * Has to be called after the geo config in order to be able to determine
 * the proper default values for the net monitor ( Israel - true )
 *
 */
void roadmap_net_mon_initialize (void) {

   const char* netmon_enabled_default = roadmap_lang_rtl() ? "yes" : "no";
   /*
    * Initialize the network monitor status. In Israel the default is true.
    */
   roadmap_config_declare
      ( "user", &RoadMapConfigNetMonitorEnabled, netmon_enabled_default, NULL );
   RoadMapNetMonEnabled = roadmap_config_match( &RoadMapConfigNetMonitorEnabled, "yes" );
}
Ejemplo n.º 16
0
void roadmap_lang_set_lang_file_update_time(char *lang_value, char *update_time){

   RoadMapConfigDescriptor descriptor;

   descriptor.category = lang_value;
   descriptor.name = "Update time";
   roadmap_config_declare("session",&descriptor, "", NULL);

   roadmap_config_set (&descriptor, update_time);
   roadmap_config_save(FALSE);
}
Ejemplo n.º 17
0
void roadmap_help_initialize (void) {

   roadmap_config_declare
      ("preferences", &RoadMapConfigBrowserOptions, "%s", NULL);

   roadmap_config_declare
      ("preferences", &RoadMapConfigBrowser, ROADMAP_BROWSER, NULL);

   roadmap_config_declare
      ("preferences", &RoadMapConfigHelpGuidedTour, CFG_HELP_GUIDED_TOUR_URL_DEFAULT, NULL);

   roadmap_config_declare
      ("preferences", &RoadMapConfigHelpWhatToExpectUrl, CFG_HELP_WHAT_TO_EXPECT_URL_DEFAULT, NULL);

   roadmap_config_declare_enumeration
      ("preferences", &RoadMapConfigHelpShowWhatToExpect, NULL, "no", "yes", NULL);


   roadmap_config_declare_enumeration
      ("preferences", &RoadMapConfigHelpRollerNutshell, NULL, "no", "yes", NULL);
}
Ejemplo n.º 18
0
void RealtimeBonus_Init (void) {
   int i;
   static BOOL registered_provider = FALSE;
   if(!registered_provider){
   		registered_provider = TRUE;
   		roadmap_alerter_register (&RoadmapRealTimeMapbonusnsProvider);
   }
   gBonusTable.iCount = 0;
   for (i = 0; i < MAX_ADD_ONS; i++) {
      gBonusTable.bonus[i] = NULL;
   }

   roadmap_config_declare ("preferences", &RoadMapConfigCustomBonusRadius, "30", NULL);

   roadmap_config_declare ("user", &RoadMapConfigCustomBonusLastID, "0", NULL);

   roadmap_config_declare_enumeration ("preferences", &RoadMapConfigCustomBonusFeatureEnabled, NULL, "yes",
                  "no", NULL);


}
Ejemplo n.º 19
0
void roadmap_skin_init(void){
   const char *map_scheme;

   roadmap_config_declare
      ("user", &RoadMapConfigMapScheme, "", NULL);

   map_scheme = get_map_schema();
   if (map_scheme[0] != 0){
      roadmap_skin_set_subskin ("day");
   }
   roadmap_skin_auto_night_mode();
}
Ejemplo n.º 20
0
BOOL single_search_init()
{
   if( !s_initialized_once)
   {
      //   Web-service address
      roadmap_config_declare( SSR_WEBSVC_CFG_FILE,
                              &s_web_service_name,
                              SSR_WEBSVC_DEFAULT_ADDRESS,
                              NULL);
      s_initialized_once = TRUE;
   }

   return TRUE;
}
Ejemplo n.º 21
0
void roadmap_mood_set(const char *value){
   roadmap_config_declare
        ("user", &MoodCfg, "happy", NULL);

   roadmap_analytics_log_event(ANALYTICS_EVENT_MOOD, ANALYTICS_EVENT_INFO_CHANGED_TO, value);

   roadmap_config_set (&MoodCfg, value);
   roadmap_config_save(1);
   gState = roadmap_mood_from_string(value);
#ifdef QTMOBILITY
    roadmap_mood_changed(gState);
#endif
   OnMoodChanged();
}
Ejemplo n.º 22
0
void tts_load_config( void )
{
   static BOOL initialized = FALSE;

   if ( !initialized )
   {
      /*
       * Configuration declarations
       */
      roadmap_config_declare("preferences", &RMConfigTTSEnabled,
            TTS_CFG_FEATURE_ENABLED_DEFAULT, NULL);
      roadmap_config_declare("preferences", &RMConfigTTSDefaultVoiceId,
            TTS_CFG_VOICE_ID_DEFAULT, NULL);
      roadmap_config_declare( "user", &RMConfigTTSVoiceId, TTS_CFG_VOICE_ID_NOT_DEFINED, NULL );
      initialized = TRUE;
   }

   /*
    * Load state from the configuration
    */
   sgTtsDefaultVoiceId = roadmap_config_get( &RMConfigTTSDefaultVoiceId );
   sgTtsFeatureEnabled = !strcmp( "yes", roadmap_config_get( &RMConfigTTSEnabled ) );
   sgTtsVoiceId = roadmap_config_get( &RMConfigTTSVoiceId );
}
Ejemplo n.º 23
0
void roadmap_map_settings_init(void){
	  roadmap_log (ROADMAP_DEBUG, "intialiazing map settings");

	  initialized = 1;
	  roadmap_config_declare_enumeration
         ("user", &RoadMapConfigShowScreenIconsOnTap, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigShowTopBarOnTap, NULL, "no", "yes", NULL);

   roadmap_config_declare_enumeration
         ("user", &RoadMapConfigAutoShowStreetBar, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigShowWazers, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigColorRoads, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigRoadGoodies, NULL, "yes", "no", NULL);

      roadmap_config_declare ("user", &RoadMapConfigReportDontShow, "", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigShowSpeedCams, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigShowSpeedometer, NULL, "yes", "no", NULL);

      roadmap_config_declare_enumeration
         ("preferences", &RoadMapConfigEnableToggleConstruction, NULL, "yes", "no", NULL);


#if 0
      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigDisplayHouseNumbers, NULL, "no", "yes", NULL);
      roadmap_config_declare_enumeration
         ("user", &RoadMapConfigDisplayMapProblems, NULL, "no", "yes", NULL);
#endif


      // Define the labels and values
	 yesno_label[0] = roadmap_lang_get ("Yes");
	 yesno_label[1] = roadmap_lang_get ("No");
	 yesno[0] = "Yes";
	 yesno[1] = "No";
}
Ejemplo n.º 24
0
static int roadmap_car_call_back (SsdWidget widget, const char *new_value, const void *value, void *context) {

   roadmap_car_list_dialog *list_context = (roadmap_car_list_dialog *)context;
   RoadMapConfigDescriptor CarCfg =
                  ROADMAP_CONFIG_ITEM("Trip", "Car");
           
   roadmap_config_declare
        ("user", &CarCfg, "car_blue", NULL);
   roadmap_config_set (&CarCfg, value);              
   ssd_generic_list_dialog_hide ();

   if (list_context->callback)
   		(*list_context->callback)();

   return 1;
}
Ejemplo n.º 25
0
void roadmap_groups_init(void){


   roadmap_config_declare_enumeration ("user", &RoadMapConfigGroupsPopUpReports, NULL, POPUP_REPORT_VAL_NONE, POPUP_REPORT_VAL_FOLLOWING_GROUPS,POPUP_REPORT_VAL_ONLY_MAIN_GROUP, NULL);

   roadmap_config_declare_enumeration ("user", &RoadMapConfigGroupsShowWazers, NULL, SHOW_WAZER_GROUP_VAL_FOLLOWING, SHOW_WAZER_GROUP_VAL_MAIN, SHOW_WAZER_GROUP_VAL_ALL, NULL);

   roadmap_config_declare_enumeration ("user", &RoadMapConfigGroupsTipShown, NULL, "no", "yes", NULL);

   roadmap_config_declare( "preferences", &RoadMapConfigGroupsURL, "", NULL);

   roadmap_config_declare_enumeration ("preferences", &RoadMapConfigGroupsFeatureEnabled, NULL, "yes", "no", NULL);

   memset( g_ActiveGroupName, 0, sizeof(g_ActiveGroupName));
   memset( g_ActiveGroupIcon, 0, sizeof(g_ActiveGroupIcon));
}
Ejemplo n.º 26
0
static void roadmap_locator_configure (void) {

   roadmap_config_declare
       ("preferences", &RoadMapConfigStaticCounty, "0", NULL);

   if (RoadMapCountyCache == NULL) {

		roadmap_db_sector sector_global = {model__county_global_first, model__county_global_last};
		roadmap_db_sector sector_square = {model__tile_square_first, model__tile_square_last};
		
      RoadMapCountyModel =
         roadmap_db_register
            (RoadMapCountyModel, &sector_global, &RoadMapSquareHandler);
/*
      RoadMapUsModel =
         roadmap_db_register
            (RoadMapUsModel, "county", &RoadMapCountyHandler);
*/
      RoadMapTileModel =
         roadmap_db_register
            (RoadMapTileModel, &sector_square, &RoadMapSquareOneHandler);

      RoadMapCountyCacheSize = roadmap_option_cache ();
      if (RoadMapCountyCacheSize < ROADMAP_CACHE_SIZE) {
         RoadMapCountyCacheSize = ROADMAP_CACHE_SIZE;
      }
      RoadMapCountyCache = (struct roadmap_cache_entry *)
         calloc (RoadMapCountyCacheSize, sizeof(struct roadmap_cache_entry));
      roadmap_check_allocated (RoadMapCountyCache);
   }

   if (roadmap_config_get_integer(&RoadMapConfigStaticCounty) != 0) return;
/*
   if (!RoadMapUsdirActive) {
      if (! roadmap_db_open ("usdir", NULL, RoadMapUsModel, "r")) {
         roadmap_log (ROADMAP_ERROR, "cannot open directory database (usdir)");
         return;
      }

      RoadMapUsCityDictionary   = roadmap_dictionary_open ("city");
      RoadMapUsStateDictionary  = roadmap_dictionary_open ("state");

      RoadMapUsdirActive = 1;
   }
*/
}
Ejemplo n.º 27
0
///////////////////////////////////////////////////////
// Submit all debug info
static void submit (int with_confirmation)
{
   int initialized = 0;

   if (!initialized) {
      roadmap_config_declare( "preferences", &RMCfgDebugInfoServer, CFG_DEBUG_INFO_SERVER_DEFAULT, NULL );
      initialized = 1;
   }
#ifdef IPHONE
   roadmap_main_show_root(NO);
#endif

   if (with_confirmation)
      ssd_confirm_dialog ("Submit logs", "Sending logs requires large amount of data, continue?", TRUE, roadmap_confirmed_debug_info_submit , NULL);
   else
      roadmap_confirmed_debug_info_submit(dec_yes, NULL);
}
Ejemplo n.º 28
0
/***********************************************************
 *	Name 		: roadmap_device_initialize
 *	Purpose 	: Loads the backlight parameter from the configuration
 * 					and updates the application. Returns the loaded value
 */
int roadmap_device_initialize( void )
{
    // Load the configuration
    roadmap_config_declare
    ("user", &RoadMapConfigBackLight, "no", NULL);

    // Update the UI object
    roadmap_device_backlight_monitor_reset();

    // Register as gps listener
    roadmap_gps_register_listener( roadmap_device_backlight_monitor );

    // Log the operation
    roadmap_log( ROADMAP_DEBUG, "roadmap_backlight_initialize() - Current setting : %s",
                 roadmap_config_get( &RoadMapConfigBackLight ) );

    return 1;
}
Ejemplo n.º 29
0
/***********************************************************
 *	Name 		: roadmap_device_initialize
 *	Purpose 	: Loads the backlight parameter from the configuration
 * 					and updates the application. Returns the loaded value
 */
int roadmap_device_initialize( void )
{
	CFreeMapAppUi* pAppUi;
	TBool isAlwaysOn;

	// Load the configuration
    roadmap_config_declare
       ("user", &RoadMapConfigBackLight, "yes", NULL);
    isAlwaysOn = roadmap_config_match( &RoadMapConfigBackLight, "yes" );

	// Update the UI object
	pAppUi = static_cast<CFreeMapAppUi*>( CEikonEnv::Static()->EikAppUi() );
	pAppUi->SetBackLiteOn( ( TBool ) isAlwaysOn );

	// Log the operation
	roadmap_log( ROADMAP_DEBUG, "roadmap_backlight_initialize() - Current setting : %s",
													roadmap_config_get( &RoadMapConfigBackLight ) );

	return isAlwaysOn;

}
Ejemplo n.º 30
0
BOOL roadmap_foursquare_initialize(void) {

   // Name
   roadmap_config_declare(FOURSQUARE_CONFIG_TYPE, &FOURSQUARE_CFG_PRM_NAME_Var,
         FOURSQUARE_CFG_PRM_NAME_Default, NULL);

   // Password
   roadmap_config_declare_password(FOURSQUARE_CONFIG_TYPE,
         &FOURSQUARE_CFG_PRM_PASSWORD_Var, FOURSQUARE_CFG_PRM_PASSWORD_Default);

   // Tweet login
   roadmap_config_declare_enumeration(FOURSQUARE_CONFIG_TYPE,
         &FOURSQUARE_CFG_PRM_TWEET_LOGIN_Var, NULL,
         FOURSQUARE_CFG_PRM_TWEET_LOGIN_Enabled, FOURSQUARE_CFG_PRM_TWEET_LOGIN_Disabled, NULL);

   // Tweet badge unlock
   roadmap_config_declare_enumeration(FOURSQUARE_CONFIG_TYPE,
         &FOURSQUARE_CFG_PRM_TWEET_BADGE_Var, NULL,
         FOURSQUARE_CFG_PRM_TWEET_BADGE_Enabled, FOURSQUARE_CFG_PRM_TWEET_BADGE_Disabled, NULL);

   // Feature activated
   roadmap_config_declare_enumeration(FOURSQUARE_CONFIG_PREF_TYPE,
            &FOURSQUARE_CFG_PRM_ACTIVATED_Var, NULL,
            FOURSQUARE_CFG_PRM_ACTIVATED_No, FOURSQUARE_CFG_PRM_ACTIVATED_Yes, NULL);

   // Logged in status
   roadmap_config_declare_enumeration(FOURSQUARE_CONFIG_TYPE,
            &FOURSQUARE_CFG_PRM_LOGGED_IN_Var, NULL,
            FOURSQUARE_CFG_PRM_LOGGED_IN_No, FOURSQUARE_CFG_PRM_LOGGED_IN_Yes, NULL);

   yesno[0] = "Yes";
   yesno[1] = "No";

   return TRUE;

}