modify header file for native API reference 73/105273/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.100137 accepted/tizen/3.0.m2/wearable/20170104.100859 accepted/tizen/3.0/common/20161220.101258 accepted/tizen/3.0/ivi/20161220.010628 accepted/tizen/3.0/mobile/20161220.010548 accepted/tizen/3.0/wearable/20161220.010613 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0/20161219.061554
authorintae, jeon <intae.jeon@samsung.com>
Fri, 16 Dec 2016 06:55:48 +0000 (15:55 +0900)
committerintae, jeon <intae.jeon@samsung.com>
Fri, 16 Dec 2016 06:55:48 +0000 (15:55 +0900)
Change-Id: I62ed9221131cc6976ac2787c4a73815d2fca5d5c
Signed-off-by: intae, jeon <intae.jeon@samsung.com>
doc/email_doc.h [changed mode: 0755->0644]
include/email.h [changed mode: 0755->0644]
include/email_error.h [changed mode: 0755->0644]
include/email_types.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index f0c5c78..3bcbcfc
 #define __TIZEN_EMAIL_DOC_H__
 
 /**
- * @defgroup CAPI_MESSAGING_EMAIL_MODULE Email
- * @brief The Email API provides functions to create, set properties and send email.
  * @ingroup CAPI_MESSAGING_FRAMEWORK
- *
+ * @defgroup CAPI_MESSAGING_EMAIL_MODULE Email
  * @addtogroup CAPI_MESSAGING_EMAIL_MODULE
- *
+ * @brief The Email API provides functions to create, set properties, and send emails.
  * @section CAPI_MESSAGING_EMAIL_MODULE_HEADER Required Header
  *   \#include <email.h>
  *
- *
  * @section CAPI_MESSAGING_EMAIL_MODULE_OVERVIEW Overview
- *
  * The @ref CAPI_MESSAGING_EMAIL_MODULE API provides functions that prepare and send email messages.
  * This API allows email message creation, setting message properties
  * and sending as well setting up to be notified when the email message has been sent.
- *
- *
  * Email, short for electronic mail, is a method of exchanging digital messages.
  * This API allows you to send email using SMTP.
  * Simple Mail Transfer Protocol (SMTP) used for sending email via Internet is described in RFC5321/5322 standards.
- *
  * The Email API consists of functions that:
- * - Set the subject, body and recipients of an email message
+ * - Set the subject, body, and recipients of an email message
  * - Set the file path for attaching files to an email message
  * - Send an email message
- * - Register/unregister a callback function to be called when the sending process is complete,
- *     whether it is sent successfully or not
- *
+ * - Register/unregister a callback function to be called when the sending process is complete, whether it is sent successfully or not
  * Email sending is asynchronous and the application should not wait for the result.
  * Not only may the process be slow (connections to be established and so on),
  * but even if the mail server is not available a message send may not be a failure, if there is a spooling mechanism.
old mode 100755 (executable)
new mode 100644 (file)
index b18aac3..4b642aa
  * limitations under the License.
  */
 
  #ifndef __MESSAGING_EMAIL_H__
  #define __MESSAGING_EMAIL_H__
 
 /**
  * @addtogroup CAPI_MESSAGING_EMAIL_MODULE
  * @{
  */
 
 /**
- * @file        email.h
- * @ingroup     CAPI_MESSAGING_EMAIL_MODULE
- * @brief       Messaging API file, support for sending email messages.
+ * @file email.h
+ * @ingroup CAPI_MESSAGING_EMAIL_MODULE
+ * @brief Messaging API file, support for sending email messages.
  */
 
 
