X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=f8c523a032832538f4486785297955820238a7e0;hb=fce141104a93d994fa67163492c07a1ea2cc8f72;hp=5d9ee6c468d7ab1d42a68818d7b4884448933b4a;hpb=fcbac814e10741c98a721bf4198b4238d64e57d8;p=modest diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index 5d9ee6c..f8c523a 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -51,8 +51,11 @@ typedef struct { typedef struct { ModestWindowClass parent_class; - /* insert signal callback declarations, eg. */ - /* void (* my_event) (ModestEditMsgWindow* obj); */ + + void (*msg_changed) (ModestMsgViewWindow *self, + GtkTreeModel *model, + GtkTreeRowReference *row_reference, + gpointer user_data); } ModestMsgViewWindowClass; /** @@ -68,7 +71,7 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; /** * modest_msg_view_window_new: * @msg: an #TnyMsg instance - * @account: the account name + * @modest_account_name: the account name * * instantiates a new #ModestMsgViewWindow widget. The account name is used to * set the proper account when choosing reply/forward from the msg view window @@ -76,7 +79,7 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ ModestWindow* modest_msg_view_window_new (TnyMsg *msg, - const gchar *account, + const gchar *modest_account_name, const gchar *msg_uid); /** @@ -94,7 +97,7 @@ ModestWindow* modest_msg_view_window_new (TnyMsg *msg, * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, - const gchar *account, + const gchar *modest_account_name, const gchar *msg_uid, GtkTreeModel *model, GtkTreeRowReference *row_reference); @@ -209,13 +212,13 @@ void modest_msg_view_window_save_attachments (ModestMsgViewWindow *wi /** * modest_msg_view_window_remove_attachments: * @window: a #ModestMsgViewWindow - * @mime_parts: a #GList of #TnyMimePart + * @get_all: a #gboolean. If %TRUE, purges all attachmnents, if %FALSE, + * purges only selected ones. * - * Removes the attachments in @mime_parts, or currently selected attachments - * if @mime_parts is %NULL, from local storage. + * Removes selected attachments. */ void modest_msg_view_window_remove_attachments (ModestMsgViewWindow *window, - GList *mime_parts); + gboolean get_all); /** @@ -262,6 +265,17 @@ gboolean modest_msg_view_window_has_headers_model (ModestMsgViewWindow *window); TnyFolderType modest_msg_view_window_get_folder_type (ModestMsgViewWindow *window); +/** + * modest_msg_view_window_transfer_mode_enabled: + * @window: a #ModestMsgViewWindow + * + * Determines if some transfer operation is in progress. + * + * Returns: TRUE if transfer mode is enabled, FASE otherwise. +*/ +gboolean +modest_msg_view_window_transfer_mode_enabled (ModestMsgViewWindow *self); + G_END_DECLS #endif /* __MODEST_MSG_VIEW_WINDOW_H__ */