2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FAppIAppSettingEventListener.h
19 * @brief This is the header file for the %IAppSettingEventListener interface.
21 * This header file contains the declarations of the %IAppSettingEventListener interface.
24 #ifndef _FAPP_IAPP_SETTING_EVENT_LISTENER_H_
25 #define _FAPP_IAPP_SETTING_EVENT_LISTENER_H_
27 #include <FBaseTypes.h>
28 #include <FBaseString.h>
29 #include <FBaseRtIEventListener.h>
32 namespace Tizen { namespace App
36 * @interface IAppSettingEventListener
37 * @brief This interface is the listener interface for receiving the setting change events.
41 * The %IAppSettingEventListener interface is the listener interface for receiving the setting change events.
42 * The class that processes a setting change event implements this interface and registers using
43 * the AppSetting::SetAppSettingEventListener() method.
46 class _OSP_EXPORT_ IAppSettingEventListener
47 : virtual public Tizen::Base::Runtime::IEventListener
51 * This polymorphic destructor should be overridden if required. This way,
52 * the destructors of the derived classes are called when the destructor of this interface is called.
56 * @remarks This method is invoked only in the main thread
58 virtual ~IAppSettingEventListener(void) {}
61 * Called when the application setting is changed.
65 * @param[in] id The ID of the application setting whose value is changed
67 * @remarks This method is invoked only in the main thread
69 virtual void OnAppSettingChanged(const Tizen::Base::String& id) = 0;
73 // This method is for internal use only. Using this method can cause behavioral,
74 // security-related, and consistency-related issues in the application.
78 virtual void IAppSettingEventListener_Reserved1(void) {}
81 // This method is for internal use only. Using this method can cause behavioral,
82 // security-related, and consistency-related issues in the application.
86 virtual void IAppSettingEventListener_Reserved2(void) {}
89 // This method is for internal use only. Using this method can cause behavioral,
90 // security-related, and consistency-related issues in the application.
94 virtual void IAppSettingEventListener_Reserved3(void) {}
96 }; // IAppSettingEventListener
99 #endif // _FAPP_IAPP_SETTING_EVENT_LISTENER_H_