tizen_2.0_build
[framework/pim/calendar-service.git] / include / calendar-svc-errors.h
1 /*
2  * Calendar Service
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 /**
20  * @defgroup return_value return_value
21  * @ingroup CALENDAR_SVC
22  * @brief
23  *              return value with api call
24  */
25
26 #ifndef __CALENDAR_SVC_ERRORS_H__
27 #define __CALENDAR_SVC_ERRORS_H__
28
29 typedef enum
30 {
31         CAL_ERR_EVENT_START_DATE = -405,
32         CAL_ERR_EVENT_END_DATE = -404,
33         CAL_ERR_EVENT_REPEAT_END_DATE = -403,
34         CAL_ERR_EVENT_DURATION = -402,
35         CAL_ERR_EVENT_REPEAT_DURATION_TOO_SHORT = -401,
36
37         CAL_ERR_INVALID_DATA_TYPE       =-301,
38
39         CAL_ERR_DB_LOCK = -204,
40         CAL_ERR_DB_RECORD_NOT_FOUND = -203,
41         CAL_ERR_DB_FAILED = -202,
42         CAL_ERR_DB_NOT_OPENED= -201,
43
44         CAL_ERR_ALARMMGR_FAILED = -105,
45         CAL_ERR_TIME_FAILED = -104,
46         CAL_ERR_INOTIFY_FAILED = -103,
47         CAL_ERR_VCONF_FAILED = -102,
48         CAL_ERR_VOBJECT_FAILED = -101,
49
50         CAL_ERR_NO_SPACE = -11,
51         CAL_ERR_IO_ERR = -10,
52         CAL_ERR_EXCEEDED_LIMIT = -9,
53         CAL_ERR_OUT_OF_MEMORY = -8,
54         CAL_ERR_ALREADY_EXIST = -7,
55         CAL_ERR_ENV_INVALID = -6,
56         CAL_ERR_ARG_NULL = -5,
57         CAL_ERR_ARG_INVALID = -4,
58         CAL_ERR_NO_DATA = -3,
59         CAL_ERR_FINISH_ITER= -2,
60         CAL_ERR_FAIL= -1,
61         CAL_SUCCESS = 0,
62         CAL_FALSE = 0,
63         CAL_TRUE
64 }cal_error;
65
66 #endif /* __CALENDAR_SVC_ERRORS_H__ */
67