Deprecate some enum values about location status 83/119583/5 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170322.153738 accepted/tizen/ivi/20170323.000141 accepted/tizen/mobile/20170323.000059 accepted/tizen/tv/20170323.000113 accepted/tizen/unified/20170323.000156 accepted/tizen/wearable/20170323.000125 submit/tizen/20170322.052214 tizen_4.0.m1_release
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 17 Mar 2017 10:39:38 +0000 (19:39 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Mon, 20 Mar 2017 10:12:36 +0000 (19:12 +0900)
- This feature can be checked with locations.h
- Remain functions for backward compatibility

Change-Id: I1dd7df608ae8923379076806786a92ae3ed43e85
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
include/runtime_info.h
src/runtime_info_location.c

index bf4bdca..446ccea 100644 (file)
@@ -56,8 +56,8 @@ typedef enum {
        RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED = 3, /**<Indicates whether Wi-Fi hotspot is enabled. */
        RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED = 4, /**<Indicates whether Bluetooth tethering is enabled. */
        RUNTIME_INFO_KEY_USB_TETHERING_ENABLED = 5, /**<Indicates whether USB tethering is enabled. */
-       RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED = 6, /**<Indicates whether the location service is allowed to use location data from GPS satellites. */
-       RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED = 8, /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. */
+       RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED = 6, /**<Indicates whether the location service is allowed to use location data from GPS satellites. (Deprecated since 4.0) */
+       RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED = 8, /**<Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. (Deprecated since 4.0) */
        RUNTIME_INFO_KEY_PACKET_DATA_ENABLED = 9, /**<Indicates Whether the packet data through 3G network is enabled. */
        RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED = 10, /**<Indicates whether data roaming is enabled. */
        RUNTIME_INFO_KEY_VIBRATION_ENABLED = 12, /**<Indicates whether vibration is enabled. */
index 608ccdc..da74996 100644 (file)
@@ -40,6 +40,8 @@ int runtime_info_location_service_get_value(runtime_info_value_h value)
        int vconf_value;
        int ret;
 
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release.");
+
        ret = runtime_info_vconf_get_value_int(VCONF_LOCATION_SERVICE_ENABLED, &vconf_value);
        if (ret == RUNTIME_INFO_ERROR_NONE)
                value->b = vconf_value;
@@ -49,11 +51,15 @@ int runtime_info_location_service_get_value(runtime_info_value_h value)
 
 int runtime_info_location_service_set_event_cb()
 {
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release.");
+
        return runtime_info_vconf_set_event_cb(VCONF_LOCATION_SERVICE_ENABLED, RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED, 0);
 }
 
 void runtime_info_location_service_unset_event_cb()
 {
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED is deprecated and will be removed from next release.");
+
        runtime_info_vconf_unset_event_cb(VCONF_LOCATION_SERVICE_ENABLED, 0);
 }
 
@@ -63,6 +69,8 @@ int runtime_info_location_network_get_value(runtime_info_value_h value)
        int ret;
        bool supported;
 
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release.");
+
        ret = system_info_get_platform_bool("http://tizen.org/feature/location.wps", &supported);
        if (ret != SYSTEM_INFO_ERROR_NONE)
                return RUNTIME_INFO_ERROR_IO_ERROR;
@@ -79,10 +87,14 @@ int runtime_info_location_network_get_value(runtime_info_value_h value)
 
 int runtime_info_location_network_set_event_cb()
 {
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release.");
+
        return runtime_info_vconf_set_event_cb(VCONF_LOCATION_NETWORK_ENABLED, RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED, 0);
 }
 
 void runtime_info_location_network_unset_event_cb()
 {
+       LOGW("DEPRECATION WARNING: RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED is deprecated and will be removed from next release.");
+
        runtime_info_vconf_unset_event_cb(VCONF_LOCATION_NETWORK_ENABLED, 0);
 }