9fa5d98e3bf71da7612c4f5627dece26818193da
[platform/core/appfw/badge.git] / include / badge_error.h
1 /*
2  *  libbadge
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Youngjoo Park <yjoo93.park@samsung.com>,
7  *      Seungtaek Chung <seungtaek.chung@samsung.com>, Youngsub Ko <ys4610.ko@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the License);
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an AS IS BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23
24 #ifndef __BADGE_ERROR_DEF_H__
25 #define __BADGE_ERROR_DEF_H__
26
27 #include <tizen.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /**
34  * @file badge_error.h
35  * @brief This file contains the badge APIs
36  */
37
38 /**
39  * @addtogroup BADGE_MODULE
40  * @{
41  */
42
43 /**
44  * @brief Enumeration for Badge Error
45  */
46 typedef enum _badge_error_e {
47         BADGE_ERROR_NONE = TIZEN_ERROR_NONE,                    /**< Success */
48         BADGE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER,          /**< Invalid parameter */
49         BADGE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY,          /**< Out of memory */
50         BADGE_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED,  /**< Permission denied */
51         BADGE_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR,    /**< Error from I/O */
52         BADGE_ERROR_FROM_DB = TIZEN_ERROR_BADGE | 0x01,         /**< Error from DB */
53         BADGE_ERROR_ALREADY_EXIST = TIZEN_ERROR_BADGE | 0x02,           /**< Already exist */
54         BADGE_ERROR_FROM_DBUS = TIZEN_ERROR_BADGE | 0x03,               /**< Error from DBus */
55         BADGE_ERROR_NOT_EXIST = TIZEN_ERROR_BADGE | 0x04,               /**< Not exist */
56         BADGE_ERROR_SERVICE_NOT_READY = TIZEN_ERROR_BADGE | 0x05,       /**< Error service not ready */
57 } badge_error_e;
58
59 /**
60  * @}
61  */
62
63 #ifdef __cplusplus
64         }
65 #endif
66
67 #endif /* __BADGE_ERROR_DEF_H__ */
68