4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
22 #ifndef EM_ACCOUNT_PREFS_H
23 #define EM_ACCOUNT_PREFS_H
26 #include <table/e-table.h>
27 #include <libedataserver/e-account-list.h>
28 #include <mail/e-mail-backend.h>
29 #include <misc/e-account-manager.h>
30 #include <widgets/misc/e-preferences-window.h>
32 /* Standard GObject macros */
33 #define EM_TYPE_ACCOUNT_PREFS \
34 (em_account_prefs_get_type ())
35 #define EM_ACCOUNT_PREFS(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), EM_TYPE_ACCOUNT_PREFS, EMAccountPrefs))
38 #define EM_ACCOUNT_PREFS_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), EM_TYPE_ACCOUNT_PREFS, EMAccountPrefsClass))
41 #define EM_IS_ACCOUNT_PREFS(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), EM_TYPE_ACCOUNT_PREFS))
44 #define EM_IS_ACCOUNT_PREFS_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), EM_TYPE_ACCOUNT_PREFS))
47 #define EM_ACCOUNT_PREFS_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_CLASS \
49 ((obj), EM_TYPE_ACCOUNT_PREFS, EMAccountPrefsClass))
53 typedef struct _EMAccountPrefs EMAccountPrefs
;
54 typedef struct _EMAccountPrefsClass EMAccountPrefsClass
;
55 typedef struct _EMAccountPrefsPrivate EMAccountPrefsPrivate
;
57 struct _EMAccountPrefs
{
58 EAccountManager parent
;
59 EMAccountPrefsPrivate
*priv
;
62 struct _EMAccountPrefsClass
{
63 EAccountManagerClass parent_class
;
66 GType
em_account_prefs_get_type (void);
67 GtkWidget
* em_account_prefs_new (EPreferencesWindow
*window
);
68 EMailBackend
* em_account_prefs_get_backend (EMAccountPrefs
*prefs
);
72 #endif /* EM_ACCOUNT_PREFS_H */