Added TimeChanged get value API and modified exception.
[platform/core/csapi/system-settings.git] / Tizen.System.SystemSettings / Tizen.System.SystemSettings / SystemSettingsEventArgs.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18
19 namespace Tizen.System
20 {
21     /// <summary>
22     /// EventArgs type for the event IncomingCallRingtoneChanged
23     /// </summary>
24     public class IncomingCallRingtoneChangedEventArgs : EventArgs
25     {
26         private readonly string _incomingCallRingtone = null;
27         internal IncomingCallRingtoneChangedEventArgs(string val)
28         {
29             _incomingCallRingtone = val;
30         }
31
32         /// <summary>
33         /// The file path of the current ringtone
34         /// </summary>
35         public string Value
36         {
37             get
38             {
39                 return _incomingCallRingtone;
40             }
41         }
42     }
43
44     /// <summary>
45     /// EventArgs type for the event WallpaperHomeScreenChanged
46     /// </summary>
47     public class WallpaperHomeScreenChangedEventArgs : EventArgs
48     {
49         private readonly string _wallpaperHomeScreen = null;
50         internal WallpaperHomeScreenChangedEventArgs(string val)
51         {
52             _wallpaperHomeScreen = val;
53         }
54
55         /// <summary>
56         /// The file path of the current home screen wallpaper
57         /// </summary>
58         public string Value
59         {
60             get
61             {
62                 return _wallpaperHomeScreen;
63             }
64         }
65     }
66
67     /// <summary>
68     /// EventArgs type for the event WallpaperLockScreenChanged
69     /// </summary>
70     public class WallpaperLockScreenChangedEventArgs : EventArgs
71     {
72         private readonly string _wallpaperLockScreen = null;
73         internal WallpaperLockScreenChangedEventArgs(string val)
74         {
75             _wallpaperLockScreen = val;
76         }
77
78         /// <summary>
79         /// The file path of the current lock screen wallpaper
80         /// </summary>
81         public string Value
82         {
83             get
84             {
85                 return _wallpaperLockScreen;
86             }
87         }
88     }
89
90     /// <summary>
91     /// EventArgs type for the event FontSizeChanged
92     /// </summary>
93     public class FontSizeChangedEventArgs : EventArgs
94     {
95         private readonly SystemSettingsFontSize _fontSize;
96         internal FontSizeChangedEventArgs(SystemSettingsFontSize val)
97         {
98             _fontSize = val;
99         }
100
101         /// <summary>
102         /// The current system font size
103         /// </summary>
104         public SystemSettingsFontSize Value
105         {
106             get
107             {
108                 return _fontSize;
109             }
110         }
111     }
112
113     /// <summary>
114     /// EventArgs type for the event FontTypeChanged
115     /// </summary>
116     public class FontTypeChangedEventArgs : EventArgs
117     {
118         private readonly string _fontType = null;
119         internal FontTypeChangedEventArgs(string val)
120         {
121             _fontType = val;
122         }
123
124         /// <summary>
125         /// The current system font type
126         /// </summary>
127         public string Value
128         {
129             get
130             {
131                 return _fontType;
132             }
133         }
134     }
135
136     /// <summary>
137     /// EventArgs type for the event MotionActivationChanged
138     /// </summary>
139     public class MotionActivationSettingChangedEventArgs : EventArgs
140     {
141         private readonly bool _motionActivation;
142         internal MotionActivationSettingChangedEventArgs(bool val)
143         {
144             _motionActivation = val;
145         }
146
147         /// <summary>
148         /// Indicates whether the motion service is activated
149         /// </summary>
150         public bool Value
151         {
152             get
153             {
154                 return _motionActivation;
155             }
156         }
157     }
158
159     /// <summary>
160     /// EventArgs type for the event EmailAlertRingtoneChanged
161     /// </summary>
162     public class EmailAlertRingtoneChangedEventArgs : EventArgs
163     {
164         private readonly string _emailAlertRingtone = null;
165         internal EmailAlertRingtoneChangedEventArgs(string val)
166         {
167             _emailAlertRingtone = val;
168         }
169
170         /// <summary>
171         /// The file path of the current email alert ringtone
172         /// </summary>
173         public string Value
174         {
175             get
176             {
177                 return _emailAlertRingtone;
178             }
179         }
180     }
181
182     /// <summary>
183     /// EventArgs type for the event UsbDebuggingSettingChanged
184     /// </summary>
185     public class UsbDebuggingSettingChangedEventArgs : EventArgs
186     {
187         private readonly bool _usbDebuggingEnabled;
188         internal UsbDebuggingSettingChangedEventArgs(bool val)
189         {
190             _usbDebuggingEnabled = val;
191         }
192
193         /// <summary>
194         /// Indicates whether the USB debugging is enabled
195         /// </summary>
196         public bool Value
197         {
198             get
199             {
200                 return _usbDebuggingEnabled;
201             }
202         }
203     }
204
205     /// <summary>
206     /// EventArgs type for the event Data3GNetworkSettingChanged
207     /// </summary>
208     public class Data3GNetworkSettingChangedEventArgs : EventArgs
209     {
210         private readonly bool _data3GNetworkEnabled;
211         internal Data3GNetworkSettingChangedEventArgs(bool val)
212         {
213             _data3GNetworkEnabled = val;
214         }
215
216         /// <summary>
217         /// Indicates whether the 3G data network is enabled
218         /// </summary>
219         public bool Value
220         {
221             get
222             {
223                 return _data3GNetworkEnabled;
224             }
225         }
226     }
227
228     /// <summary>
229     /// EventArgs type for the event LockscreenAppChanged
230     /// </summary>
231     public class LockscreenAppChangedEventArgs : EventArgs
232     {
233         private readonly string _lockscreenApp = null;
234         internal LockscreenAppChangedEventArgs(string val)
235         {
236             _lockscreenApp = val;
237         }
238
239         /// <summary>
240         /// Indicates lockscreen app pkg name
241         /// </summary>
242         public string Value
243         {
244             get
245             {
246                 return _lockscreenApp;
247             }
248         }
249     }
250
251     /// <summary>
252     /// EventArgs type for the event LocaleCountryChanged
253     /// </summary>
254     public class LocaleCountryChangedEventArgs : EventArgs
255     {
256         private readonly string _localeCountry = null;
257         internal LocaleCountryChangedEventArgs(string val)
258         {
259             _localeCountry = val;
260         }
261
262         /// <summary>
263         /// Indicates the current country setting in the \<LANGUAGE\>_\<REGION\> syntax.
264         /// The country setting is in the ISO 639-2 format, and the region setting is in the ISO 3166-1 alpha-2 format
265         /// </summary>
266         public string Value
267         {
268             get
269             {
270                 return _localeCountry;
271             }
272         }
273     }
274
275     /// <summary>
276     /// EventArgs type for the event LocaleLanguageChanged
277     /// </summary>
278     public class LocaleLanguageChangedEventArgs : EventArgs
279     {
280         private readonly string _localeLanguage = null;
281         internal LocaleLanguageChangedEventArgs(string val)
282         {
283             _localeLanguage = val;
284         }
285
286         /// <summary>
287         /// Indicates the current language setting in the \<LANGUAGE\>_\<REGION\> syntax.
288         /// The language setting is in the ISO 639-2 format and the region setting is in the ISO 3166-1 alpha-2 format
289         /// </summary>
290         public string Value
291         {
292             get
293             {
294                 return _localeLanguage;
295             }
296         }
297     }
298
299     /// <summary>
300     /// EventArgs type for the event LocaleTimeFormat24HourChanged
301     /// </summary>
302     public class LocaleTimeFormat24HourSettingChangedEventArgs : EventArgs
303     {
304         private readonly bool _localeTimeFormat24Hour;
305         internal LocaleTimeFormat24HourSettingChangedEventArgs(bool val)
306         {
307             _localeTimeFormat24Hour = val;
308         }
309
310         /// <summary>
311         /// Indicates whether the 24-hour clock is used. If the value is false, the 12-hour clock is used.
312         /// </summary>
313         public bool Value
314         {
315             get
316             {
317                 return _localeTimeFormat24Hour;
318             }
319         }
320     }
321
322     /// <summary>
323     /// EventArgs type for the event LocaleTimeZoneChanged
324     /// </summary>
325     public class LocaleTimeZoneChangedEventArgs : EventArgs
326     {
327         private readonly string _localeTimeZone = null;
328         internal LocaleTimeZoneChangedEventArgs(string val)
329         {
330             _localeTimeZone = val;
331         }
332
333         /// <summary>
334         /// Indicates the current time zone
335         /// </summary>
336         public string Value
337         {
338             get
339             {
340                 return _localeTimeZone;
341             }
342         }
343     }
344
345     /// <summary>
346     /// EventArgs type for the event TimeChanged
347     /// </summary>
348     public class TimeChangedEventArgs : EventArgs
349     {
350         private readonly int _time;
351         internal TimeChangedEventArgs(int val)
352         {
353             _time = val;
354         }
355         public int Value
356         {
357             get
358             {
359                 return _time;
360             }
361         }
362     }
363
364     /// <summary>
365     /// EventArgs type for the event SoundLockChanged
366     /// </summary>
367     public class SoundLockSettingChangedEventArgs : EventArgs
368     {
369         private readonly bool _soundLock;
370         internal SoundLockSettingChangedEventArgs(bool val)
371         {
372             _soundLock = val;
373         }
374
375         /// <summary>
376         ///  Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound
377         /// </summary>
378         public bool Value
379         {
380             get
381             {
382                 return _soundLock;
383             }
384         }
385     }
386
387     /// <summary>
388     /// EventArgs type for the event SoundSilentModeChanged
389     /// </summary>
390     public class SoundSilentModeSettingChangedEventArgs : EventArgs
391     {
392         private readonly bool _soundSilentMode;
393         internal SoundSilentModeSettingChangedEventArgs(bool val)
394         {
395             _soundSilentMode = val;
396         }
397
398         /// <summary>
399         /// Indicates whether the device is in the silent mode.
400         /// </summary>
401         public bool Value
402         {
403             get
404             {
405                 return _soundSilentMode;
406             }
407         }
408     }
409
410     /// <summary>
411     /// EventArgs type for the event SoundTouchChanged
412     /// </summary>
413     public class SoundTouchSettingChangedEventArgs : EventArgs
414     {
415         private readonly bool _soundTouch;
416         internal SoundTouchSettingChangedEventArgs(bool val)
417         {
418             _soundTouch = val;
419         }
420
421         /// <summary>
422         /// Indicates whether the screen touch sound is enabled on the device.
423         /// </summary>
424         public bool Value
425         {
426             get
427             {
428                 return _soundTouch;
429             }
430         }
431     }
432
433     /// <summary>
434     /// EventArgs type for the event DisplayScreenRotationAutoChanged
435     /// </summary>
436     public class DisplayScreenRotationAutoSettingChangedEventArgs : EventArgs
437     {
438         private readonly bool _displayScreenRotationAuto;
439         internal DisplayScreenRotationAutoSettingChangedEventArgs(bool val)
440         {
441             _displayScreenRotationAuto = val;
442         }
443
444         /// <summary>
445         /// Indicates whether rotation control is automatic
446         /// </summary>
447         public bool Value
448         {
449             get
450             {
451                 return _displayScreenRotationAuto;
452             }
453         }
454     }
455
456     /// <summary>
457     /// EventArgs type for the event DeviceNameChanged
458     /// </summary>
459     public class DeviceNameChangedEventArgs : EventArgs
460     {
461         private readonly string _deviceName = null;
462         internal DeviceNameChangedEventArgs(string val)
463         {
464             _deviceName = val;
465         }
466
467         /// <summary>
468         /// Indicates device name
469         /// </summary>
470         public string Value
471         {
472             get
473             {
474                 return _deviceName;
475             }
476         }
477     }
478
479     /// <summary>
480     /// EventArgs type for the event MotionSettingChanged
481     /// </summary>
482     public class MotionSettingChangedEventArgs : EventArgs
483     {
484         private readonly bool _motionEnabled;
485         internal MotionSettingChangedEventArgs(bool val)
486         {
487             _motionEnabled = val;
488         }
489
490         /// <summary>
491         /// Indicates whether the device user has enabled motion feature
492         /// </summary>
493         public bool Value
494         {
495             get
496             {
497                 return _motionEnabled;
498             }
499         }
500     }
501
502     /// <summary>
503     /// EventArgs type for the event NetworkWifiNotificationChanged
504     /// </summary>
505     public class NetworkWifiNotificationSettingChangedEventArgs : EventArgs
506     {
507         private readonly bool _networkWifiNotification;
508         internal NetworkWifiNotificationSettingChangedEventArgs(bool val)
509         {
510             _networkWifiNotification = val;
511         }
512
513         /// <summary>
514         /// Indicates whether Wi-Fi-related notifications are enabled on the device
515         /// </summary>
516         public bool Value
517         {
518             get
519             {
520                 return _networkWifiNotification;
521             }
522         }
523     }
524
525     /// <summary>
526     /// EventArgs type for the event NetworkFlightModeChanged
527     /// </summary>
528     public class NetworkFlightModeSettingChangedEventArgs : EventArgs
529     {
530         private readonly bool _networkFlightMode;
531         internal NetworkFlightModeSettingChangedEventArgs(bool val)
532         {
533             _networkFlightMode = val;
534         }
535
536         /// <summary>
537         /// Indicates whether the device is in the flight mode
538         /// </summary>
539         public bool Value
540         {
541             get
542             {
543                 return _networkFlightMode;
544             }
545         }
546     }
547
548     /// <summary>
549     /// EventArgs type for the event ScreenBacklightTimeChanged
550     /// </summary>
551     public class ScreenBacklightTimeChangedEventArgs : EventArgs
552     {
553         private readonly int _screenBacklightTime;
554         internal ScreenBacklightTimeChangedEventArgs(int val)
555         {
556             _screenBacklightTime = val;
557         }
558
559         /// <summary>
560         /// Indicates the backlight time (in seconds)
561         /// </summary>
562         public int Value
563         {
564             get
565             {
566                 return _screenBacklightTime;
567             }
568         }
569     }
570
571     /// <summary>
572     /// EventArgs type for the event SoundNotificationChanged
573     /// </summary>
574     public class SoundNotificationChangedEventArgs : EventArgs
575     {
576         private readonly string _soundNotification = null;
577         internal SoundNotificationChangedEventArgs(string val)
578         {
579             _soundNotification = val;
580         }
581
582         /// <summary>
583         /// Indicates the file path of the current notification tone set by the user
584         /// </summary>
585         public string Value
586         {
587             get
588             {
589                 return _soundNotification;
590             }
591         }
592     }
593
594     /// <summary>
595     /// EventArgs type for the event SoundNotificationRepetitionPeriodChanged
596     /// </summary>
597     public class SoundNotificationRepetitionPeriodChangedEventArgs : EventArgs
598     {
599         private readonly int _soundNotificationRepetitionPeriod;
600         internal SoundNotificationRepetitionPeriodChangedEventArgs(int val)
601         {
602             _soundNotificationRepetitionPeriod = val;
603         }
604
605         /// <summary>
606         /// Indicates the time period for notification repetitions
607         /// </summary>
608         public int Value
609         {
610             get
611             {
612                 return _soundNotificationRepetitionPeriod;
613             }
614         }
615     }
616
617     /// <summary>
618     /// EventArgs type for the event LockStateChanged
619     /// </summary>
620     public class LockStateChangedEventArgs : EventArgs
621     {
622         private readonly SystemSettingsIdleLockState _lockState;
623         internal LockStateChangedEventArgs(SystemSettingsIdleLockState val)
624         {
625             _lockState = val;
626         }
627
628         /// <summary>
629         /// Indicates the current lock state
630         /// </summary>
631         public SystemSettingsIdleLockState Value
632         {
633             get
634             {
635                 return _lockState;
636             }
637         }
638     }
639
640     /// <summary>
641     /// EventArgs type for the event AdsIdChanged
642     /// </summary>
643     public class AdsIdChangedEventArgs : EventArgs
644     {
645         private readonly string _adsId = null;
646         internal AdsIdChangedEventArgs(string val)
647         {
648             _adsId = val;
649         }
650
651         /// <summary>
652         /// Indicates the current lock state
653         /// </summary>
654         public string Value
655         {
656             get
657             {
658                 return _adsId;
659             }
660         }
661     }
662
663     /// <summary>
664     /// EventArgs type for the event UltraDataSaveChanged
665     /// </summary>
666     public class UltraDataSaveChangedEventArgs : EventArgs
667     {
668         private readonly SystemSettingsUdsState _ultraDataSave = SystemSettingsUdsState.UdsOff;
669         internal UltraDataSaveChangedEventArgs(SystemSettingsUdsState val)
670         {
671             _ultraDataSave = val;
672         }
673
674         /// <summary>
675         /// Indicates the current lock state
676         /// </summary>
677         public SystemSettingsUdsState Value
678         {
679             get
680             {
681                 return _ultraDataSave;
682             }
683         }
684     }
685
686     /// <summary>
687     /// EventArgs type for the event UltraDataSavePackageListChanged
688     /// </summary>
689     public class UltraDataSavePackageListChangedEventArgs : EventArgs
690     {
691         private readonly string _ultraDataSavePackageList = null;
692         internal UltraDataSavePackageListChangedEventArgs(string val)
693         {
694             _ultraDataSavePackageList = val;
695         }
696
697         /// <summary>
698         /// Indicates the current lock state
699         /// </summary>
700         public string Value
701         {
702             get
703             {
704                 return _ultraDataSavePackageList;
705             }
706         }
707     }
708 }