X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=9b1bae7db5663ccd6392440477d63bbfd9a4458e;hb=19268972c11b8c0db2becf9ea7c91f2a7e6e1f90;hp=f8c523a032832538f4486785297955820238a7e0;hpb=703965f6f52fab28c9762f1b5603c6feeec5a680;p=modest diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index f8c523a..9b1bae7 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -31,6 +31,7 @@ #define __MODEST_MSG_VIEW_WINDOW_H__ #include +#include #include #include @@ -69,30 +70,32 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; /** - * modest_msg_view_window_new: + * modest_msg_view_window_new_for_attachment: * @msg: an #TnyMsg instance * @modest_account_name: the account name * - * instantiates a new #ModestMsgViewWindow widget. The account name is used to + * instantiates a new #ModestMsgViewWindow widget to view a message that is an + * attachment in another message. + * The account name is used to * set the proper account when choosing reply/forward from the msg view window * * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ -ModestWindow* modest_msg_view_window_new (TnyMsg *msg, +ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, const gchar *modest_account_name, const gchar *msg_uid); /** * modest_msg_view_window_new_with_header_model: * @msg: an #TnyMsg instance - * @account: the account name + * @modest_account_name: the account name * @model: a #GtkTreeModel, with the format used by #ModestHeaderView - * @iter: a #GtkTreeIter, pointing to the position of @msg in @model. + * @row_reference: a #GtkTreeRowReference, pointing to the position of @msg in @model. * * instantiates a new #ModestMsgViewWindow widget. The account name is used to * set the proper account when choosing reply/forward from the msg view window. * This constructor also passes a reference to the @model of the header view - * to allow selecting previous/next messages. + * to allow selecting previous/next messages in the message list when appropriate. * * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ @@ -104,6 +107,23 @@ ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, /** + * modest_msg_view_window_new_for_search_result: + * @msg: an #TnyMsg instance + * @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. + * This constructor marks the window as being for a search result, which should + * cause some UI to be disabled, such as the previous/next buttons. + * + * Returns: a new #ModestMsgViewWindow, or NULL in case of error + */ +ModestWindow * +modest_msg_view_window_new_for_search_result (TnyMsg *msg, + const gchar *modest_account_name, + const gchar *msg_uid); + +/** * modest_msg_view_window_get_header: * @window: an #ModestMsgViewWindow instance * @@ -138,17 +158,6 @@ TnyMsg* modest_msg_view_window_get_message (ModestMsgViewWindow *win const gchar* modest_msg_view_window_get_message_uid (ModestMsgViewWindow *window); /** - * modest_msg_view_window_select_first_message: - * @window: a #ModestMsgViewWindow instance - * - * select the first message obtained from the header view this view - * was called from - * - * Returns: %TRUE if a new message is shown. - */ -gboolean modest_msg_view_window_select_first_message (ModestMsgViewWindow *window); - -/** * modest_msg_view_window_select_next_message: * @window: a #ModestMsgViewWindow instance * @@ -171,14 +180,6 @@ gboolean modest_msg_view_window_select_next_message (ModestMsgViewWindow gboolean modest_msg_view_window_select_previous_message (ModestMsgViewWindow *window); /** - * modest_msg_view_window_toggle_fullscreen: - * @window: a #ModestMsgViewWindow - * - * toggles the current fullscreen status - */ -void modest_msg_view_window_toggle_fullscreen (ModestMsgViewWindow *window); - -/** * modest_msg_view_window_view_attachment: * @window: a #ModestMsgViewWindow * @mime_part: a #TnyMimePart @@ -196,18 +197,18 @@ void modest_msg_view_window_view_attachment (ModestMsgViewWindow *win * * Get selected attachments from #ModetMsgView private object. */ -GList * modest_msg_view_window_get_attachments (ModestMsgViewWindow *win); +TnyList * modest_msg_view_window_get_attachments (ModestMsgViewWindow *win); /** * modest_msg_view_window_save_attachments: * @window: a #ModestMsgViewWindow - * @mime_parts: a #GList of #TnyMimePart + * @mime_parts: a #TnyList of #TnyMimePart * * Save the #TnyMimePart attachments in @mime_parts, or currently selected attachments * if @mime_parts is %NULL, offering a dialog to the user to choose the location. */ void modest_msg_view_window_save_attachments (ModestMsgViewWindow *window, - GList *mime_parts); + TnyList *mime_parts); /** * modest_msg_view_window_remove_attachments: @@ -257,6 +258,15 @@ gboolean modest_msg_view_window_first_message_selected (ModestMsgViewWindow *win gboolean modest_msg_view_window_has_headers_model (ModestMsgViewWindow *window); /** + * modest_msg_view_window_is_search_result: + * @window: a #ModestMsgViewWindow + * + * Check if window has been created to show a search result. + */ +gboolean modest_msg_view_window_is_search_result (ModestMsgViewWindow *window); + + +/** * modest_msg_view_window_get_folder_type: * @window: a #ModestMsgViewWindow *