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.
19 * @brief This is the header file for the enumerations of the %App class.
21 * This header file contains the declarations of the enumerations of the App class.
24 #ifndef _FAPP_TYPES_H_
25 #define _FAPP_TYPES_H_
27 #include <FBaseString.h>
29 namespace Tizen { namespace App
37 typedef Tizen::Base::String PackageId;
44 typedef Tizen::Base::String AppId;
48 * The application secret
49 * @brief <i> [Deprecated] </i>
50 * @deprecated This type is deprecated because the associated App::GetAppSecret() method is deprecated.
55 typedef Tizen::Base::String AppSecret;
59 * Defines the various states of an application's life cycle.
65 INITIALIZING, /**< The application has been launched */
66 RUNNING, /**< The application has been initialized and is currently being executed */
67 TERMINATING, /**< The application is about to exit, release its resources, and save its preferences */
68 TERMINATED /**< The application has been destroyed */
73 * Defines the UI state of an application.
79 APP_UI_STATE_FOREGROUND = 0x01, /**< The application is completely visible in the foreground */
80 APP_UI_STATE_PARTIAL_BACKGROUND = 0x02, /**< The application is partially hidden by another window, such as a system pop-up */
81 APP_UI_STATE_BACKGROUND = 0x04 /**< The application is completely hidden by a full-screen window, usually by another application, or an application control */
86 * Defines the application control result.
92 APP_CTRL_RESULT_SUCCEEDED = 0x00, /**< The application operation is successful */
93 APP_CTRL_RESULT_FAILED = 0x01, /**< The application operation has failed */
94 APP_CTRL_RESULT_CANCELED = 0x02, /**< The application operation is cancelled by the calling application */
95 APP_CTRL_RESULT_TERMINATED = 0x04, /**< The calling application is terminated without sending the result */
96 APP_CTRL_RESULT_ABORTED = 0x08, /**< The application operation is aborted by the platform */
101 * The application launch request ID. @n
102 * Represents the application launch arguments in the App::App::OnUserEventReceivedN() method.
104 * @brief <i> [Deprecated] </i>
105 * @deprecated This variable is deprecated. From Tizen API version 2.1, the App::App::OnUserEventReceivedN()
106 * method is not invoked for the request from the application and the %AppLaunchRequestId() method is not used anymore.
107 * Instead, use IAppControlProviderEventListener.
112 const long AppLaunchRequestId = (-0xFFFF);
116 * Defines the launch type, for example, normal launch.
118 * @brief <i> [Deprecated] </i>
119 * @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
120 * Instead of using this variable, it is recommended to use IAppControlProviderEventListener to acquire the launch information.
124 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_NORMAL;
128 * Defines the launch type, for example, conditional launch.
130 * @brief <i> [Deprecated] </i>
131 * @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
132 * Instead of using this variable, it is recommended to use IAppLaunchConditionEventListener to acquire the conditional launch information.
136 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_CONDITIONAL;
140 #endif // _FAPP_TYPES_H_