@@ -38,209 +40,162 @@ extern "C"
 {
 #endif /* __cplusplus */
 
+
 /**
- * @brief   Creates an email message handle for sending an email message.
+ * @brief Creates an email message handle for sending an email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  * @privlevel public
  * @privilege %http://tizen.org/privilege/email
- *
- * @remarks  You must release @a email using email_destroy_message().
- *
- * @param[out]  email  A handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE                  Successful
- * @retval  #EMAILS_ERROR_OUT_OF_MEMORY         Out of memory
- * @retval  #EMAILS_ERROR_ACCOUNT_NOT_FOUND     Email account not found
- * @retval  #EMAILS_ERROR_PERMISSION_DENIED     The application does not have the privilege to call this method
- *
- * @pre      At least one email account should be set up on the device.
- *
+ * @remarks You must release @a email using email_destroy_message().
+ * @param[out] email A handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #EMAILS_ERROR_ACCOUNT_NOT_FOUND Email account not found
+ * @retval #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
+ * @pre At least one email account should be set up on the device.
  * @see email_destroy_message()
  */
 int email_create_message(email_h *email);
 
+
 /**
- * @brief   Destroys the email message handle and releases all its resources.
+ * @brief Destroys the email message handle and releases all its resources.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  email  The handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE               Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER  Invalid parameter
- * @retval  #EMAILS_ERROR_OPERATION_FAILED   Operation failed
- *
+ * @param[in] email The handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_OPERATION_FAILED Operation failed
  * @see email_create_message()
  */
 int email_destroy_message(email_h email);
 
+
 /**
- * @brief   Sets a subject of the email message.
+ * @brief Sets a subject of the email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/email
-
- * @param[in]   email    The handle to the email message
- * @param[in]   subject  The subject of the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE               Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER  Invalid parameter
- * @retval  #EMAILS_ERROR_OUT_OF_MEMORY      Out of memory
- * @retval  #EMAILS_ERROR_PERMISSION_DENIED  The application does not have the privilege to call this method
- *
- * @pre     An email message handle is created using email_create_message().
- *
- * @see  email_create_message()
+ * @param[in] email The handle to the email message
+ * @param[in] subject The subject of the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
+ * @pre An email message handle is created using email_create_message().
+ * @see email_create_message()
  */
 int email_set_subject(email_h email, const char *subject);
 
+
 /**
- * @brief   Populates a body of the email message.
+ * @brief Populates a body of the email message.
  * @details Email message body means the text data to be delivered.
- *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/mediastorage
- *
- * @param[in]   email   The handle to the email message
- * @param[in]   body    The message body
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #EMAILS_ERROR_OPERATION_FAILED  Operation failed
- * @retval  #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
- *
- * @pre     An email message handle is created using email_create_message().
- *
- * @see  email_create_message()
+ * @param[in] email The handle to the email message
+ * @param[in] body The message body
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_OPERATION_FAILED Operation failed
+ * @retval #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
+ * @pre An email message handle is created using email_create_message().
+ * @see email_create_message()
  */
 int email_set_body(email_h email, const char *body);
 
+
 /**
- * @brief   Adds a recipient to the email message.
+ * @brief Adds a recipient to the email message.
  * @details The email API supports sending an email message to multiple recipients.
- *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @remarks Email address should be in standard format (as described in
- *          Internet standards RFC 5321 and RFC 5322).
- *
- * @param[in]   email   The handle to the email message
- * @param[in]   type    The recipient type
- * @param[in]   address The recipient email address
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #EMAILS_ERROR_OUT_OF_MEMORY     Out of memory
- *
- * @pre     An email message handle is created using email_create_message().
- *
+ * @remarks Email address should be in standard format (as described in Internet standards RFC 5321 and RFC 5322).
+ * @param[in] email The handle to the email message
+ * @param[in] type The recipient type
+ * @param[in] address The recipient email address
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_OUT_OF_MEMORY Out of memory
+ * @pre An email message handle is created using email_create_message().
  * @see email_create_message()
  * @see email_remove_all_recipients()
  */
 int email_add_recipient(email_h email, email_recipient_type_e type, const char *address);
 
+
 /**
- * @brief   Removes all recipients for the email message.
+ * @brief Removes all recipients for the email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  email  The handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @pre     An email message handle is created using email_create_message().
- *
+ * @param[in] email The handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre An email message handle is created using email_create_message().
  * @see email_add_recipient()
  */
 int email_remove_all_recipients(email_h email);
 
+
 /**
- * @brief   Adds a file as an attachment to the email message.
- * @details It should be used to add a file to the attachment list
- *          of the email message.
- *
+ * @brief Adds a file as an attachment to the email message.
+ * @details It should be used to add a file to the attachment list of the email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @remarks  The maximum attachment file size is 10MB.
- *           http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage
- *           http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage.
- *
- * @param[in]   email       The handle to the email message
- * @param[in]   filepath    The absolute full path of the file to be attached
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval  #EMAILS_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval  #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
- *
- * @pre     An email message handle is created using email_create_message().
- *
+ * @remarks The maximum attachment file size is 10MB.
+ *          http://tizen.org/privilege/mediastorage is needed if input or output path are relevant to media storage
+ *          http://tizen.org/privilege/externalstorage is needed if input or output path are relevant to external storage.
+ * @param[in] email The handle to the email message
+ * @param[in] filepath The absolute full path of the file to be attached
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
+ * @pre An email message handle is created using email_create_message().
  * @see email_remove_all_attachments()
- *
  */
 int email_add_attach(email_h email, const char *filepath);
 
+
 /**
- * @brief   Clears all attachments of the email message.
+ * @brief Clears all attachments of the email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  email  The handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @pre     An email message handle is created using email_create_message().
- *
+ * @param[in] email The handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre An email message handle is created using email_create_message().
  * @see email_create_message()
  * @see email_add_attach()
  */
 int email_remove_all_attachments(email_h email);
 
+
 /**
- * @brief   Saves the email message at outbox.
+ * @brief Saves the email message at outbox.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
  * @privlevel public
  * @privilege %http://tizen.org/privilege/email
- *
- * @param[in]  email  The handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE                             Successful
- * @retval  #EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED Communication with server failed.
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER                Invalid parameter
- * @retval  #EMAILS_ERROR_PERMISSION_DENIED               The application does not have the privilege to call this method
- *
- * @pre     An email message handle is created using email_create_message().
- *
+ * @param[in] email The handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED Communication with server failed.
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #EMAILS_ERROR_PERMISSION_DENIED The application does not have the privilege to call this method
+ * @pre An email message handle is created using email_create_message().
  * @see email_create_message()
  * @see email_add_recipient()
  * @see email_set_body()
@@ -250,26 +205,18 @@ int email_save_message(email_h email);
 
 
 /**
- * @brief   Sends the email message.
+ * @brief Sends the email message.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- *
- * @remarks In order to check whether sending a message succeeds,
- *          you should register email_message_sent_cb() using email_set_message_sent_cb().
- *
- * @param[in]   email            The handle to the email message
- * @param[in]   save_to_sentbox  Set to @c true to save the message in the sentbox,
- *                               otherwise set to @c false to not save the message in the sentbox
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE                              Successful
- * @retval  #EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED  Communication with server failed
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER                 Invalid parameter
- *
- * @pre     An email message is stored using email_save_message().
- *
+ * @remarks In order to check whether sending a message succeeds, you should register email_message_sent_cb() using email_set_message_sent_cb().
+ * @param[in] email The handle to the email message
+ * @param[in] save_to_sentbox Set to @c true to save the message in the sentbox,
+ *                            otherwise set to @c false to not save the message in the sentbox
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED Communication with server failed
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @pre An email message is stored using email_save_message().
  * @see email_save_message()
  * @see email_set_message_sent_cb()
  */
@@ -277,73 +224,64 @@ int email_send_message(email_h email, bool save_to_sentbox);
 
 
 /**
- * @brief   Called when the process of sending an email finishes.
+ * @brief Called when the process of sending an email finishes.
  * @details You can check whether sending an email succeeds using this function.
- *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]   email       The handle to the email message
- * @param[in]   result      The result of email message sending \n
- *                          #EMAIL_SENDING_FAILED or #EMAIL_SENDING_SUCCEEDED
- * @param[in]   user_data   The user data passed from the callback registration function
- *
+ * @param[in] email The handle to the email message
+ * @param[in] result The result of email message sending \n
+ *                   #EMAIL_SENDING_FAILED or #EMAIL_SENDING_SUCCEEDED
+ * @param[in] user_data The user data passed from the callback registration function
  * @pre email_send_message() will invoke this callback if you register this callback using email_set_message_sent_cb().
- *
  * @see email_send_message()
  * @see email_set_message_sent_cb()
  * @see email_unset_message_sent_cb()
  */
 typedef void (*email_message_sent_cb)(email_h email, email_sending_e result, void *user_data);
 
+
 /**
- * @brief   Registers a callback function to be invoked when an email message is sent.
+ * @brief Registers a callback function to be invoked when an email message is sent.
  * @details You will be notified when sending a message finishes and check whether it succeeds using this function.
- *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  email      The handle to the email message
- * @param[in]  callback   The callback function to register
- * @param[in]  user_data  The user data to be passed to the callback function
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE               Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER  Invalid parameter
- *
- * @post  It will invoke email_message_sent_cb().
- *
+ * @param[in] email The handle to the email message
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
+ * @post It will invoke email_message_sent_cb().
  * @see email_message_sent_cb()
  * @see email_unset_message_sent_cb()
  * @see email_send_message()
  */
 int email_set_message_sent_cb(email_h email, email_message_sent_cb callback, void *user_data);
 
+
 /**
- * @brief   Unregisters the callback function.
+ * @brief Unregisters the callback function.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  msg  The handle to the email message
- *
- * @return  @c 0 on success,
- *          otherwise a negative error value
- *
- * @retval  #EMAILS_ERROR_NONE              Successful
- * @retval  #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
- *
+ * @param[in] msg The handle to the email message
+ * @return @c 0 on success,
+ *         otherwise a negative error value
+ * @retval #EMAILS_ERROR_NONE Successful
+ * @retval #EMAILS_ERROR_INVALID_PARAMETER Invalid parameter
  * @see email_message_sent_cb()
  * @see email_set_message_sent_cb()
  * @see email_send_message()
  */
 int email_unset_message_sent_cb(email_h msg);
 
+
 #ifdef __cplusplus
 }
 #endif
 
