Move system-server under server/system.
[platform/framework/native/appfw.git] / inc / FSysISettingInfoSetValueAsyncResultListener.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        FSysISettingInfoSetValueAsyncResultListener.h
19  * @brief       This is the header file for the %ISettingInfoSetValueAsyncResultListener interface.
20  *
21  * This header file contains the declarations of the %ISettingInfoSetValueAsyncResultListener interface.
22  */
23
24 #ifndef _FSYS_ISETTING_INFO_SET_VALUE_ASYNC_RESULT_LISTENER_H_
25 #define _FSYS_ISETTING_INFO_SET_VALUE_ASYNC_RESULT_LISTENER_H_
26
27 #include <FBaseResult.h>
28 #include <FBaseRtIEventListener.h>
29
30 namespace Tizen { namespace System
31 {
32
33 /**
34  * @interface   ISettingInfoSetValueAsyncResultListener
35  * @brief       This interface defines the result listener for an asynchronous setting change method call.
36  *
37  * @since 2.0
38  *
39  * The %ISettingInfoSetValueAsyncResultListener interface must be registered and implemented by an application to receive result for an asynchronous setting change method call.
40  *
41  */
42 class _OSP_EXPORT_ ISettingInfoSetValueAsyncResultListener
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 ~ISettingInfoSetValueAsyncResultListener(void) {}
52         
53         /**
54          * Called when a result is received for an asynchronous setting change method call.
55          *
56          * @since 2.0
57          *
58          * @param[in] key The key name of the changed setting information
59          * @param[in] r An error code
60          * @exception E_SUCCESS The result is successful.
61          * @exception E_SYSTEM  The method cannot proceed due to severe system error.
62          */
63         
64         virtual void OnResultReceivedForSetValueAsync(const Tizen::Base::String& key, result r) = 0;
65
66 protected:
67         //
68         // This method is for internal use only.
69         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
70         //
71         // @since 2.0
72         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved1(void) {}
73
74         //
75         // This method is for internal use only.
76         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
77         //
78         // @since 2.0
79         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved2(void) {}
80
81         //
82         // This method is for internal use only.
83         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
84         //
85         // @since 2.0
86         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved3(void) {}
87         //
88         // This method is for internal use only.
89         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
90         //
91         // @since 2.0
92         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved4(void) {}
93
94         //
95         // This method is for internal use only.
96         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
97         //
98         // @since 2.0
99         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved5(void) {}
100
101         //
102         // This method is for internal use only.
103         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
104         //
105         // @since 2.0
106         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved6(void) {}
107         //
108         // This method is for internal use only.
109         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
110         //
111         // @since 2.0
112         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved7(void) {}
113
114         //
115         // This method is for internal use only.
116         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
117         //
118         // @since 2.0
119         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved8(void) {}
120
121         //
122         // This method is for internal use only.
123         // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
124         //
125         // @since 2.0
126         virtual void OnISettingInfoSetValueAsyncResultListener_Reserved9(void) {}
127
128 }; // ISettingEventListener
129
130 } } // Tizen::System
131
132 #endif // _FSYS_ISETTING_INFO_SET_VALUE_ASYNC_RESULT_LISTENER_H_