Add code versioning for "SettingInfo TC"
[platform/framework/native/appfw.git] / src / system / inc / FSys_IPowerManagerEventListener.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        FSys_IPowerManagerEventListener.h
19  * @brief       This is the header file for the %_IPowerManagerEventListener interface.
20  *
21  * This header file contains the declarations of the %_IPowerManagerEventListener interface.
22  */
23
24 #ifndef _FSYS_INTERNAL_IPOWERMANAGER_EVENT_LISTENER_H_
25 #define _FSYS_INTERNAL_IPOWERMANAGER_EVENT_LISTENER_H_
26
27 #include <FBaseResult.h>
28 #include <FBaseRtIEventListener.h>
29
30 namespace Tizen { namespace System
31 {
32
33 /**
34  * @interface   _IPowerManagerEventListener
35  * @brief       This interface is the listener of internal PowerManager event.
36  *
37  * @sinces2.1
38  *
39  * The %_IPowerManagerEventListener interface must be registered and implemented by an application to receive PowerManager events from the system.
40  */
41
42 class _OSP_EXPORT_ _IPowerManagerEventListener
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          * @sinces2.1
50          */
51
52         virtual ~_IPowerManagerEventListener(void) {}
53
54         /**
55          * Called when the screen state is changed.
56          *
57          * @sinces2.1
58          * @param[in]   state   The screen state whether screen is on or off.
59          */
60         virtual void OnScreenStateChanged(bool state) = 0;
61 }; // _IPowerManagerEventListener
62
63 } } // Osp::System
64
65 #endif //