/* Save Receiver MAC from GConf. */
if (_gps->io.address)
- gconf_client_set_string(gconf_client, GCONF_KEY_RCVR_MAC, _gps->io.address, NULL);
+ gconf_client_set_string(gconf_client, GCONF_KEY_GPS_MAC, _gps->io.address, NULL);
else
- gconf_client_unset(gconf_client, GCONF_KEY_RCVR_MAC, NULL);
+ gconf_client_unset(gconf_client, GCONF_KEY_GPS_MAC, NULL);
+
+gconf_client_set_int(gconf_client, GCONF_KEY_GPS_TYPE, _gps->io.type, NULL);
+gconf_client_set_int(gconf_client, GCONF_KEY_GPS_PORT, _gps->io.port, NULL);
/* Save Auto-Download. */
gconf_client_set_bool(gconf_client, GCONF_KEY_AUTO_DOWNLOAD, _auto_download, NULL);
g_mkdir_with_parents(config_dir, 0700);
/* Get Receiver MAC from GConf. Default is scanned via hci_inquiry. */
-_gps->io.address = gconf_client_get_string(gconf_client, GCONF_KEY_RCVR_MAC, NULL);
+_gps->io.address = gconf_client_get_string(gconf_client, GCONF_KEY_GPS_MAC, NULL);
+_gps->io.type = gconf_client_get_int(gconf_client, GCONF_KEY_GPS_TYPE, NULL);
+_gps->io.port = gconf_client_get_int(gconf_client, GCONF_KEY_GPS_PORT, NULL);
/* Get Auto-Download. Default is FALSE. */
_auto_download = gconf_client_get_bool(gconf_client, GCONF_KEY_AUTO_DOWNLOAD, NULL);
#define REPO_DEFAULT_VIEW_ZOOM_STEPS (1)
/* GPS */
-#define GCONF_KEY_RCVR_MAC GCONF_KEY_PREFIX"/receiver_mac"
-#define GCONF_KEY_RCVR_CHAN GCONF_KEY_PREFIX"/receiver_channel"
+#define GCONF_KEY_GPS_TYPE GCONF_KEY_PREFIX"/receiver_type"
+#define GCONF_KEY_GPS_MAC GCONF_KEY_PREFIX"/receiver_mac"
+#define GCONF_KEY_GPS_PORT GCONF_KEY_PREFIX"/receiver_port"
+#define GCONF_KEY_GPS_CHAN GCONF_KEY_PREFIX"/receiver_channel"
#define GCONF_KEY_ENABLE_GPS GCONF_KEY_PREFIX"/enable_gps"
#define GCONF_KEY_GPS_INFO GCONF_KEY_PREFIX"/gps_info"