From: Kichan Kwon Date: Fri, 24 Mar 2017 02:01:57 +0000 (+0900) Subject: RuntimeInfo : remove deprecated enum values X-Git-Tag: submit/tizen/20170324.071330^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da45ca8ed3f1326e2147dcfbd71535348fe1c7fd;p=platform%2Fcore%2Fcsapi%2Finformation.git RuntimeInfo : remove deprecated enum values - These can be replaced with location API Change-Id: I27124bdd38522711bda9cd2776a8482088f0ede5 Signed-off-by: Kichan Kwon --- diff --git a/Tizen.System.Information/RuntimeInfo/Enumerations.cs b/Tizen.System.Information/RuntimeInfo/Enumerations.cs old mode 100644 new mode 100755 index b998d3b..c35afeb --- a/Tizen.System.Information/RuntimeInfo/Enumerations.cs +++ b/Tizen.System.Information/RuntimeInfo/Enumerations.cs @@ -41,14 +41,6 @@ namespace Tizen.System /// UsbTethering = 5, /// - /// Indicates whether the location service is allowed to use location data from GPS satellites. - /// - LocationService = 6, - /// - /// Indicates whether the location service is allowed to use location data from cellular and Wi-Fi. - /// - LocationNetworkPosition = 8, - /// /// Indicates Whether the packet data through 3G network is enabled. /// PacketData = 9, diff --git a/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs b/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs old mode 100644 new mode 100755 index b8b0c7c..591347e --- a/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs +++ b/Tizen.System.Information/RuntimeInfo/RuntimeInformation.cs @@ -72,16 +72,6 @@ namespace Tizen.System s_usbTetheringEnabled?.Invoke(null, eventArgs); break; }; - case RuntimeInformationKey.LocationService: - { - s_locationServiceEnabled?.Invoke(null, eventArgs); - break; - }; - case RuntimeInformationKey.LocationNetworkPosition: - { - s_locationNetworkPositionEnabled?.Invoke(null, eventArgs); - break; - }; case RuntimeInformationKey.PacketData: { s_packetDataEnabled?.Invoke(null, eventArgs); @@ -143,8 +133,6 @@ namespace Tizen.System [RuntimeInformationKey.WifiHotspot] = typeof(bool), [RuntimeInformationKey.BluetoothTethering] = typeof(bool), [RuntimeInformationKey.UsbTethering] = typeof(bool), - [RuntimeInformationKey.LocationService] = typeof(bool), - [RuntimeInformationKey.LocationNetworkPosition] = typeof(bool), [RuntimeInformationKey.PacketData] = typeof(bool), [RuntimeInformationKey.DataRoaming] = typeof(bool), [RuntimeInformationKey.Vibration] = typeof(bool), @@ -494,66 +482,6 @@ namespace Tizen.System } } /// - /// (event) LocationServiceEnabled is raised when system preference for location service is changed. - /// - public static event EventHandler LocationServiceEnabled - { - add - { - if (s_locationServiceEnabled == null) - { - int ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(RuntimeInformationKey.LocationService, s_runtimeInfoChangedCallback, IntPtr.Zero); - if (ret != (int)RuntimeInfoError.None) - { - Log.Error(RuntimeInfoErrorFactory.LogTag, "Interop failed to add event handler"); - RuntimeInfoErrorFactory.ThrowException(ret); - } - } - s_locationServiceEnabled += value; - } - remove - { - s_locationServiceEnabled -= value; - if (s_locationServiceEnabled == null) - { - int ret = Interop.RuntimeInfo.UnsetRuntimeInfoChangedCallback(RuntimeInformationKey.LocationService); - RuntimeInfoErrorFactory.ThrowException(ret); - } - } - } - /// - /// (event) LocationNetworkPositionEnabled is raised when system preference for allowing location service to use location data from cellular and Wi-Fi is changed. - /// - public static event EventHandler LocationNetworkPositionEnabled - { - add - { - if (s_locationNetworkPositionEnabled == null) - { - int ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(RuntimeInformationKey.LocationNetworkPosition, s_runtimeInfoChangedCallback, IntPtr.Zero); - if (ret != (int)RuntimeInfoError.None) - { - Log.Error(RuntimeInfoErrorFactory.LogTag, "Interop failed to add event handler"); - RuntimeInfoErrorFactory.ThrowException(ret); - } - } - s_locationNetworkPositionEnabled += value; - } - remove - { - s_locationNetworkPositionEnabled -= value; - if (s_locationNetworkPositionEnabled == null) - { - int ret = Interop.RuntimeInfo.UnsetRuntimeInfoChangedCallback(RuntimeInformationKey.LocationNetworkPosition); - if (ret != (int)RuntimeInfoError.None) - { - Log.Error(RuntimeInfoErrorFactory.LogTag, "Interop failed to add event handler"); - RuntimeInfoErrorFactory.ThrowException(ret); - } - } - } - } - /// /// (event) PacketDataEnabled is raised when system preference for package data through 3G network is changed. /// public static event EventHandler PacketDataEnabled @@ -587,7 +515,6 @@ namespace Tizen.System } /// /// (event) DataRoamingEnabled is raised when system preference for data roaming is changed. - /// public static event EventHandler DataRoamingEnabled {