X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-msg-actions.h;h=7637eb6dc287a094a81d3c8b8c578cd5d816ede5;hb=1346cbf1e93627aa113fe1f9768c9da9942ce5e6;hp=9253a67195d3486e905461756aaa0a5fb2cea2d4;hpb=8db724acde57179f20bbcba7298e631f9e6989f2;p=modest diff --git a/src/modest-tny-msg-actions.h b/src/modest-tny-msg-actions.h index 9253a67..7637eb6 100644 --- a/src/modest-tny-msg-actions.h +++ b/src/modest-tny-msg-actions.h @@ -9,14 +9,35 @@ /** * modest_tny_msg_actions_quote: * @self: the message to quote + * @from: the original sender of the message + * @sent_date: the date the original message was sent + * @limit: characters per line limit for the quoted message + * @to_quote: a string to quote instead of the message body * - * Returns: a string containing the quoted message + * reply-quotes a message or @to_quote if it's not NULL. + + * Note: @from and @sent_date may be eliminated from the API in future versions + * + * Returns: a newly allocated string containing the quoted message */ -gchar *modest_tny_msg_actions_quote(const TnyMsgIface *self, - const gchar *from, - time_t sent_date, - gint limit, - GtkTextBuffer *to_quote); +gchar *modest_tny_msg_actions_quote (const TnyMsgIface * self, + const gchar * from, + time_t sent_date, + gint limit, gchar *to_quote); + +/** + * modest_tny_msg_actions_find_body_part: + * @self: a message + * @mime_type: the mime type to find + * + * search a message for a body part of type @mime_type. @mime_type is a string + * like "text/plain". + * + * Returns: the TnyMsgMimePartIface for the found part, or NULL if no matching part is found + */ + +TnyMsgMimePartIface *modest_tny_msg_actions_find_body_part (TnyMsgIface * self, + const gchar * mime_type); -#endif /* __MODEST_TNY_MSG_ACTIONS_H__*/ +#endif /* __MODEST_TNY_MSG_ACTIONS_H__ */