Tizen 2.1 base
[framework/pim/calendar-service.git] / include / calendar_errors.h
1 /*
2  * Calendar Service
3  *
4  * Copyright (c) 2012 - 2013 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 #ifndef __TIZEN_SOCAIL_CALENDAR_ERROR_H__
21 #define __TIZEN_SOCAIL_CALENDAR_ERROR_H__
22
23 #include <tizen.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 /**
30  * @addtogroup CAPI_SOCIAL_CALENDAR_SVC_LIST_MODULE
31  * @{
32  */
33
34 typedef enum
35 {
36     CALENDAR_ERROR_NONE                 = TIZEN_ERROR_NONE,                     /**< Successful */
37     CALENDAR_ERROR_DB_FAILED            = TIZEN_ERROR_SOCIAL_CLASS | 0x02,      /**< No access to database */
38     CALENDAR_ERROR_DB_RECORD_NOT_FOUND  = TIZEN_ERROR_SOCIAL_CLASS | 0x05,      /**< Not found database */
39     CALENDAR_ERROR_OUT_OF_MEMORY        = TIZEN_ERROR_OUT_OF_MEMORY,            /**< Out of memory */
40     CALENDAR_ERROR_INVALID_PARAMETER    = TIZEN_ERROR_INVALID_PARAMETER,        /**< Invalid parameter */
41     CALENDAR_ERROR_NO_DATA              = TIZEN_ERROR_SOCIAL_CLASS | 0x03,      /**< Requested data does not exist */
42     CALENDAR_ERROR_ITERATOR_END         = TIZEN_ERROR_SOCIAL_CLASS | 0x04,      /**< Iterator is on last position */
43     CALENDAR_ERROR_NOW_IN_PROGRESS      = TIZEN_ERROR_NOW_IN_PROGRESS,          /**< Operation now in progress */
44     CALENDAR_ERROR_ALREADY_IN_PROGRESS  = TIZEN_ERROR_ALREADY_IN_PROGRESS,      /**< Operation already in progress */
45     CALENDAR_ERROR_NOT_PERMITTED        = TIZEN_ERROR_NOT_PERMITTED,            /**< Operation not permitted */
46     CALENDAR_ERROR_IPC                  = TIZEN_ERROR_SOCIAL_CLASS | 0xBF,      /**< Unknown IPC error */
47         CALENDAR_ERROR_FILE_NO_SPACE        = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE,  /**< FS Full */
48 } calendar_error_e;
49
50 /**
51  * @}
52  */
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* __TIZEN_SOCAIL_CALENDAR_ERROR_H__ */
59