| 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_OAL_COMBO_BOX_H |
| 7 |
#define E_MAIL_CONFIG_EWS_OAL_COMBO_BOX_H |
| 8 |
|
| 9 |
#include <gtk/gtk.h> |
| 10 |
#include <mail/e-mail-config-service-backend.h> |
| 11 |
|
| 12 |
/* Standard GObject macros */ |
| 13 |
#define E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX \ |
| 14 |
(e_mail_config_ews_oal_combo_box_get_type ()) |
| 15 |
#define E_MAIL_CONFIG_EWS_OAL_COMBO_BOX(obj) \ |
| 16 |
(G_TYPE_CHECK_INSTANCE_CAST \ |
| 17 |
((obj), E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX, EMailConfigEwsOalComboBox)) |
| 18 |
#define E_MAIL_CONFIG_EWS_OAL_COMBO_BOX_CLASS(cls) \ |
| 19 |
(G_TYPE_CHECK_CLASS_CAST \ |
| 20 |
((cls), E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX, EMailConfigEwsOalComboBoxClass)) |
| 21 |
#define E_IS_MAIL_CONFIG_EWS_OAL_COMBO_BOX(obj) \ |
| 22 |
(G_TYPE_CHECK_INSTANCE_TYPE \ |
| 23 |
((obj), E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX)) |
| 24 |
#define E_IS_MAIL_CONFIG_EWS_OAL_COMBO_BOX_CLASS(cls) \ |
| 25 |
(G_TYPE_CHECK_CLASS_TYPE \ |
| 26 |
((cls), E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX)) |
| 27 |
#define E_MAIL_CONFIG_EWS_OAL_COMBO_BOX_GET_CLASS(obj) \ |
| 28 |
(G_TYPE_INSTANCE_GET_CLASS \ |
| 29 |
((obj), E_TYPE_MAIL_CONFIG_EWS_OAL_COMBO_BOX, EMailConfigEwsOalComboBoxClass)) |
| 30 |
|
| 31 |
G_BEGIN_DECLS |
| 32 |
|
| 33 |
typedef struct _EMailConfigEwsOalComboBox EMailConfigEwsOalComboBox; |
| 34 |
typedef struct _EMailConfigEwsOalComboBoxClass EMailConfigEwsOalComboBoxClass; |
| 35 |
typedef struct _EMailConfigEwsOalComboBoxPrivate EMailConfigEwsOalComboBoxPrivate; |
| 36 |
|
| 37 |
struct _EMailConfigEwsOalComboBox { |
| 38 |
GtkComboBoxText parent; |
| 39 |
EMailConfigEwsOalComboBoxPrivate *priv; |
| 40 |
}; |
| 41 |
|
| 42 |
struct _EMailConfigEwsOalComboBoxClass { |
| 43 |
GtkComboBoxTextClass parent_class; |
| 44 |
}; |
| 45 |
|
| 46 |
GType e_mail_config_ews_oal_combo_box_get_type |
| 47 |
(void) G_GNUC_CONST; |
| 48 |
void e_mail_config_ews_oal_combo_box_type_register |
| 49 |
(GTypeModule *type_module); |
| 50 |
GtkWidget * e_mail_config_ews_oal_combo_box_new |
| 51 |
(EMailConfigServiceBackend *backend); |
| 52 |
EMailConfigServiceBackend * |
| 53 |
e_mail_config_ews_oal_combo_box_get_backend |
| 54 |
(EMailConfigEwsOalComboBox *combo_box); |
| 55 |
void e_mail_config_ews_oal_combo_box_update |
| 56 |
(EMailConfigEwsOalComboBox *combo_box, |
| 57 |
GCancellable *cancellable, |
| 58 |
GAsyncReadyCallback callback, |
| 59 |
gpointer user_data); |
| 60 |
gboolean e_mail_config_ews_oal_combo_box_update_finish |
| 61 |
(EMailConfigEwsOalComboBox *combo_box, |
| 62 |
GAsyncResult *result, |
| 63 |
GError **error); |
| 64 |
|
| 65 |
G_END_DECLS |
| 66 |
|
| 67 |
#endif /* E_MAIL_CONFIG_EWS_OAL_COMBO_BOX_H */ |
| 68 |
|