+
 /**
 * @}
 */
 
+
 #endif /* __MESSAGING_EMAIL_H__ */
 
old mode 100755 (executable)
new mode 100644 (file)
index 89e1d24..537fc70
 #ifndef __EMAILAPI_ERROR_H__
 #define __EMAILAPI_ERROR_H__
 
+
 #include <tizen.h>
 
+
 #ifdef __cplusplus
 extern "C"
 {
 #endif
 
+
 /**
  * @addtogroup CAPI_MESSAGING_EMAIL_MODULE
  * @{
  */
 
 /**
- * @file        email_error.h
- * @brief       Email error definitions.
+ * @file email_error.h
+ * @brief Email error definitions.
  */
 
 /**
- *  @brief    Enumeration for error codes for email API.
+ *  @brief Enumeration for error codes for email API.
  *  @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  */
 typedef enum {
-       EMAILS_ERROR_NONE                              = TIZEN_ERROR_NONE,                   /**< Successful */
-       EMAILS_ERROR_OUT_OF_MEMORY                     = TIZEN_ERROR_OUT_OF_MEMORY,          /**< Memory cannot be allocated */
-       EMAILS_ERROR_INVALID_PARAMETER                 = TIZEN_ERROR_INVALID_PARAMETER,      /**< Invalid parameter */
-
-       EMAILS_ERROR_SERVER_NOT_READY                  = TIZEN_ERROR_EMAIL_SERVICE|0x200,    /**< Server not ready */
-       EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED  = TIZEN_ERROR_EMAIL_SERVICE|0x201,    /**< Communication with server failed */
-       EMAILS_ERROR_OPERATION_FAILED                  = TIZEN_ERROR_EMAIL_SERVICE|0x202,    /**< Operation failed */
-       EMAILS_ERROR_ACCOUNT_NOT_FOUND                 = TIZEN_ERROR_EMAIL_SERVICE|0x203,    /**< Email account not found */
-       EMAILS_ERROR_DB_FAILED                         = TIZEN_ERROR_EMAIL_SERVICE|0x204,    /**< Email database failed */
-       EMAILS_ERROR_PERMISSION_DENIED                 = TIZEN_ERROR_PERMISSION_DENIED,      /**< Permission denied */
+       EMAILS_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
+       EMAILS_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Memory cannot be allocated */
+       EMAILS_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
+
+       EMAILS_ERROR_SERVER_NOT_READY = TIZEN_ERROR_EMAIL_SERVICE|0x200, /**< Server not ready */
+       EMAILS_ERROR_COMMUNICATION_WITH_SERVER_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x201, /**< Communication with server failed */
+       EMAILS_ERROR_OPERATION_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x202, /**< Operation failed */
+       EMAILS_ERROR_ACCOUNT_NOT_FOUND = TIZEN_ERROR_EMAIL_SERVICE|0x203, /**< Email account not found */
+       EMAILS_ERROR_DB_FAILED = TIZEN_ERROR_EMAIL_SERVICE|0x204, /**< Email database failed */
+       EMAILS_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
 } email_error_e;
 
+
 /**
  * @}
  */
 
 #ifdef __cplusplus
 }
 #endif
 
