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.
25 #ifndef _FAPP_TYPES_H_
26 #define _FAPP_TYPES_H_
28 #include <FBaseString.h>
30 namespace Tizen { namespace App
38 typedef Tizen::Base::String PackageId;
45 typedef Tizen::Base::String AppId;
49 * The application secret
50 * @brief <i> [Deprecated] </i>
51 * @deprecated This type is deprecated because the associated App::GetAppSecret() method is deprecated.
56 typedef Tizen::Base::String AppSecret;
60 * Defines the various states of an application's life cycle.
66 INITIALIZING, /**< The application has been launched */
67 RUNNING, /**< The application has been initialized and is currently being executed */
68 TERMINATING, /**< The application is about to exit and releases its resources and saves its preferences */
69 TERMINATED /**< The application has been destroyed */
74 * Defines the UI state of an application.
80 APP_UI_STATE_FOREGROUND = 0x01, /**< The application is completely visible on foreground */
81 APP_UI_STATE_PARTIAL_BACKGROUND = 0x02, /**< The application is partially hidden by another window, such as a system pop-up */
82 APP_UI_STATE_BACKGROUND = 0x04 /**< The application is completely hidden by a full-screen window, usually by another application or an application control */
87 * Defines the application control result.
93 APP_CTRL_RESULT_SUCCEEDED = 0x00, /**< The application operation is successful */
94 APP_CTRL_RESULT_FAILED = 0x01, /**< The application operation has failed */
95 APP_CTRL_RESULT_CANCELED = 0x02, /**< The application operation is canceled by the callee application */
96 APP_CTRL_RESULT_TERMINATED = 0x04, /**< The callee application is terminated without sending the result */
97 APP_CTRL_RESULT_ABORTED = 0x08, /**< The application operation is aborted by the platform */
102 * The application launch request ID. @n
103 * Represents the application launch arguments in App::App::OnUserEventReceivedN().
105 * @brief <i> [Deprecated] </i>
106 * @deprecated This variable is deprecated. From %Tizen API version 2.1, App::App::OnUserEventReceivedN()
107 * is not invoked for the request from application and %AppLaunchRequestId is not used anymore.
108 * Instead, use IAppControlProviderEventListener.
111 * @see App::App::OnUserEventReceivedN()
114 const long AppLaunchRequestId = (-0xFFFF);
118 * Defines the launch type - normal launch.
120 * @brief <i> [Deprecated] </i>
121 * @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
122 * Instead of using this variable, it is recommended to use IAppControlProviderEventListener to acquire the launch information.
126 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_NORMAL;
130 * Defines the launch type - conditional launch.
132 * @brief <i> [Deprecated] </i>
133 * @deprecated This variable is provided only for backward compatibility and will be deleted in the near future.
134 * Instead of using this variable, it is recommended to use IAppLaunchConditionEventListener to acquire the conditional launch information.
138 _OSP_EXPORT_ extern const Tizen::Base::String APP_LAUNCH_CONDITIONAL;
142 #endif // _FAPP_TYPES_H_