Deprecating email module
[platform/core/api/email.git] / include / email_error.h
1 /*
2  * Copyright (c) 2012 - 2013 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 __EMAILAPI_ERROR_H__
19 #define __EMAILAPI_ERROR_H__
20
21
22 #include <tizen.h>
23
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30
31 /**
32  * @addtogroup CAPI_MESSAGING_EMAIL_MODULE
33  * @{
34  */
35
36
37 /**
38  * @file email_error.h
39  * @brief Email error definitions.
40  */
41
42
43 /**
44  * @deprecated Deprecated since 8.0.
45  *  @brief Enumeration for error codes for email API.
46  *  @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
47  */
48 typedef enum {
49         EMAILS_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
50         EMAILS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Memory cannot be allocated */
51         EMAILS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
52         EMAILS_ERROR_SERVER_NOT_READY = TIZEN_ERROR_EMAIL_SERVICE|0x200, /**< Server not ready */
53         EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x201, /**< Communication with server failed */
54         EMAILS_ERROR_OPERATION_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x202, /**< Operation failed */
55         EMAILS_ERROR_ACCOUNT_NOT_FOUND = TIZEN_ERROR_EMAIL_SERVICE|0x203, /**< Email account not found */
56         EMAILS_ERROR_DB_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x204, /**< Email database failed */
57         EMAILS_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
58         EMAILS_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported (Since 3.0) */
59 } email_error_e;
60
61
62 /**
63  * @}
64  */
65
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71
72 #endif /* __EMAILAPI_ERROR_H__*/
73