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.
19 * @file FAppIAppCheckPointEventListener.h
20 * @brief This is the header file for the %IAppCheckpointEventListener interface.
22 * This header file contains the declarations of the %IAppCheckpointEventListener interface. @n
23 * If a checkpoint event is generated, a method of this interface is called.
26 #ifndef _FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_
27 #define _FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_
29 #include <FBaseRtIEventListener.h>
31 namespace Tizen { namespace App
37 * @interface IAppCheckpointEventListener
38 * @brief This interface defines the listener for the checkpoint event.
42 * The %IAppCheckpointEventListener interface is used for receiving the checkpoint event.
43 * The event is fired when the system is about to terminate an application due to, for example, low memory or when another application
46 * 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>.
49 class _OSP_EXPORT_ IAppCheckpointEventListener
50 : virtual public Tizen::Base::Runtime::IEventListener
54 * This polymorphic destructor should be overridden if required.
55 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
59 virtual ~IAppCheckpointEventListener(void) {}
62 * Called when a checkpoint event occurs.
65 * @param[in] appRegistry The application registry
67 virtual void OnAppCheckpointing(AppRegistry& appRegistry) = 0;
71 // This method is for internal use only.
72 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
76 virtual void IAppCheckpointEventListener_Reserved1(void) {}
79 // This method is for internal use only.
80 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
84 virtual void IAppCheckpointEventListener_Reserved2(void) {}
87 // This method is for internal use only.
88 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
92 virtual void IAppCheckpointEventListener_Reserved3(void) {}
94 }; // IAppCheckpointEventListener
98 #endif //_FAPP_IAPP_CHECK_POINT_EVENT_LISTENER_H_