#define LOCATION_MENU_NET 2
#define LOCATION_MENU_MYPOS 3
-#define GL_GPS_INDEX 2
+#define GL_GPS_INDEX 1
int setting_location_set_int(const char *path, int val)
{
{
LOC_LOG("setting_location_create_gl");
struct ug_data *ugd = (struct ug_data *)data;
- ugd->opt_index = 0;
Evas_Object *genlist;
ugd->itc_top_sep->func.state_get = NULL;
ugd->itc_top_sep->func.del = NULL;
ugd->gi_top_sep = elm_genlist_item_append(genlist, ugd->itc_top_sep, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
- ugd->opt_index++;
+ ugd->opt_index = 0;
elm_genlist_item_select_mode_set(ugd->gi_top_sep, ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
ugd->itc_gps = elm_genlist_item_class_new();
else if (!ugd->is_gps && !ugd->is_net) strncpy(value, "GPSDisabled|WPSDisabled", sizeof(value));
service_add_extra_data(result, "State", value);
+ if (ugd->is_gps) strncpy(value, "enable", sizeof(value));
+ else if (!ugd->is_gps) strncpy(value, "disable", sizeof(value));
+ service_add_extra_data(result, "http://tizen.org/appcontrol/data/location/gps", value);
+
+ if (ugd->is_net) strncpy(value, "enable", sizeof(value));
+ else if (!ugd->is_net) strncpy(value, "disable", sizeof(value));
+ service_add_extra_data(result, "http://tizen.org/appcontrol/data/location/wps", value);
+
ug_send_result(ug, result);
service_destroy(result);
+
setting_location_deinit(ugd);
if (ugd->base != NULL) {
<description>Setting Location AppControl</description>
<ui-application appid="setting-location-efl" exec="/usr/ug/bin/setting-location-efl" nodisplay="true" multiple="true" type="capp" taskmanage="false">
<label>Settings Location</label>
+ <application-service>
+ <operation name="http://tizen.org/appcontrol/operation/setting/location"/>
+ </application-service>
+ <application-service>
+ <operation name="http://samsung.com/appcontrol/operation/setting/location"/>
+ </application-service>
+ <application-service>
+ <operation name="http://tizen.org/appcontrol/operation/configure/location"/>
+ </application-service>
</ui-application>
</manifest>