c29fff8791e3d86e70b0554d51ff4900e04d81cc
[platform/core/pim/calendar-service.git] / include / calendar_errors.h
1 /*
2  * Calendar Service
3  *
4  * Copyright (c) 2012 - 2015 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_SOCIAL_CALENDAR_ERROR_H__
21 #define __TIZEN_SOCIAL_CALENDAR_ERROR_H__
22
23 #include <tizen.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 /**
30  * @file calendar_errors.h
31  */
32
33 /**
34  * @addtogroup CAPI_SOCIAL_CALENDAR_SVC_COMMON_MODULE
35  * @{
36  */
37
38 /**
39  * @brief Enumeration for calendar errors.
40  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
41  */
42 typedef enum {
43         CALENDAR_ERROR_NONE                 = TIZEN_ERROR_NONE,                     /**< Successful */
44         CALENDAR_ERROR_OUT_OF_MEMORY        = TIZEN_ERROR_OUT_OF_MEMORY,            /**< Out of memory */
45         CALENDAR_ERROR_INVALID_PARAMETER    = TIZEN_ERROR_INVALID_PARAMETER,        /**< Invalid parameter */
46         CALENDAR_ERROR_NO_DATA              = TIZEN_ERROR_NO_DATA,                  /**< Requested data does not exist */
47         CALENDAR_ERROR_NOW_IN_PROGRESS      = TIZEN_ERROR_NOW_IN_PROGRESS,          /**< Operation now in progress */
48         CALENDAR_ERROR_ALREADY_IN_PROGRESS  = TIZEN_ERROR_ALREADY_IN_PROGRESS,      /**< Operation already in progress */
49         CALENDAR_ERROR_NOT_PERMITTED        = TIZEN_ERROR_NOT_PERMITTED,            /**< Operation not permitted */
50         CALENDAR_ERROR_FILE_NO_SPACE        = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE,      /**< FS is full */
51         CALENDAR_ERROR_PERMISSION_DENIED    = TIZEN_ERROR_PERMISSION_DENIED,        /**< Permission denied */
52         CALENDAR_ERROR_DB_FAILED            = TIZEN_ERROR_CALENDAR | 0x02,                      /**< No access to the database */
53         CALENDAR_ERROR_ITERATOR_END         = TIZEN_ERROR_CALENDAR | 0x04,          /**< Iterator is on the last position */
54         CALENDAR_ERROR_DB_RECORD_NOT_FOUND  = TIZEN_ERROR_CALENDAR | 0x05,          /**< Database not found */
55         CALENDAR_ERROR_IPC                  = TIZEN_ERROR_CALENDAR | 0xBF,          /**< Unknown IPC error */
56         CALENDAR_ERROR_SYSTEM               = TIZEN_ERROR_CALENDAR | 0xEF,          /**< Error from another modules */
57 } calendar_error_e;
58
59 /**
60  * @}
61  */
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* __TIZEN_SOCIAL_CALENDAR_ERROR_H__ */
68