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 FAppIAppCheckPointEventListener.h
19 * @brief This is the header file for the %IAppCheckpointEventListener interface.
21 * This header file contains the declarations of the %IAppCheckpointEventListener interface. @n
22 * If a checkpoint event is generated, a method of this interface is called.
25 #ifndef _FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_
26 #define _FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 namespace Tizen { namespace App
36 * @interface IAppCheckpointEventListener
37 * @brief This interface defines the listener for a checkpoint event.
41 * The %IAppCheckpointEventListener interface is used for receiving a checkpoint event.
42 * The event is fired when the system is about to terminate an application due to reasons such as, low memory or when another application
45 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/basics_tizen_programming/tizen_app_model/multitasking_in_tizen.htm">Multitasking in Tizen</a>.
48 class _OSP_EXPORT_ IAppCheckpointEventListener
49 : virtual public Tizen::Base::Runtime::IEventListener
53 * This polymorphic destructor should be overridden if required. @n
54 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
58 virtual ~IAppCheckpointEventListener(void) {}
61 * Called when a checkpoint event occurs.
64 * @param[in] appRegistry The application's registry
66 virtual void OnAppCheckpointing(AppRegistry& appRegistry) = 0;
70 // This method is for internal use only.
71 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
75 virtual void IAppCheckpointEventListener_Reserved1(void) {}
78 // This method is for internal use only.
79 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
83 virtual void IAppCheckpointEventListener_Reserved2(void) {}
86 // This method is for internal use only.
87 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
91 virtual void IAppCheckpointEventListener_Reserved3(void) {}
93 }; // IAppCheckpointEventListener
97 #endif //_FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_