-/*\r
-* email-service\r
-*\r
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
-*\r
-* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>\r
-*\r
-* Licensed under the Apache License, Version 2.0 (the "License");\r
-* you may not use this file except in compliance with the License.\r
-* You may obtain a copy of the License at\r
-*\r
-* http://www.apache.org/licenses/LICENSE-2.0\r
-*\r
-* Unless required by applicable law or agreed to in writing, software\r
-* distributed under the License is distributed on an "AS IS" BASIS,\r
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* See the License for the specific language governing permissions and\r
-* limitations under the License.\r
-*\r
-*/\r
-\r
-\r
-#ifndef __EMAIL_ERRORS_H__\r
-#define __EMAIL_ERRORS_H__\r
-\r
-/*****************************************************************************/\r
-/* Errors */\r
-/*****************************************************************************/\r
-\r
-\r
-#define EMF_ERROR_NONE 1 /* There is no error */\r
-#define EMF_ERROR_INVALID_PARAM -1001 /* invalid parameter was given. - Invalid input parameter */\r
-#define EMF_ERROR_INVALID_ACCOUNT -1002 /* invalid account information was given. - Unsupported account */\r
-#define EMF_ERROR_INVALID_USER -1003 /* invalid user ID was given. - Invalid user or password */\r
-#define EMF_ERROR_INVALID_PASSWORD -1004 /* invalid password was given. - Invalid user or password */\r
-#define EMF_ERROR_INVALID_SERVER -1005 /* invalid server information was given. - Server unavailable */\r
-#define EMF_ERROR_INVALID_MAIL -1006 /* invalid mail information was given */\r
-#define EMF_ERROR_INVALID_ADDRESS -1007 /* invalid address information was given. - Incorrect address */\r
-#define EMF_ERROR_INVALID_ATTACHMENT -1008 /* invalid attachment information was given */\r
-#define EMF_ERROR_INVALID_MAILBOX -1009 /* invalid mailbox information was given */\r
-#define EMF_ERROR_INVALID_FILTER -1010 /* invalid filter information was given */\r
-#define EMF_ERROR_INVALID_PATH -1011 /* invalid flle path was given */\r
-#define EMF_ERROR_INVALID_DATA -1012 /* invalid data */\r
-#define EMF_ERROR_INVALID_RESPONSE -1013 /* unexpected network response was given. - Invalid server response */\r
-#define EMF_ERROR_ACCOUNT_NOT_FOUND -1014 /* no matched account was found */\r
-#define EMF_ERROR_MAIL_NOT_FOUND -1015 /* no matched mail was found */\r
-#define EMF_ERROR_MAILBOX_NOT_FOUND -1016 /* no matched mailbox was found */\r
-#define EMF_ERROR_ATTACHMENT_NOT_FOUND -1017 /* no matched attachment was found */\r
-#define EMF_ERROR_FILTER_NOT_FOUND -1018 /* no matched filter was found */\r
-#define EMF_ERROR_CONTACT_NOT_FOUND -1019 /* no matched contact was found */\r
-#define EMF_ERROR_FILE_NOT_FOUND -1020 /* no matched file was found */\r
-#define EMF_ERROR_DATA_NOT_FOUND -1021 /* no matched data was found */\r
-#define EMF_ERROR_NO_MORE_DATA -1022 /* No more data available */\r
-#define EMF_ERROR_ALREADY_EXISTS -1023 /* data duplicated */\r
-#define EMF_ERROR_MAX_EXCEEDED -1024 /* Can't handle more data */\r
-#define EMF_ERROR_DATA_TOO_LONG -1025 /* Data is too long */\r
-#define EMF_ERROR_DATA_TOO_SMALL -1026 /* Data is too small */\r
-#define EMF_ERROR_NETWORK_TOO_BUSY -1027 /* Network is busy */\r
-#define EMF_ERROR_OUT_OF_MEMORY -1028 /* There is not enough memory */\r
-#define EMF_ERROR_DB_FAILURE -1029 /* database operation failed */\r
-#define EMF_ERROR_PROFILE_FAILURE -1030 /* no proper profile was found */\r
-#define EMF_ERROR_SOCKET_FAILURE -1031 /* socket operation failed */\r
-#define EMF_ERROR_CONNECTION_FAILURE -1032 /* network connection failed */\r
-#define EMF_ERROR_CONNECTION_BROKEN -1033 /* network connection was broken */\r
-#define EMF_ERROR_DISCONNECTED -1034 /* connection was disconnected */\r
-#define EMF_ERROR_LOGIN_FAILURE -1035 /* login failed */\r
-#define EMF_ERROR_NO_RESPONSE -1036 /* There is no server response */\r
-#define EMF_ERROR_MAILBOX_FAILURE -1037 /* The agent failed to scan mailboxes in server */\r
-#define EMF_ERROR_AUTH_NOT_SUPPORTED -1038 /* The server doesn't support authentication */\r
-#define EMF_ERROR_AUTHENTICATE -1039 /* The server failed to authenticate user */\r
-#define EMF_ERROR_TLS_NOT_SUPPORTED -1040 /* The server doesn't support TLS */\r
-#define EMF_ERROR_TLS_SSL_FAILURE -1041 /* The agent failed TLS/SSL */\r
-#define EMF_ERROR_APPEND_FAILURE -1042 /* The agent failed to append mail to server */\r
-#define EMF_ERROR_COMMAND_NOT_SUPPORTED -1043 /* The server doesn't support this command */\r
-#define EMF_ERROR_ANNONYM_NOT_SUPPORTED -1044 /* The server doesn't support anonymous user */\r
-#define EMF_ERROR_CERTIFICATE_FAILURE -1045 /* certificate failure - Invalid server certificate */\r
-#define EMF_ERROR_CANCELLED -1046 /* The job was canceled by user */\r
-#define EMF_ERROR_NOT_IMPLEMENTED -1047 /* The function was not implemented */\r
-#define EMF_ERROR_NOT_SUPPORTED -1048 /* The function is not supported */\r
-#define EMF_ERROR_MAIL_LOCKED -1049 /* The mail was locked */\r
-#define EMF_ERROR_SYSTEM_FAILURE -1050 /* There is a system error */\r
-#define EMF_ERROR_MAIL_MAX_COUNT -1052 /* The mailbox is full */\r
-#define EMF_ERROR_ACCOUNT_MAX_COUNT -1053 /* There is too many account */\r
-#define EMF_ERROR_MAIL_MEMORY_FULL -1054 /* There is no more storage */\r
-#define EMF_ERROR_MAIL_NOT_FOUND_ON_SERVER -1055 /* The expected mail is not found in server */\r
-#define EMF_ERROR_LOAD_ENGINE_FAILURE -1056 /* loading engine failed */\r
-#define EMF_ERROR_CLOSE_FAILURE -1057 /* engine is still used */\r
-#define EMF_ERROR_GCONF_FAILURE -1058 /* The error occurred on accessing Gconf */\r
-#define EMF_ERROR_NO_SUCH_HOST -1059 /* no such host was found */\r
-#define EMF_ERROR_EVENT_QUEUE_FULL -1060 /* event queue is full */\r
-#define EMF_ERROR_EVENT_QUEUE_EMPTY -1061 /* event queue is empty */\r
-#define EMF_ERROR_NO_RECIPIENT -1062 /* no recipients information was found */\r
-#define EMF_ERROR_SMTP_SEND_FAILURE -1063 /* SMTP send failed */\r
-#define EMF_ERROR_MAILBOX_OPEN_FAILURE -1064 /* accessing mailbox failed */\r
-#define EMF_ERROR_RETRIEVE_HEADER_DATA_FAILURE -1065 /* retrieving header failed */\r
-#define EMF_ERROR_XML_PARSER_FAILURE -1066 /* XML parsing failed */\r
-#define EMF_ERROR_SESSION_NOT_FOUND -1067 /* no matched session was found */\r
-#define EMF_ERROR_INVALID_STREAM -1068\r
-#define EMF_ERROR_AUTH_REQUIRED -1069 /* SMTP Authentication needed */\r
-#define EMF_ERROR_POP3_DELE_FAILURE -1100\r
-#define EMF_ERROR_POP3_UIDL_FAILURE -1101\r
-#define EMF_ERROR_POP3_LIST_FAILURE -1102\r
-#define EMF_ERROR_IMAP4_STORE_FAILURE -1200\r
-#define EMF_ERROR_IMAP4_EXPUNGE_FAILURE -1201\r
-#define EMF_ERROR_IMAP4_FETCH_UID_FAILURE -1202\r
-#define EMF_ERROR_IMAP4_FETCH_SIZE_FAILURE -1203\r
-#define EMF_ERROR_IMAP4_IDLE_FAILURE -1204 /* IDLE faile */\r
-#define EMF_ERROR_NO_SIM_INSERTED -1205\r
-#define EMF_ERROR_FLIGHT_MODE -1206\r
-#define EMF_ERROR_VALIDATE_ACCOUNT -1208\r
-#define EMF_ERROR_NO_MMC_INSERTED -1209\r
-#define EMF_ERROR_ACTIVE_SYNC_NOTI_FAILURE -1300\r
-#define EMF_ERROR_HANDLE_NOT_FOUND -1301\r
-#define EMF_ERROR_NULL_VALUE -1302\r
-#define EMF_ERROR_FAILED_BY_SECURITY_POLICY -1303\r
-#define EMF_ERROR_CANNOT_NEGOTIATE_TLS -1400 /* "Cannot negotiate TLS" */\r
-#define EMF_ERROR_STARTLS -1401 /* "STARTLS" */\r
-#define EMF_ERROR_IPC_CRASH -1500\r
-#define EMF_ERROR_IPC_CONNECTION_FAILURE -1501\r
-#define EMF_ERROR_IPC_SOCKET_FAILURE -1502\r
-#define EMF_ERROR_IPC_PROTOCOL_FAILURE -1503\r
-#define EMF_ERROR_LOGIN_ALLOWED_EVERY_15_MINS -1600 /* "login allowed only every 15 minutes" */\r
-#define EMF_ERROR_TOO_MANY_LOGIN_FAILURE -1601 /* "Too many login failure" */\r
-#define EMF_ERROR_ON_PARSING -1700\r
-#define EMF_ERROR_NETWORK_NOT_AVAILABLE -1800 /* WIFI not availble*/\r
-#define EMF_ERROR_CANNOT_STOP_THREAD -2000\r
-#define EMF_ERROR_UNKNOWN -8000 /* unknown error */\r
-\r
-#endif /* __EMAIL_ERRORS_H__ */\r
+/*
+* email-service
+*
+* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+*
+* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
+
+
+#ifndef __EMAIL_ERRORS_H__
+#define __EMAIL_ERRORS_H__
+
+/*****************************************************************************/
+/* Errors */
+/*****************************************************************************/
+
+
+#define EMAIL_ERROR_NONE 1 /* There is no error */
+#define EMAIL_ERROR_INVALID_PARAM -1001 /* invalid parameter was given. - Invalid input parameter */
+#define EMAIL_ERROR_INVALID_ACCOUNT -1002 /* invalid account information was given. - Unsupported account */
+#define EMAIL_ERROR_INVALID_USER -1003 /* invalid user ID was given. - Invalid user or password */
+#define EMAIL_ERROR_INVALID_PASSWORD -1004 /* invalid password was given. - Invalid user or password */
+#define EMAIL_ERROR_INVALID_SERVER -1005 /* invalid server information was given. - Server unavailable */
+#define EMAIL_ERROR_INVALID_MAIL -1006 /* invalid mail information was given */
+#define EMAIL_ERROR_INVALID_ADDRESS -1007 /* invalid address information was given. - Incorrect address */
+#define EMAIL_ERROR_INVALID_ATTACHMENT -1008 /* invalid attachment information was given */
+#define EMAIL_ERROR_INVALID_MAILBOX -1009 /* invalid mailbox information was given */
+#define EMAIL_ERROR_INVALID_FILTER -1010 /* invalid filter information was given */
+#define EMAIL_ERROR_INVALID_PATH -1011 /* invalid flle path was given */
+#define EMAIL_ERROR_INVALID_DATA -1012 /* invalid data */
+#define EMAIL_ERROR_INVALID_RESPONSE -1013 /* unexpected network response was given. - Invalid server response */
+#define EMAIL_ERROR_ACCOUNT_NOT_FOUND -1014 /* no matched account was found */
+#define EMAIL_ERROR_MAIL_NOT_FOUND -1015 /* no matched mail was found */
+#define EMAIL_ERROR_MAILBOX_NOT_FOUND -1016 /* no matched mailbox was found */
+#define EMAIL_ERROR_ATTACHMENT_NOT_FOUND -1017 /* no matched attachment was found */
+#define EMAIL_ERROR_FILTER_NOT_FOUND -1018 /* no matched filter was found */
+#define EMAIL_ERROR_CONTACT_NOT_FOUND -1019 /* no matched contact was found */
+#define EMAIL_ERROR_FILE_NOT_FOUND -1020 /* no matched file was found */
+#define EMAIL_ERROR_DATA_NOT_FOUND -1021 /* no matched data was found */
+#define EMAIL_ERROR_NO_MORE_DATA -1022 /* No more data available */
+#define EMAIL_ERROR_ALREADY_EXISTS -1023 /* data duplicated */
+#define EMAIL_ERROR_MAX_EXCEEDED -1024 /* Can't handle more data */
+#define EMAIL_ERROR_DATA_TOO_LONG -1025 /* Data is too long */
+#define EMAIL_ERROR_DATA_TOO_SMALL -1026 /* Data is too small */
+#define EMAIL_ERROR_NETWORK_TOO_BUSY -1027 /* Network is busy */
+#define EMAIL_ERROR_OUT_OF_MEMORY -1028 /* There is not enough memory */
+#define EMAIL_ERROR_DB_FAILURE -1029 /* database operation failed */
+#define EMAIL_ERROR_PROFILE_FAILURE -1030 /* no proper profile was found */
+#define EMAIL_ERROR_SOCKET_FAILURE -1031 /* socket operation failed */
+#define EMAIL_ERROR_CONNECTION_FAILURE -1032 /* network connection failed */
+#define EMAIL_ERROR_CONNECTION_BROKEN -1033 /* network connection was broken */
+#define EMAIL_ERROR_DISCONNECTED -1034 /* connection was disconnected */
+#define EMAIL_ERROR_LOGIN_FAILURE -1035 /* login failed */
+#define EMAIL_ERROR_NO_RESPONSE -1036 /* There is no server response */
+#define EMAIL_ERROR_MAILBOX_FAILURE -1037 /* The agent failed to scan mailboxes in server */
+#define EMAIL_ERROR_AUTH_NOT_SUPPORTED -1038 /* The server doesn't support authentication */
+#define EMAIL_ERROR_AUTHENTICATE -1039 /* The server failed to authenticate user */
+#define EMAIL_ERROR_TLS_NOT_SUPPORTED -1040 /* The server doesn't support TLS */
+#define EMAIL_ERROR_TLS_SSL_FAILURE -1041 /* The agent failed TLS/SSL */
+#define EMAIL_ERROR_APPEND_FAILURE -1042 /* The agent failed to append mail to server */
+#define EMAIL_ERROR_COMMAND_NOT_SUPPORTED -1043 /* The server doesn't support this command */
+#define EMAIL_ERROR_ANNONYM_NOT_SUPPORTED -1044 /* The server doesn't support anonymous user */
+#define EMAIL_ERROR_CERTIFICATE_FAILURE -1045 /* certificate failure - Invalid server certificate */
+#define EMAIL_ERROR_CANCELLED -1046 /* The job was canceled by user */
+#define EMAIL_ERROR_NOT_IMPLEMENTED -1047 /* The function was not implemented */
+#define EMAIL_ERROR_NOT_SUPPORTED -1048 /* The function is not supported */
+#define EMAIL_ERROR_MAIL_LOCKED -1049 /* The mail was locked */
+#define EMAIL_ERROR_SYSTEM_FAILURE -1050 /* There is a system error */
+#define EMAIL_ERROR_MAIL_MAX_COUNT -1052 /* The mailbox is full */
+#define EMAIL_ERROR_ACCOUNT_MAX_COUNT -1053 /* There is too many account */
+#define EMAIL_ERROR_MAIL_MEMORY_FULL -1054 /* There is no more storage */
+#define EMAIL_ERROR_MAIL_NOT_FOUND_ON_SERVER -1055 /* The expected mail is not found in server */
+#define EMAIL_ERROR_LOAD_ENGINE_FAILURE -1056 /* loading engine failed */
+#define EMAIL_ERROR_CLOSE_FAILURE -1057 /* engine is still used */
+#define EMAIL_ERROR_GCONF_FAILURE -1058 /* The error occurred on accessing Gconf */
+#define EMAIL_ERROR_NO_SUCH_HOST -1059 /* no such host was found */
+#define EMAIL_ERROR_EVENT_QUEUE_FULL -1060 /* event queue is full */
+#define EMAIL_ERROR_EVENT_QUEUE_EMPTY -1061 /* event queue is empty */
+#define EMAIL_ERROR_NO_RECIPIENT -1062 /* no recipients information was found */
+#define EMAIL_ERROR_SMTP_SEND_FAILURE -1063 /* SMTP send failed */
+#define EMAIL_ERROR_MAILBOX_OPEN_FAILURE -1064 /* accessing mailbox failed */
+#define EMAIL_ERROR_RETRIEVE_HEADER_DATA_FAILURE -1065 /* retrieving header failed */
+#define EMAIL_ERROR_XML_PARSER_FAILURE -1066 /* XML parsing failed */
+#define EMAIL_ERROR_SESSION_NOT_FOUND -1067 /* no matched session was found */
+#define EMAIL_ERROR_INVALID_STREAM -1068
+#define EMAIL_ERROR_AUTH_REQUIRED -1069 /* SMTP Authentication needed */
+#define EMAIL_ERROR_POP3_DELE_FAILURE -1100
+#define EMAIL_ERROR_POP3_UIDL_FAILURE -1101
+#define EMAIL_ERROR_POP3_LIST_FAILURE -1102
+#define EMAIL_ERROR_IMAP4_STORE_FAILURE -1200
+#define EMAIL_ERROR_IMAP4_EXPUNGE_FAILURE -1201
+#define EMAIL_ERROR_IMAP4_FETCH_UID_FAILURE -1202
+#define EMAIL_ERROR_IMAP4_FETCH_SIZE_FAILURE -1203
+#define EMAIL_ERROR_IMAP4_IDLE_FAILURE -1204 /* IDLE faile */
+#define EMAIL_ERROR_NO_SIM_INSERTED -1205
+#define EMAIL_ERROR_FLIGHT_MODE -1206
+#define EMAIL_ERROR_VALIDATE_ACCOUNT -1208
+#define EMAIL_ERROR_NO_MMC_INSERTED -1209
+#define EMAIL_ERROR_ACTIVE_SYNC_NOTI_FAILURE -1300
+#define EMAIL_ERROR_HANDLE_NOT_FOUND -1301
+#define EMAIL_ERROR_NULL_VALUE -1302
+#define EMAIL_ERROR_FAILED_BY_SECURITY_POLICY -1303
+#define EMAIL_ERROR_CANNOT_NEGOTIATE_TLS -1400 /* "Cannot negotiate TLS" */
+#define EMAIL_ERROR_STARTLS -1401 /* "STARTLS" */
+#define EMAIL_ERROR_IPC_CRASH -1500
+#define EMAIL_ERROR_IPC_CONNECTION_FAILURE -1501
+#define EMAIL_ERROR_IPC_SOCKET_FAILURE -1502
+#define EMAIL_ERROR_IPC_PROTOCOL_FAILURE -1503
+#define EMAIL_ERROR_IPC_ALREADY_INITIALIZED -1504
+#define EMAIL_ERROR_LOGIN_ALLOWED_EVERY_15_MINS -1600 /* "login allowed only every 15 minutes" */
+#define EMAIL_ERROR_TOO_MANY_LOGIN_FAILURE -1601 /* "Too many login failure" */
+#define EMAIL_ERROR_ON_PARSING -1700
+#define EMAIL_ERROR_NETWORK_NOT_AVAILABLE -1800 /* WIFI not availble*/
+#define EMAIL_ERROR_CANNOT_STOP_THREAD -2000
+#define EMAIL_ERROR_SECURED_STORAGE_FAILURE -2100 /* Error from secured storage */
+#define EMAIL_ERROR_UNKNOWN -8000 /* unknown error */
+
+#endif /* __EMAIL_ERRORS_H__ */