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 FApp_IAppImpl.h
20 * @brief This is the header file for the _IAppImpl class.
22 * This file contains the declarations of _IAppImpl.
25 #ifndef _FAPP_INTERNAL_IAPP_IMPL_H_
26 #define _FAPP_INTERNAL_IAPP_IMPL_H_
30 namespace Tizen { namespace App
36 virtual ~_IAppImpl(void) {}
39 * Called when the application is started
42 * @return @c true if the method is successful, @n
44 * @param[in] user_data The user data passed from the callback registration function
45 * @remarks This is a system dependent callback function
47 virtual bool OnCreate(void) = 0;
50 * Called when the application's state changes to INITIALIZING
53 * @return @c true if the method is successful, @n
56 virtual bool OnAppInitializing(void) = 0;
59 * Called when the application's INITIALIZING state is finished
62 * @return @c true if the method is successful, @n
65 virtual bool OnAppInitialized(void) = 0;
68 * Called when other application send the launch request to the application
71 * @param[in] service The handle to the service
72 * @param[in] initial initial launch
73 * @param[in] user_data The user data passed from the callback registration function
74 * @remarks This is a system dependent callback function
76 virtual void OnService(service_s* service, bool initial) = 0;
79 * Called when the application is completely obscured by another application and becomes invisible
82 * @param[in] user_data The user data passed from the callback registration function
83 * @remarks This is a system dependent callback function
85 virtual void OnPause(void) = 0;
88 * Called when the application becomes visible
91 * @param[in] user_data The user data passed from the callback registration function
92 * @remarks This is a system dependent callback function
94 virtual void OnResume(void) = 0;
97 * Called once after the main loop of application exits
100 * @param[in] user_data The user data passed from the callback registration function
101 * @remarks This is a system dependent callback function
103 virtual void OnTerminate(void) = 0;
106 * Called when an orintation event occurs.
109 * @param[in] orientation The information about the orientation event
111 virtual void OnDeviceOrientationChanged(app_device_orientation_e orientation) = 0;
114 * Called when the internal window handle is required.
118 virtual long OnWindowHandleRequest(void) = 0;
124 #endif // _FAPP_INTERNAL_IAPP_IMPL_H_