X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-email-clipboard.h;h=739842e590a503439851504d0342323095d8c5bd;hp=d34e3295b0fd87a110b20dbd427738b5d1593cb4;hb=f5dbd4b46192eb32cff4e2b2fb4a171cf816d0dd;hpb=bf831b6566516e6b57de7a64afb732eb8686e792 diff --git a/src/modest-email-clipboard.h b/src/modest-email-clipboard.h index d34e329..739842e 100644 --- a/src/modest-email-clipboard.h +++ b/src/modest-email-clipboard.h @@ -33,7 +33,6 @@ #include #include -#include #include G_BEGIN_DECLS @@ -48,9 +47,11 @@ G_BEGIN_DECLS typedef struct _ModestEmailClipboard ModestEmailClipboard; typedef struct _ModestEmailClipboardClass ModestEmailClipboardClass; +typedef struct _ModestEmailClipboardPrivate ModestEmailClipboardPrivate; struct _ModestEmailClipboard { GObject parent; + ModestEmailClipboardPrivate *priv; }; struct _ModestEmailClipboardClass { @@ -86,6 +87,7 @@ ModestEmailClipboard* modest_email_clipboard_new (void); * Gets data from clipboard to manage them with copy, cut and paste operations. * Currently imementation allows #TnyFolder or #TnyHeader objects. * + * After getting data, clipboard will be cleared. */ void modest_email_clipboard_get_data (ModestEmailClipboard *self, @@ -131,6 +133,20 @@ gboolean modest_email_clipboard_cleared (ModestEmailClipboard *self); /** + * modest_email_clipboard_cleared: + * @self: a #ModestEmailClipboard singlenton instance. + * @folder: a #TnyFolder instance to compare. + * + * Determines if source folder stored on clipboard is the + * same as @folder, passed as argument. + * + * returns TRUE, if clipboard is cleared, FALSE otherwise. + */ +gboolean +modest_email_clipboard_check_source_folder (ModestEmailClipboard *self, + TnyFolder *folder); + +/** * modest_email_clipboard_set_data: * @self: a #ModestEmailClipboard singlenton instance. * @n_selected: the number of items copied and marked to delete. @@ -142,6 +158,37 @@ gboolean modest_email_clipboard_cleared (ModestEmailClipboard *self); const gchar **modest_email_clipboard_get_hidding_ids (ModestEmailClipboard *self, guint *n_selected); +/** + * modest_email_clipboard_get_folder_name: + * @self: a #ModestEmailClipboard singlenton instance. + * + * Gets the source folder name. + * + * returns a const string with folder name, or NULL if data are not valid. + */ +const gchar *modest_email_clipboard_get_folder_name (ModestEmailClipboard *self); + + +/** + * modest_email_clipboard_headers_copied: + * @self: a #ModestEmailClipboard singlenton instance. + * + * Checks if clipboard has headers stored. + * + * returns TRUE, if clipboard stores headers, FALSE otherwise. + */ +gboolean modest_email_clipboard_headers_copied (ModestEmailClipboard *self); + +/** + * modest_email_clipboard_headers_copied: + * @self: a #ModestEmailClipboard singlenton instance. + * + * Checks if clipboard has one folder stored. + * + * returns TRUE, if clipboard stores one folder, FALSE otherwise. + */ +gboolean modest_email_clipboard_folder_copied (ModestEmailClipboard *self); + G_END_DECLS #endif /* __MODEST_EMAIL_CLIPBOARD_H__ */