* src/maemo/modest-msg-edit-window.c: added support for rich editing
[modest] / src / modest-mail-operation.h
index c03d4ec..c5f49fb 100644 (file)
@@ -47,37 +47,6 @@ typedef struct _ModestMailOperation      ModestMailOperation;
 typedef struct _ModestMailOperationClass ModestMailOperationClass;
 
 /**
- * ModestMailOperationForwardType:
- *
- * How the original message will be forwarded to the recipient
- */
-typedef enum _ModestMailOperationForwardType {
-       MODEST_MAIL_OPERATION_FORWARD_TYPE_INLINE = 1,
-       MODEST_MAIL_OPERATION_FORWARD_TYPE_ATTACHMENT
-} ModestMailOperationForwardType;
-
-/**
- * ModestMailOperationReplyType:
- *
- * How the original message will be forwarded to the recipient
- */
-typedef enum _ModestMailOperationReplyType {
-       MODEST_MAIL_OPERATION_REPLY_TYPE_CITE = 1,
-       MODEST_MAIL_OPERATION_REPLY_TYPE_QUOTE
-} ModestMailOperationReplyType;
-
-/**
- * ModestMailOperationReplyMode:
- *
- * Who will be the recipients of the replied message
- */
-typedef enum _ModestMailOperationReplyMode {
-       MODEST_MAIL_OPERATION_REPLY_MODE_SENDER,
-       MODEST_MAIL_OPERATION_REPLY_MODE_LIST,
-       MODEST_MAIL_OPERATION_REPLY_MODE_ALL
-} ModestMailOperationReplyMode;
-
-/**
  * ModestMailOperationStatus:
  *
  * The state of a mail operation
@@ -135,7 +104,9 @@ void    modest_mail_operation_send_mail       (ModestMailOperation *self,
  * @cc: a comma-separated list of email addresses where to send a carbon copy
  * @bcc: a comma-separated list of email addresses where to send a blind carbon copy
  * @subject: the subject of the new mail
- * @body: the body of the new mail
+ * @plain_body: the plain text body of the new mail.
+ * @html_body: the html version of the body of the new mail. If NULL, the mail will
+ *             be sent with the plain body only.
  * @attachments_list: a #GList of attachments, each attachment must be a #TnyMimePart
  * 
  * Sends a new mail message using the provided
@@ -150,38 +121,11 @@ void    modest_mail_operation_send_new_mail   (ModestMailOperation *self,
                                               const gchar *cc,
                                               const gchar *bcc,
                                               const gchar *subject,
-                                              const gchar *body,
+                                              const gchar *plain_body,
+                                              const gchar *html_body,
                                               const GList *attachments_list);
 
 /**
- * modest_mail_operation_create_forward_mail:
- * @msg: a valid #TnyMsg instance
- * @forward_type: the type of formatting used to create the forwarded message
- * 
- * Creates a forwarded message from an existing one
- * 
- * Returns: a new #TnyMsg, or NULL in case of error
- **/
-TnyMsg* modest_mail_operation_create_forward_mail (TnyMsg *msg, 
-                                                  const gchar *from,
-                                                  ModestMailOperationForwardType forward_type);
-
-/**
- * modest_mail_operation_create_reply_mail:
- * @msg: a valid #TnyMsg instance
- * @reply_type: the type of formatting used to create the reply message
- * @reply_mode: the mode of reply: to the sender only, to a mail list or to all
- * 
- * Creates a new message to reply to an existing one
- * 
- * Returns: Returns: a new #TnyMsg, or NULL in case of error
- **/
-TnyMsg* modest_mail_operation_create_reply_mail    (TnyMsg *msg, 
-                                                   const gchar *from,
-                                                   ModestMailOperationReplyType reply_type,
-                                                   ModestMailOperationReplyMode reply_mode);
-
-/**
  * modest_mail_operation_update_account:
  * @self: a #ModestMailOperation
  * @store_account: a #TnyStoreAccount