2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FSys_IPowerManagerEventListener.h
19 * @brief This is the header file for the %_IPowerManagerEventListener interface.
21 * This header file contains the declarations of the %_IPowerManagerEventListener interface.
24 #ifndef _FSYS_INTERNAL_IPOWERMANAGER_EVENT_LISTENER_H_
25 #define _FSYS_INTERNAL_IPOWERMANAGER_EVENT_LISTENER_H_
27 #include <FBaseResult.h>
28 #include <FBaseRtIEventListener.h>
30 namespace Tizen { namespace System
34 * @interface _IPowerManagerEventListener
35 * @brief This interface is the listener of internal PowerManager event.
39 * The %_IPowerManagerEventListener interface must be registered and implemented by an application to receive PowerManager events from the system.
42 class _OSP_EXPORT_ _IPowerManagerEventListener
43 : public virtual Tizen::Base::Runtime::IEventListener
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.
52 virtual ~_IPowerManagerEventListener(void) {}
55 * Called when the screen state is changed.
58 * @param[in] state The screen state whether screen is on or off.
60 virtual void OnScreenStateChanged(bool state) = 0;
61 }; // _IPowerManagerEventListener