| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 2012 Red Hat, Inc. (www.redhat.com) |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef E_MAIL_CONFIG_EWS_DELEGATES_PAGE_H |
| 7 |
#define E_MAIL_CONFIG_EWS_DELEGATES_PAGE_H |
| 8 |
|
| 9 |
#include <gtk/gtk.h> |
| 10 |
#include <libedataserver/libedataserver.h> |
| 11 |
|
| 12 |
#include <mail/e-mail-config-page.h> |
| 13 |
#include <mail/e-mail-config-activity-page.h> |
| 14 |
|
| 15 |
/* Standard GObject macros */ |
| 16 |
#define E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE \ |
| 17 |
(e_mail_config_ews_delegates_page_get_type ()) |
| 18 |
#define E_MAIL_CONFIG_EWS_DELEGATES_PAGE(obj) \ |
| 19 |
(G_TYPE_CHECK_INSTANCE_CAST \ |
| 20 |
((obj), E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE, EMailConfigEwsDelegatesPage)) |
| 21 |
#define E_MAIL_CONFIG_EWS_DELEGATES_PAGE_CLASS(cls) \ |
| 22 |
(G_TYPE_CHECK_CLASS_CAST \ |
| 23 |
((cls), E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE, EMailConfigEwsDelegatesPageClass)) |
| 24 |
#define E_IS_MAIL_CONFIG_EWS_DELEGATES_PAGE(obj) \ |
| 25 |
(G_TYPE_CHECK_INSTANCE_TYPE \ |
| 26 |
((obj), E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE)) |
| 27 |
#define E_IS_MAIL_CONFIG_EWS_DELEGATES_PAGE_CLASS(cls) \ |
| 28 |
(G_TYPE_CHECK_CLASS_TYPE \ |
| 29 |
((cls), E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE)) |
| 30 |
#define E_MAIL_CONFIG_EWS_DELEGATES_PAGE_GET_CLASS(obj) \ |
| 31 |
(G_TYPE_INSTANCE_GET_CLASS \ |
| 32 |
((obj), E_TYPE_MAIL_CONFIG_EWS_DELEGATES_PAGE, EMailConfigEwsDelegatesPageClass)) |
| 33 |
|
| 34 |
#define E_MAIL_CONFIG_EWS_DELEGATES_PAGE_SORT_ORDER (551) |
| 35 |
|
| 36 |
G_BEGIN_DECLS |
| 37 |
|
| 38 |
typedef struct _EMailConfigEwsDelegatesPage EMailConfigEwsDelegatesPage; |
| 39 |
typedef struct _EMailConfigEwsDelegatesPageClass EMailConfigEwsDelegatesPageClass; |
| 40 |
typedef struct _EMailConfigEwsDelegatesPagePrivate EMailConfigEwsDelegatesPagePrivate; |
| 41 |
|
| 42 |
struct _EMailConfigEwsDelegatesPage { |
| 43 |
EMailConfigActivityPage parent; |
| 44 |
EMailConfigEwsDelegatesPagePrivate *priv; |
| 45 |
}; |
| 46 |
|
| 47 |
struct _EMailConfigEwsDelegatesPageClass { |
| 48 |
EMailConfigActivityPageClass parent_class; |
| 49 |
}; |
| 50 |
|
| 51 |
GType e_mail_config_ews_delegates_page_get_type (void) G_GNUC_CONST; |
| 52 |
void e_mail_config_ews_delegates_page_type_register (GTypeModule *type_module); |
| 53 |
EMailConfigPage * |
| 54 |
e_mail_config_ews_delegates_page_new (ESourceRegistry *registry, |
| 55 |
ESource *account_source, |
| 56 |
ESource *identity_source, |
| 57 |
ESource *collection_source); |
| 58 |
void e_mail_config_ews_delegates_page_refresh (EMailConfigEwsDelegatesPage *page); |
| 59 |
ESourceRegistry * |
| 60 |
e_mail_config_ews_delegates_page_get_registry (EMailConfigEwsDelegatesPage *page); |
| 61 |
ESource * e_mail_config_ews_delegates_page_get_account_source |
| 62 |
(EMailConfigEwsDelegatesPage *page); |
| 63 |
ESource * e_mail_config_ews_delegates_page_get_identity_source |
| 64 |
(EMailConfigEwsDelegatesPage *page); |
| 65 |
ESource * e_mail_config_ews_delegates_page_get_collection_source |
| 66 |
(EMailConfigEwsDelegatesPage *page); |
| 67 |
|
| 68 |
G_END_DECLS |
| 69 |
|
| 70 |
#endif /* E_MAIL_CONFIG_EWS_DELEGATES_PAGE_H */ |