merge tizen 2.4
[platform/core/api/application.git] / include / app_types.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15 */
16
17
18 #ifndef __TIZEN_APPFW_APP_TYPES_H__
19 #define __TIZEN_APPFW_APP_TYPES_H__
20
21 #include <tizen.h>
22
23 /**
24  * @file app_types.h
25  */
26
27 /**
28  * @addtogroup CAPI_APPLICATION_MODULE
29  * @{
30  */
31
32 /**
33  * @brief Enumeration for application error.
34  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
35  */
36
37 typedef enum
38 {
39         APP_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
40         APP_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
41         APP_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
42         APP_ERROR_INVALID_CONTEXT = TIZEN_ERROR_APPLICATION | 0x01, /**< Invalid application context */
43         APP_ERROR_NO_SUCH_FILE = TIZEN_ERROR_NO_SUCH_FILE, /**< No such file or directory */
44         APP_ERROR_ALREADY_RUNNING = TIZEN_ERROR_ALREADY_IN_PROGRESS, /**< Application is already running */
45         APP_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied @if MOBILE (Since 2.3.1) @endif */
46 } app_error_e;
47
48 /**
49  * @}
50  */
51
52 #endif /* __TIZEN_APPFW_APP_TYPES_H__ */