From dc9d38876135f81cc894b300acd103b7870f102f Mon Sep 17 00:00:00 2001 From: "jinwang.an" Date: Thu, 12 Oct 2017 20:20:37 +0900 Subject: [PATCH] [SystemSettings] Added for methods Change-Id: I1be31d2dacce290dc65729b6756c7d693bdc48cf Signed-off-by: jinwang.an --- .../Tizen.System.SystemSettings/SystemSettings.cs | 319 ++++++++++++++++++++- .../SystemSettingsEventArgs.cs | 280 ++++++++++++++---- .../SystemSettingsExceptionFactory.cs | 3 +- 3 files changed, 540 insertions(+), 62 deletions(-) mode change 100644 => 100755 src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsExceptionFactory.cs diff --git a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettings.cs b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettings.cs index 2af7223..9c910f9 100755 --- a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettings.cs +++ b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettings.cs @@ -32,6 +32,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string IncomingCallRingtone { get @@ -59,6 +65,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.home_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string WallpaperHomeScreen { get @@ -86,6 +98,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string WallpaperLockScreen { get @@ -113,6 +131,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static SystemSettingsFontSize FontSize { get @@ -140,6 +163,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string FontType { get @@ -167,6 +195,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool MotionActivationEnabled { get @@ -194,6 +227,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.notification_email + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string EmailAlertRingtone { get @@ -220,6 +259,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool UsbDebuggingEnabled { get @@ -247,6 +291,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool Data3GNetworkEnabled { get @@ -274,6 +323,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string LockscreenApp { get @@ -301,6 +356,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string DefaultFontType { get @@ -322,6 +382,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string LocaleCountry { get @@ -351,6 +416,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string LocaleLanguage { get @@ -379,6 +449,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool LocaleTimeFormat24HourEnabled { get @@ -406,6 +481,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string LocaleTimeZone { get @@ -433,6 +513,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static int Time { get @@ -451,6 +536,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool SoundLockEnabled { get @@ -470,6 +560,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool SoundSilentModeEnabled { get @@ -489,6 +584,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool SoundTouchEnabled { get @@ -508,6 +608,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool DisplayScreenRotationAutoEnabled { get @@ -527,6 +632,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string DeviceName { get @@ -545,6 +655,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool MotionEnabled { get @@ -564,6 +679,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.wifi + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool NetworkWifiNotificationEnabled { get @@ -583,6 +704,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static bool NetworkFlightModeEnabled { get @@ -602,6 +728,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static int ScreenBacklightTime { get @@ -629,6 +760,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string SoundNotification { get @@ -656,6 +793,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static int SoundNotificationRepetitionPeriod { get @@ -683,6 +825,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static SystemSettingsIdleLockState LockState { get @@ -710,6 +857,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static string AdsId { get @@ -738,6 +890,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.telephony + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static SystemSettingsUdsState UltraDataSave { get @@ -766,6 +924,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler IncomingCallRingtoneChanged { add @@ -807,6 +971,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.home_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler WallpaperHomeScreenChanged { add @@ -848,6 +1018,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler WallpaperLockScreenChanged { add @@ -889,6 +1065,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler FontSizeChanged { add @@ -930,6 +1111,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler FontTypeChanged { add @@ -971,6 +1157,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler MotionActivationSettingChanged { add @@ -1012,6 +1203,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.notification_email + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler EmailAlertRingtoneChanged { add @@ -1053,6 +1250,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler UsbDebuggingSettingChanged { add @@ -1094,6 +1296,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler Data3GNetworkSettingChanged { add @@ -1135,6 +1342,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LockscreenAppChanged { add @@ -1176,6 +1389,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LocaleCountryChanged { add @@ -1217,6 +1435,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LocaleLanguageChanged { add @@ -1258,6 +1481,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LocaleTimeFormat24HourSettingChanged { add @@ -1299,6 +1527,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LocaleTimeZoneChanged { add @@ -1330,7 +1563,7 @@ namespace Tizen.System private static readonly Interop.Settings.SystemSettingsChangedCallback s_timeChangedCallback = (SystemSettingsKeys key, IntPtr userData) => { - + int time = SystemSettings.Time; TimeChangedEventArgs eventArgs = new TimeChangedEventArgs(time); s_timeChanged?.Invoke(null, eventArgs); @@ -1341,6 +1574,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler TimeChanged { add @@ -1382,6 +1620,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler SoundLockSettingChanged { add @@ -1423,6 +1666,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler SoundSilentModeSettingChanged { add @@ -1464,6 +1712,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler SoundTouchSettingChanged { add @@ -1505,6 +1758,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler DisplayScreenRotationAutoSettingChanged { add @@ -1546,6 +1804,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler DeviceNameChanged { add @@ -1587,6 +1850,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler MotionSettingChanged { add @@ -1628,6 +1896,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.wifi + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler NetworkWifiNotificationSettingChanged { add @@ -1669,6 +1943,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler NetworkFlightModeSettingChanged { add @@ -1710,6 +1989,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler ScreenBacklightTimeChanged { add @@ -1751,6 +2035,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler SoundNotificationChanged { add @@ -1792,6 +2082,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler SoundNotificationRepetitionPeriodChanged { add @@ -1833,6 +2128,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler LockStateChanged { add @@ -1874,6 +2174,11 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler AdsIdChanged { add @@ -1915,6 +2220,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.telephony + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler UltraDataSaveChanged { add @@ -1956,6 +2267,12 @@ namespace Tizen.System /// /// http://tizen.org/privilege/systemsettings.admin /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.telephony + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public static event EventHandler UltraDataSavePackageListChanged { add diff --git a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsEventArgs.cs b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsEventArgs.cs index a2b5553..0895e51 100755 --- a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsEventArgs.cs +++ b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsEventArgs.cs @@ -21,8 +21,14 @@ namespace Tizen.System /// /// EventArgs type for the IncomingCallRingtoneChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class IncomingCallRingtoneChangedEventArgs : EventArgs { private readonly string _incomingCallRingtone = null; @@ -46,8 +52,14 @@ namespace Tizen.System /// /// EventArgs type for the WallpaperHomeScreenChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.home_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class WallpaperHomeScreenChangedEventArgs : EventArgs { private readonly string _wallpaperHomeScreen = null; @@ -71,8 +83,14 @@ namespace Tizen.System /// /// EventArgs type for the WallpaperLockScreenChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class WallpaperLockScreenChangedEventArgs : EventArgs { private readonly string _wallpaperLockScreen = null; @@ -96,8 +114,13 @@ namespace Tizen.System /// /// EventArgs type for the FontSizeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class FontSizeChangedEventArgs : EventArgs { private readonly SystemSettingsFontSize _fontSize; @@ -121,8 +144,13 @@ namespace Tizen.System /// /// EventArgs type for the FontTypeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class FontTypeChangedEventArgs : EventArgs { private readonly string _fontType = null; @@ -146,8 +174,13 @@ namespace Tizen.System /// /// EventArgs type for the MotionActivationChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class MotionActivationSettingChangedEventArgs : EventArgs { private readonly bool _motionActivation; @@ -171,8 +204,14 @@ namespace Tizen.System /// /// EventArgs type for the EmailAlertRingtoneChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.notification_email + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class EmailAlertRingtoneChangedEventArgs : EventArgs { private readonly string _emailAlertRingtone = null; @@ -196,8 +235,13 @@ namespace Tizen.System /// /// EventArgs type for the UsbDebuggingSettingChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class UsbDebuggingSettingChangedEventArgs : EventArgs { private readonly bool _usbDebuggingEnabled; @@ -221,8 +265,13 @@ namespace Tizen.System /// /// EventArgs type for the Data3GNetworkSettingChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class Data3GNetworkSettingChangedEventArgs : EventArgs { private readonly bool _data3GNetworkEnabled; @@ -246,8 +295,14 @@ namespace Tizen.System /// /// EventArgs type for the LockscreenAppChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.lock_screen + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LockscreenAppChangedEventArgs : EventArgs { private readonly string _lockscreenApp = null; @@ -271,8 +326,13 @@ namespace Tizen.System /// /// EventArgs type for the LocaleCountryChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LocaleCountryChangedEventArgs : EventArgs { private readonly string _localeCountry = null; @@ -297,8 +357,13 @@ namespace Tizen.System /// /// EventArgs type for the LocaleLanguageChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LocaleLanguageChangedEventArgs : EventArgs { private readonly string _localeLanguage = null; @@ -323,8 +388,13 @@ namespace Tizen.System /// /// EventArgs type for the LocaleTimeFormat24HourChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LocaleTimeFormat24HourSettingChangedEventArgs : EventArgs { private readonly bool _localeTimeFormat24Hour; @@ -348,8 +418,13 @@ namespace Tizen.System /// /// EventArgs type for the LocaleTimeZoneChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LocaleTimeZoneChangedEventArgs : EventArgs { private readonly string _localeTimeZone = null; @@ -373,8 +448,13 @@ namespace Tizen.System /// /// EventArgs type for the TimeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class TimeChangedEventArgs : EventArgs { private readonly int _time; @@ -398,8 +478,13 @@ namespace Tizen.System /// /// EventArgs type for the SoundLockChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class SoundLockSettingChangedEventArgs : EventArgs { private readonly bool _soundLock; @@ -423,8 +508,13 @@ namespace Tizen.System /// /// EventArgs type for the SoundSilentModeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class SoundSilentModeSettingChangedEventArgs : EventArgs { private readonly bool _soundSilentMode; @@ -448,8 +538,13 @@ namespace Tizen.System /// /// EventArgs type for the SoundTouchChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class SoundTouchSettingChangedEventArgs : EventArgs { private readonly bool _soundTouch; @@ -473,8 +568,13 @@ namespace Tizen.System /// /// EventArgs type for the DisplayScreenRotationAutoChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class DisplayScreenRotationAutoSettingChangedEventArgs : EventArgs { private readonly bool _displayScreenRotationAuto; @@ -498,8 +598,13 @@ namespace Tizen.System /// /// EventArgs type for the DeviceNameChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class DeviceNameChangedEventArgs : EventArgs { private readonly string _deviceName = null; @@ -523,8 +628,13 @@ namespace Tizen.System /// /// EventArgs type for the MotionSettingChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class MotionSettingChangedEventArgs : EventArgs { private readonly bool _motionEnabled; @@ -548,8 +658,14 @@ namespace Tizen.System /// /// EventArgs type for the NetworkWifiNotificationChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.wifi + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class NetworkWifiNotificationSettingChangedEventArgs : EventArgs { private readonly bool _networkWifiNotification; @@ -573,8 +689,13 @@ namespace Tizen.System /// /// EventArgs type for the NetworkFlightModeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class NetworkFlightModeSettingChangedEventArgs : EventArgs { private readonly bool _networkFlightMode; @@ -598,8 +719,13 @@ namespace Tizen.System /// /// EventArgs type for the ScreenBacklightTimeChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class ScreenBacklightTimeChangedEventArgs : EventArgs { private readonly int _screenBacklightTime; @@ -623,8 +749,14 @@ namespace Tizen.System /// /// EventArgs type for the SoundNotificationChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class SoundNotificationChangedEventArgs : EventArgs { private readonly string _soundNotification = null; @@ -648,8 +780,13 @@ namespace Tizen.System /// /// EventArgs type for the SoundNotificationRepetitionPeriodChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class SoundNotificationRepetitionPeriodChangedEventArgs : EventArgs { private readonly int _soundNotificationRepetitionPeriod; @@ -673,8 +810,14 @@ namespace Tizen.System /// /// EventArgs type for the LockStateChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/systemsetting.incoming_call + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class LockStateChangedEventArgs : EventArgs { private readonly SystemSettingsIdleLockState _lockState; @@ -698,8 +841,13 @@ namespace Tizen.System /// /// EventArgs type for the AdsIdChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class AdsIdChangedEventArgs : EventArgs { private readonly string _adsId = null; @@ -723,8 +871,14 @@ namespace Tizen.System /// /// EventArgs type for the UltraDataSaveChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.telephony + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class UltraDataSaveChangedEventArgs : EventArgs { private readonly SystemSettingsUdsState _ultraDataSave = SystemSettingsUdsState.UdsOff; @@ -748,8 +902,14 @@ namespace Tizen.System /// /// EventArgs type for the UltraDataSavePackageListChanged event. /// - /// http://tizen.org/privilege/systemsettings.admin - /// platform + /// http://tizen.org/privilege/systemsettings.admin + /// platform + /// http://tizen.org/feature/systemsetting + /// http://tizen.org/feature/network.telephony + /// Invalid Argument + /// Not Supported feature + /// Invalid operation + /// Thrown when application does not have privilege to access this method. public class UltraDataSavePackageListChangedEventArgs : EventArgs { private readonly string _ultraDataSavePackageList = null; diff --git a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsExceptionFactory.cs b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsExceptionFactory.cs old mode 100644 new mode 100755 index 039ff41..86c9ec0 --- a/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsExceptionFactory.cs +++ b/src/Tizen.System.SystemSettings/Tizen.System.SystemSettings/SystemSettingsExceptionFactory.cs @@ -48,7 +48,8 @@ namespace Tizen.System case SystemSettingsError.IoError: //fall through case SystemSettingsError.PermissionDenied: - //fall through + exp = new UnauthorizedAccessException(msg); + break; case SystemSettingsError.LockScreenAppPasswordMode: //fall through default: -- 2.7.4