Merge "Added ImmutableString class to appfw" into tizen
[platform/framework/native/appfw.git] / inc / FSysISettingEventListener.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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 /**
18  * @file        FSysISettingEventListener.h
19  * @brief       This is the header file for the %ISettingEventListener interface.
20  *
21  * This header file contains the declarations of the %ISettingEventListener interface.
22  */
23
24 #ifndef _FSYS_ISETTING_EVENT_LISTENER_H_
25 #define _FSYS_ISETTING_EVENT_LISTENER_H_
26
27 #include <FBaseResult.h>
28 #include <FBaseRtIEventListener.h>
29
30 namespace Tizen { namespace System
31 {
32
33 /**
34  * @interface   ISettingEventListener
35  * @brief       This interface is the listener of the setting event.
36  *
37  * @since 2.0
38  *
39  * The %ISettingEventListener interface must be registered and implemented by an application to receive setting events from the system.
40  *
41  */
42 class _OSP_EXPORT_ ISettingEventListener
43         : public virtual Tizen::Base::Runtime::IEventListener
44 {
45 public:
46         /**
47          * This is the destructor for this class. This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface is called.
48          *
49          * @since 2.0
50          */
51         virtual ~ISettingEventListener(void) {}
52         /**
53          * Called when a certain setting value has been changed.
54          *
55          * @since       2.0
56          *
57          * @param[in]   key     The key name of the changed setting information
58          * @remarks Invokes one of the overloaded getter methods of Tizen::System::SettingInfo to get the changed value corresponding to the given key.
59          */
60         virtual void OnSettingChanged(Tizen::Base::String& key) = 0;
61
62 protected:
63         //
64         // This method is for internal use only.
65         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
66         //
67         // @since 2.0
68         virtual void OnISettingEventListener_Reserved1(void) {}
69
70         //
71         // This method is for internal use only.
72         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
73         //
74         // @since 2.0
75         virtual void OnISettingEventListener_Reserved2(void) {}
76
77         //
78         // This method is for internal use only.
79         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
80         //
81         // @since 2.0
82         virtual void OnISettingEventListener_Reserved3(void) {}
83
84 }; // ISettingEventListener
85
86 } } // Tizen::System
87
88 #endif // _FSYS_ISETTING_EVENT_LISTENER_H_