+
 #endif /* __EMAILAPI_ERROR_H__*/
 
old mode 100755 (executable)
new mode 100644 (file)
index e88f809..ff81af8
 #ifndef __TIZEN_EMAIL_TYPES_H__
 #define __TIZEN_EMAIL_TYPES_H__
 
+
 #ifdef __cplusplus
 extern "C"
 {
 #endif
 
+
 /**
  * @addtogroup CAPI_MESSAGING_EMAIL_MODULE
  * @{
@@ -30,47 +32,50 @@ extern "C"
 
 
 /**
- * @file        email_types.h
- * @ingroup     CAPI_MESSAGING_EMAIL_MODULE
- * @brief       This file defines common types and enums of EMAIL.
+ * @file email_types.h
+ * @ingroup CAPI_MESSAGING_EMAIL_MODULE
+ * @brief This file defines common types and enums of EMAIL.
  */
 
 
 /**
- * @brief   The email message handle.
+ * @brief The email message handle.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  */
 typedef struct email_s *email_h;
 
 
 /**
- * @brief  Enumeration for the result values of email transport.
+ * @brief Enumeration for the result values of email transport.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  */
 typedef enum {
-       EMAIL_SENDING_FAILED = -1,    /**< Email sending failed */
-       EMAIL_SENDING_SUCCEEDED = 0,  /**< Email sending succeeded */
+       EMAIL_SENDING_FAILED = -1, /**< Email sending failed */
+       EMAIL_SENDING_SUCCEEDED = 0, /**< Email sending succeeded */
 } email_sending_e;
 
 
 /**
- * @brief  Enumeration for the email recipient types.
+ * @brief Enumeration for the email recipient types.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 3.0 @endif
  */
 typedef enum {
        EMAIL_RECIPIENT_TYPE_TO = 1, /**< Normal recipient */
-       EMAIL_RECIPIENT_TYPE_CC ,    /**< CC(carbon copy) recipient */
-       EMAIL_RECIPIENT_TYPE_BCC ,   /**< BCC(blind carbon copy) recipient */
+       EMAIL_RECIPIENT_TYPE_CC , /**< CC(carbon copy) recipient */
+       EMAIL_RECIPIENT_TYPE_BCC , /**< BCC(blind carbon copy) recipient */
 } email_recipient_type_e;
 
 
 /**
  * @}
  */
 #ifdef __cplusplus
 }
 #endif
 
+
 #endif /* __TIZEN_EMAIL_TYPES_H__*/