aboutsummaryrefslogtreecommitdiff
path: root/src/plugin.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-21 06:08:37 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-01-21 06:08:37 +0000
commit441b184056b95fcf0ce22a1f61c7e8ce779949cc (patch)
tree5aafb212cfe30532551871503d8fca9054b14502 /src/plugin.h
parent596eb7f3b00034bbc0a8b1001c2ca6c8743312d0 (diff)
added new plug-in APIs for compose window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2436 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugin.h b/src/plugin.h
index 94ea652d..50f5738b 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -58,7 +58,11 @@ struct _SylPluginClass
void (* plugin_load) (GObject *obj, GModule *module);
void (* plugin_unload) (GObject *obj, GModule *module);
+
void (* folderview_menu_popup) (GObject *obj, gpointer ifactory);
+
+ void (* compose_created) (GObject *obj, gpointer compose);
+ void (* compose_destroy) (GObject *obj, gpointer compose);
};
struct _SylPluginInfo
@@ -155,6 +159,25 @@ gpointer syl_plugin_messageview_create_with_new_window
(void);
void syl_plugin_open_message_by_new_window (MsgInfo *msginfo);
+/* Compose */
+gpointer syl_plugin_compose_new (PrefsAccount *account,
+ FolderItem *item,
+ const gchar *mailto,
+ GPtrArray *attach_files);
+
+/* entry type:
+ 0: To 1: Cc 2: Bcc 3: Reply-To 4: Subject 5: Newsgroups 6: Followup-To */
+void syl_plugin_compose_entry_set (gpointer compose,
+ const gchar *text,
+ gint type);
+void syl_plugin_compose_entry_append (gpointer compose,
+ const gchar *text,
+ gint type);
+gchar *syl_plugin_compose_entry_get_text (gpointer compose,
+ gint type);
+void syl_plugin_compose_lock (gpointer compose);
+void syl_plugin_compose_unlock (gpointer compose);
+
/* Others */
FolderItem *syl_plugin_folder_sel (Folder *cur_folder,
gint sel_type,