2 * em-subscription-editor.h
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef EM_SUBSCRIPTION_EDITOR_H
19 #define EM_SUBSCRIPTION_EDITOR_H
22 #include <camel/camel.h>
23 #include <libemail-engine/libemail-engine.h>
25 /* Standard GObject macros */
26 #define EM_TYPE_SUBSCRIPTION_EDITOR \
27 (em_subscription_editor_get_type ())
28 #define EM_SUBSCRIPTION_EDITOR(obj) \
29 (G_TYPE_CHECK_INSTANCE_CAST \
30 ((obj), EM_TYPE_SUBSCRIPTION_EDITOR, EMSubscriptionEditor))
31 #define EM_SUBSCRIPTION_EDITOR_CLASS(cls) \
32 (G_TYPE_CHECK_CLASS_CAST \
33 ((cls), EM_TYPE_SUBSCRIPTION_EDITOR, EMSubscriptionEditorClass))
34 #define EM_IS_SUBSCRIPTION_EDITOR(obj) \
35 (G_TYPE_CHECK_INSTANCE_TYPE \
36 ((obj), EM_TYPE_SUBSCRIPTION_EDITOR))
37 #define EM_IS_SUBSCRIPTION_EDITOR_CLASS(cls) \
38 (G_TYPE_CHECK_CLASS_TYPE \
39 ((cls), EM_TYPE_SUBSCRIPTION_EDITOR))
40 #define EM_IS_SUBSCRIPTION_EDITOR_GET_CLASS(obj) \
41 (G_TYPE_INSTANCE_GET_CLASS \
42 ((obj), EM_TYPE_SUBSCRIPTION_EDITOR, EMSubscriptionEditorClass))
46 typedef struct _EMSubscriptionEditor EMSubscriptionEditor
;
47 typedef struct _EMSubscriptionEditorClass EMSubscriptionEditorClass
;
48 typedef struct _EMSubscriptionEditorPrivate EMSubscriptionEditorPrivate
;
50 struct _EMSubscriptionEditor
{
52 EMSubscriptionEditorPrivate
*priv
;
55 struct _EMSubscriptionEditorClass
{
56 GtkDialogClass parent_class
;
59 GType
em_subscription_editor_get_type (void);
60 GtkWidget
* em_subscription_editor_new (GtkWindow
*parent
,
61 EMailSession
*session
,
62 CamelStore
*initial_store
);
63 EMailSession
* em_subscription_editor_get_session
64 (EMSubscriptionEditor
*editor
);
65 CamelStore
* em_subscription_editor_get_store
66 (EMSubscriptionEditor
*editor
);
70 #endif /* EM_SUBSCRIPTION_EDITOR_H */