Changed license Boilerplate for source code
[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         /// <summary>
28         /// The enum for IncomingCallRingtone system setting key
29         /// </summary>
30         public SystemSettingsKeys Key
31         {
32             get
33             {
34                 return SystemSettingsKeys.IncomingCallRingtone;
35             }
36         }
37
38         internal IncomingCallRingtoneChangedEventArgs(string val)
39         {
40             _incomingCallRingtone = val;
41         }
42
43         /// <summary>
44         /// The file path of the current ringtone
45         /// </summary>
46         public string Value
47         {
48             get
49             {
50                 return _incomingCallRingtone;
51             }
52         }
53     }
54
55     /// <summary>
56     /// EventArgs type for the event WallpaperHomeScreenChanged
57     /// </summary>
58     public class WallpaperHomeScreenChangedEventArgs : EventArgs
59     {
60         private readonly string _wallpaperHomeScreen = null;
61         /// <summary>
62         /// The enum for WallpaperHomeScreen system setting key
63         /// </summary>
64         public SystemSettingsKeys Key
65         {
66             get
67             {
68                 return SystemSettingsKeys.WallpaperHomeScreen;
69             }
70         }
71
72         internal WallpaperHomeScreenChangedEventArgs(string val)
73         {
74             _wallpaperHomeScreen = val;
75         }
76
77         /// <summary>
78         /// The file path of the current home screen wallpaper
79         /// </summary>
80         public string Value
81         {
82             get
83             {
84                 return _wallpaperHomeScreen;
85             }
86         }
87     }
88
89     /// <summary>
90     /// EventArgs type for the event WallpaperLockScreenChanged
91     /// </summary>
92     public class WallpaperLockScreenChangedEventArgs : EventArgs
93     {
94         private readonly string _wallpaperLockScreen = null;
95         /// <summary>
96         /// The enum for WallpaperLockScreen system setting key
97         /// </summary>
98         public SystemSettingsKeys Key
99         {
100             get
101             {
102                 return SystemSettingsKeys.WallpaperLockScreen;
103             }
104         }
105
106         internal WallpaperLockScreenChangedEventArgs(string val)
107         {
108             _wallpaperLockScreen = val;
109         }
110
111         /// <summary>
112         /// The file path of the current lock screen wallpaper
113         /// </summary>
114         public string Value
115         {
116             get
117             {
118                 return _wallpaperLockScreen;
119             }
120         }
121     }
122
123     /// <summary>
124     /// EventArgs type for the event FontSizeChanged
125     /// </summary>
126     public class FontSizeChangedEventArgs : EventArgs
127     {
128         private readonly SystemSettingsFontSize _fontSize;
129         /// <summary>
130         /// The enum for FontSize system setting key
131         /// </summary>
132         public SystemSettingsKeys Key
133         {
134             get
135             {
136                 return SystemSettingsKeys.FontSize;
137             }
138         }
139         internal FontSizeChangedEventArgs(SystemSettingsFontSize val)
140         {
141             _fontSize = val;
142         }
143
144         /// <summary>
145         /// The current system font size
146         /// </summary>
147         public SystemSettingsFontSize Value
148         {
149             get
150             {
151                 return _fontSize;
152             }
153         }
154     }
155
156     /// <summary>
157     /// EventArgs type for the event FontTypeChanged
158     /// </summary>
159     public class FontTypeChangedEventArgs : EventArgs
160     {
161         private readonly string _fontType = null;
162         /// <summary>
163         /// The enum for FontType system setting key
164         /// </summary>
165         public SystemSettingsKeys Key
166         {
167             get
168             {
169                 return SystemSettingsKeys.FontType;
170             }
171         }
172         internal FontTypeChangedEventArgs(string val)
173         {
174             _fontType = val;
175         }
176
177         /// <summary>
178         /// The current system font type
179         /// </summary>
180         public string Value
181         {
182             get
183             {
184                 return _fontType;
185             }
186         }
187     }
188
189     /// <summary>
190     /// EventArgs type for the event MotionActivationChanged
191     /// </summary>
192     public class MotionActivationSettingChangedEventArgs : EventArgs
193     {
194         private readonly bool _motionActivation;
195         /// <summary>
196         /// The enum for MotionActivation system setting key
197         /// </summary>
198         public SystemSettingsKeys Key
199         {
200             get
201             {
202                 return SystemSettingsKeys.MotionActivationEnabled;
203             }
204         }
205         internal MotionActivationSettingChangedEventArgs(bool val)
206         {
207             _motionActivation = val;
208         }
209
210         /// <summary>
211         /// Indicates whether the motion service is activated
212         /// </summary>
213         public bool Value
214         {
215             get
216             {
217                 return _motionActivation;
218             }
219         }
220     }
221
222     /// <summary>
223     /// EventArgs type for the event EmailAlertRingtoneChanged
224     /// </summary>
225     public class EmailAlertRingtoneChangedEventArgs : EventArgs
226     {
227         private readonly string _emailAlertRingtone = null;
228         /// <summary>
229         /// The enum for EmailAlertRingtone system setting key
230         /// </summary>
231         public SystemSettingsKeys Key
232         {
233             get
234             {
235                 return SystemSettingsKeys.EmailAlertRingtone;
236             }
237         }
238         internal EmailAlertRingtoneChangedEventArgs(string val)
239         {
240             _emailAlertRingtone = val;
241         }
242
243         /// <summary>
244         /// The file path of the current email alert ringtone
245         /// </summary>
246         public string Value
247         {
248             get
249             {
250                 return _emailAlertRingtone;
251             }
252         }
253     }
254
255     /// <summary>
256     /// EventArgs type for the event UsbDebuggingSettingChanged
257     /// </summary>
258     public class UsbDebuggingSettingChangedEventArgs : EventArgs
259     {
260         private readonly bool _usbDebuggingEnabled;
261         /// <summary>
262         /// The enum for UsbDebuggingEnabled system setting key
263         /// </summary>
264         public SystemSettingsKeys Key
265         {
266             get
267             {
268                 return SystemSettingsKeys.UsbDebuggingEnabled;
269             }
270         }
271         internal UsbDebuggingSettingChangedEventArgs(bool val)
272         {
273             _usbDebuggingEnabled = val;
274         }
275
276         /// <summary>
277         /// Indicates whether the USB debugging is enabled
278         /// </summary>
279         public bool Value
280         {
281             get
282             {
283                 return _usbDebuggingEnabled;
284             }
285         }
286     }
287
288     /// <summary>
289     /// EventArgs type for the event Data3GNetworkSettingChanged
290     /// </summary>
291     public class Data3GNetworkSettingChangedEventArgs : EventArgs
292     {
293         private readonly bool _data3GNetworkEnabled;
294         /// <summary>
295         /// The enum for Data3GNetworkEnabled system setting key
296         /// </summary>
297         public SystemSettingsKeys Key
298         {
299             get
300             {
301                 return SystemSettingsKeys.Data3GNetworkEnabled;
302             }
303         }
304         internal Data3GNetworkSettingChangedEventArgs(bool val)
305         {
306             _data3GNetworkEnabled = val;
307         }
308
309         /// <summary>
310         /// Indicates whether the 3G data network is enabled
311         /// </summary>
312         public bool Value
313         {
314             get
315             {
316                 return _data3GNetworkEnabled;
317             }
318         }
319     }
320
321     /// <summary>
322     /// EventArgs type for the event LockscreenAppChanged
323     /// </summary>
324     public class LockscreenAppChangedEventArgs : EventArgs
325     {
326         private readonly string _lockscreenApp = null;
327         /// <summary>
328         /// The enum for LockscreenApp system setting key
329         /// </summary>
330         public SystemSettingsKeys Key
331         {
332             get
333             {
334                 return SystemSettingsKeys.LockscreenApp;
335             }
336         }
337         internal LockscreenAppChangedEventArgs(string val)
338         {
339             _lockscreenApp = val;
340         }
341
342         /// <summary>
343         /// Indicates lockscreen app pkg name
344         /// </summary>
345         public string Value
346         {
347             get
348             {
349                 return _lockscreenApp;
350             }
351         }
352     }
353
354     /// <summary>
355     /// EventArgs type for the event LocaleCountryChanged
356     /// </summary>
357     public class LocaleCountryChangedEventArgs : EventArgs
358     {
359         private readonly string _localeCountry = null;
360         /// <summary>
361         /// The enum for LocaleCountry system setting key
362         /// </summary>
363         public SystemSettingsKeys Key
364         {
365             get
366             {
367                 return SystemSettingsKeys.LocaleCountry;
368             }
369         }
370         internal LocaleCountryChangedEventArgs(string val)
371         {
372             _localeCountry = val;
373         }
374
375         /// <summary>
376         /// Indicates the current country setting in the \<LANGUAGE\>_\<REGION\> syntax.
377         /// The country setting is in the ISO 639-2 format, and the region setting is in the ISO 3166-1 alpha-2 format
378         /// </summary>
379         public string Value
380         {
381             get
382             {
383                 return _localeCountry;
384             }
385         }
386     }
387
388     /// <summary>
389     /// EventArgs type for the event LocaleLanguageChanged
390     /// </summary>
391     public class LocaleLanguageChangedEventArgs : EventArgs
392     {
393         private readonly string _localeLanguage = null;
394         /// <summary>
395         /// The enum for LocaleLanguage system setting key
396         /// </summary>
397         public SystemSettingsKeys Key
398         {
399             get
400             {
401                 return SystemSettingsKeys.LocaleLanguage;
402             }
403         }
404         internal LocaleLanguageChangedEventArgs(string val)
405         {
406             _localeLanguage = val;
407         }
408
409         /// <summary>
410         /// Indicates the current language setting in the \<LANGUAGE\>_\<REGION\> syntax.
411         /// The language setting is in the ISO 639-2 format and the region setting is in the ISO 3166-1 alpha-2 format
412         /// </summary>
413         public string Value
414         {
415             get
416             {
417                 return _localeLanguage;
418             }
419         }
420     }
421
422     /// <summary>
423     /// EventArgs type for the event LocaleTimeFormat24HourChanged
424     /// </summary>
425     public class LocaleTimeFormat24HourSettingChangedEventArgs : EventArgs
426     {
427         private readonly bool _localeTimeFormat24Hour;
428         /// <summary>
429         /// The enum for LocaleTimeFormat24Hour system setting key
430         /// </summary>
431         public SystemSettingsKeys Key
432         {
433             get
434             {
435                 return SystemSettingsKeys.LocaleTimeFormat24HourEnabled;
436             }
437         }
438         internal LocaleTimeFormat24HourSettingChangedEventArgs(bool val)
439         {
440             _localeTimeFormat24Hour = val;
441         }
442
443         /// <summary>
444         /// Indicates whether the 24-hour clock is used. If the value is false, the 12-hour clock is used.
445         /// </summary>
446         public bool Value
447         {
448             get
449             {
450                 return _localeTimeFormat24Hour;
451             }
452         }
453     }
454
455     /// <summary>
456     /// EventArgs type for the event LocaleTimeZoneChanged
457     /// </summary>
458     public class LocaleTimeZoneChangedEventArgs : EventArgs
459     {
460         private readonly string _localeTimeZone = null;
461         /// <summary>
462         /// The enum for LocaleTimeZone system setting key
463         /// </summary>
464         public SystemSettingsKeys Key
465         {
466             get
467             {
468                 return SystemSettingsKeys.LocaleTimeZone;
469             }
470         }
471         internal LocaleTimeZoneChangedEventArgs(string val)
472         {
473             _localeTimeZone = val;
474         }
475
476         /// <summary>
477         /// Indicates the current time zone
478         /// </summary>
479         public string Value
480         {
481             get
482             {
483                 return _localeTimeZone;
484             }
485         }
486     }
487
488     /// <summary>
489     /// EventArgs type for the event TimeChanged
490     /// </summary>
491     public class TimeChangedEventArgs : EventArgs
492     {
493         /// <summary>
494         /// The enum for Time system setting event
495         /// </summary>
496         public SystemSettingsKeys Key
497         {
498             get
499             {
500                 return SystemSettingsKeys.Time;
501             }
502         }
503         internal TimeChangedEventArgs()
504         {
505         }
506     }
507
508     /// <summary>
509     /// EventArgs type for the event SoundLockChanged
510     /// </summary>
511     public class SoundLockSettingChangedEventArgs : EventArgs
512     {
513         private readonly bool _soundLock;
514         /// <summary>
515         /// The enum for SoundLock system setting key
516         /// </summary>
517         public SystemSettingsKeys Key
518         {
519             get
520             {
521                 return SystemSettingsKeys.SoundLockEnabled;
522             }
523         }
524         internal SoundLockSettingChangedEventArgs(bool val)
525         {
526             _soundLock = val;
527         }
528
529         /// <summary>
530         ///  Indicates whether the screen lock sound is enabled on the device. ex) LCD on/off sound
531         /// </summary>
532         public bool Value
533         {
534             get
535             {
536                 return _soundLock;
537             }
538         }
539     }
540
541     /// <summary>
542     /// EventArgs type for the event SoundSilentModeChanged
543     /// </summary>
544     public class SoundSilentModeSettingChangedEventArgs : EventArgs
545     {
546         private readonly bool _soundSilentMode;
547         /// <summary>
548         /// The enum for SoundSilentMode system setting key
549         /// </summary>
550         public SystemSettingsKeys Key
551         {
552             get
553             {
554                 return SystemSettingsKeys.SoundSilentModeEnabled;
555             }
556         }
557         internal SoundSilentModeSettingChangedEventArgs(bool val)
558         {
559             _soundSilentMode = val;
560         }
561
562         /// <summary>
563         /// Indicates whether the device is in the silent mode.
564         /// </summary>
565         public bool Value
566         {
567             get
568             {
569                 return _soundSilentMode;
570             }
571         }
572     }
573
574     /// <summary>
575     /// EventArgs type for the event SoundTouchChanged
576     /// </summary>
577     public class SoundTouchSettingChangedEventArgs : EventArgs
578     {
579         private readonly bool _soundTouch;
580         /// <summary>
581         /// The enum for SoundTouch system setting key
582         /// </summary>
583         public SystemSettingsKeys Key
584         {
585             get
586             {
587                 return SystemSettingsKeys.SoundTouchEnabled;
588             }
589         }
590         internal SoundTouchSettingChangedEventArgs(bool val)
591         {
592             _soundTouch = val;
593         }
594
595         /// <summary>
596         /// Indicates whether the screen touch sound is enabled on the device.
597         /// </summary>
598         public bool Value
599         {
600             get
601             {
602                 return _soundTouch;
603             }
604         }
605     }
606
607     /// <summary>
608     /// EventArgs type for the event DisplayScreenRotationAutoChanged
609     /// </summary>
610     public class DisplayScreenRotationAutoSettingChangedEventArgs : EventArgs
611     {
612         private readonly bool _displayScreenRotationAuto;
613         /// <summary>
614         /// The enum for DisplayScreenRotationAuto system setting key
615         /// </summary>
616         public SystemSettingsKeys Key
617         {
618             get
619             {
620                 return SystemSettingsKeys.DisplayScreenRotationAutoEnabled;
621             }
622         }
623         internal DisplayScreenRotationAutoSettingChangedEventArgs(bool val)
624         {
625             _displayScreenRotationAuto = val;
626         }
627
628         /// <summary>
629         /// Indicates whether rotation control is automatic
630         /// </summary>
631         public bool Value
632         {
633             get
634             {
635                 return _displayScreenRotationAuto;
636             }
637         }
638     }
639
640     /// <summary>
641     /// EventArgs type for the event DeviceNameChanged
642     /// </summary>
643     public class DeviceNameChangedEventArgs : EventArgs
644     {
645         private readonly string _deviceName = null;
646         /// <summary>
647         /// The enum for DeviceName system setting key
648         /// </summary>
649         public SystemSettingsKeys Key
650         {
651             get
652             {
653                 return SystemSettingsKeys.DeviceName;
654             }
655         }
656         internal DeviceNameChangedEventArgs(string val)
657         {
658             _deviceName = val;
659         }
660
661         /// <summary>
662         /// Indicates device name
663         /// </summary>
664         public string Value
665         {
666             get
667             {
668                 return _deviceName;
669             }
670         }
671     }
672
673     /// <summary>
674     /// EventArgs type for the event MotionSettingChanged
675     /// </summary>
676     public class MotionSettingChangedEventArgs : EventArgs
677     {
678         private readonly bool _motionEnabled;
679         /// <summary>
680         /// The enum for MotionEnabled system setting key
681         /// </summary>
682         public SystemSettingsKeys Key
683         {
684             get
685             {
686                 return SystemSettingsKeys.MotionEnabled;
687             }
688         }
689         internal MotionSettingChangedEventArgs(bool val)
690         {
691             _motionEnabled = val;
692         }
693
694         /// <summary>
695         /// Indicates whether the device user has enabled motion feature
696         /// </summary>
697         public bool Value
698         {
699             get
700             {
701                 return _motionEnabled;
702             }
703         }
704     }
705
706     /// <summary>
707     /// EventArgs type for the event NetworkWifiNotificationChanged
708     /// </summary>
709     public class NetworkWifiNotificationSettingChangedEventArgs : EventArgs
710     {
711         private readonly bool _networkWifiNotification;
712         /// <summary>
713         /// The enum for NetworkWifiNotification system setting key
714         /// </summary>
715         public SystemSettingsKeys Key
716         {
717             get
718             {
719                 return SystemSettingsKeys.NetworkWifiNotificationEnabled;
720             }
721         }
722         internal NetworkWifiNotificationSettingChangedEventArgs(bool val)
723         {
724             _networkWifiNotification = val;
725         }
726
727         /// <summary>
728         /// Indicates whether Wi-Fi-related notifications are enabled on the device
729         /// </summary>
730         public bool Value
731         {
732             get
733             {
734                 return _networkWifiNotification;
735             }
736         }
737     }
738
739     /// <summary>
740     /// EventArgs type for the event NetworkFlightModeChanged
741     /// </summary>
742     public class NetworkFlightModeSettingChangedEventArgs : EventArgs
743     {
744         private readonly bool _networkFlightMode;
745         /// <summary>
746         /// The enum for NetworkFlightMode system setting key
747         /// </summary>
748         public SystemSettingsKeys Key
749         {
750             get
751             {
752                 return SystemSettingsKeys.NetworkFlightModeEnabled;
753             }
754         }
755         internal NetworkFlightModeSettingChangedEventArgs(bool val)
756         {
757             _networkFlightMode = val;
758         }
759
760         /// <summary>
761         /// Indicates whether the device is in the flight mode
762         /// </summary>
763         public bool Value
764         {
765             get
766             {
767                 return _networkFlightMode;
768             }
769         }
770     }
771
772     /// <summary>
773     /// EventArgs type for the event ScreenBacklightTimeChanged
774     /// </summary>
775     public class ScreenBacklightTimeChangedEventArgs : EventArgs
776     {
777         private readonly int _screenBacklightTime;
778         /// <summary>
779         /// The enum for ScreenBacklightTime system setting key
780         /// </summary>
781         public SystemSettingsKeys Key
782         {
783             get
784             {
785                 return SystemSettingsKeys.ScreenBacklightTime;
786             }
787         }
788         internal ScreenBacklightTimeChangedEventArgs(int val)
789         {
790             _screenBacklightTime = val;
791         }
792
793         /// <summary>
794         /// Indicates the backlight time (in seconds)
795         /// </summary>
796         public int Value
797         {
798             get
799             {
800                 return _screenBacklightTime;
801             }
802         }
803     }
804
805     /// <summary>
806     /// EventArgs type for the event SoundNotificationChanged
807     /// </summary>
808     public class SoundNotificationChangedEventArgs : EventArgs
809     {
810         private readonly string _soundNotification = null;
811         /// <summary>
812         /// The enum for SoundNotification system setting key
813         /// </summary>
814         public SystemSettingsKeys Key
815         {
816             get
817             {
818                 return SystemSettingsKeys.SoundNotification;
819             }
820         }
821         internal SoundNotificationChangedEventArgs(string val)
822         {
823             _soundNotification = val;
824         }
825
826         /// <summary>
827         /// Indicates the file path of the current notification tone set by the user
828         /// </summary>
829         public string Value
830         {
831             get
832             {
833                 return _soundNotification;
834             }
835         }
836     }
837
838     /// <summary>
839     /// EventArgs type for the event SoundNotificationRepetitionPeriodChanged
840     /// </summary>
841     public class SoundNotificationRepetitionPeriodChangedEventArgs : EventArgs
842     {
843         private readonly int _soundNotificationRepetitionPeriod;
844         /// <summary>
845         /// The enum for SoundNotificationRepetitionPeriod system setting key
846         /// </summary>
847         public SystemSettingsKeys Key
848         {
849             get
850             {
851                 return SystemSettingsKeys.SoundNotificationRepetitionPeriod;
852             }
853         }
854         internal SoundNotificationRepetitionPeriodChangedEventArgs(int val)
855         {
856             _soundNotificationRepetitionPeriod = val;
857         }
858
859         /// <summary>
860         /// Indicates the time period for notification repetitions
861         /// </summary>
862         public int Value
863         {
864             get
865             {
866                 return _soundNotificationRepetitionPeriod;
867             }
868         }
869     }
870
871     /// <summary>
872     /// EventArgs type for the event LockStateChanged
873     /// </summary>
874     public class LockStateChangedEventArgs : EventArgs
875     {
876         private readonly SystemSettingsIdleLockState _lockState;
877         /// <summary>
878         /// The enum for LockState system setting key
879         /// </summary>
880         public SystemSettingsKeys Key
881         {
882             get
883             {
884                 return SystemSettingsKeys.LockState;
885             }
886         }
887         internal LockStateChangedEventArgs(SystemSettingsIdleLockState val)
888         {
889             _lockState = val;
890         }
891
892         /// <summary>
893         /// Indicates the current lock state
894         /// </summary>
895         public SystemSettingsIdleLockState Value
896         {
897             get
898             {
899                 return _lockState;
900             }
901         }
902     }
903 }