root/trunk/src/tmut-msg-creator.h

Revision 42 (checked in by pvanhoof, 10 months ago)

2007-11-05 Philip Van Hoof <pvanhoof@gnome.org>

Line 
1 #ifndef TMUT_MSG_CREATOR_H
2 #define TMUT_MSG_CREATOR_H
3
4 /* TMut
5  * Copyright (C) 2006-2007 Philip Van Hoof <pvanhoof@gnome.org>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with self library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23 #include <gtk/gtk.h>
24 #include <glib-object.h>
25
26 #include <tmut-shared.h>
27 #include <tny-msg.h>
28 #include <tmut-shell-child.h>
29
30 #include <tny-account.h>
31 #include <tny-account-store-view.h>
32
33 G_BEGIN_DECLS
34
35 #define TMUT_TYPE_MSG_CREATOR             (tmut_msg_creator_get_type ())
36 #define TMUT_MSG_CREATOR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TMUT_TYPE_MSG_CREATOR, TMutMsgCreator))
37 #define TMUT_MSG_CREATOR_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TMUT_TYPE_MSG_CREATOR, TMutMsgCreatorClass))
38 #define TMUT_IS_MSG_CREATOR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TMUT_TYPE_MSG_CREATOR))
39 #define TMUT_IS_MSG_CREATOR_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TMUT_TYPE_MSG_CREATOR))
40 #define TMUT_MSG_CREATOR_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TMUT_TYPE_MSG_CREATOR, TMutMsgCreatorClass))
41
42
43 typedef struct _TMutMsgCreator TMutMsgCreator;
44 typedef struct _TMutMsgCreatorClass TMutMsgCreatorClass;
45
46 struct _TMutMsgCreator
47 {
48         GtkVBox parent;
49 };
50
51 struct _TMutMsgCreatorClass
52 {
53         GtkVBoxClass parent_class;
54 };
55
56 GType tmut_msg_creator_get_type (void);
57 TMutMsgCreator* tmut_msg_creator_new (void);
58
59 void tmut_msg_creator_set_reply_msg (TMutMsgCreator *self, TnyMsg *msg);
60 void tmut_msg_creator_set_forward_msg (TMutMsgCreator *self, TnyMsg *msg);
61
62 void tmut_msg_creator_add_attachment (TMutMsgCreator *self, TnyMimePart *part);
63 void tmut_msg_creator_remove_attachment (TMutMsgCreator *self, TnyMimePart *part);
64
65 G_END_DECLS
66
67 #endif
Note: See TracBrowser for help on using the browser.