1 /* 2 * e-mail-config-activity-page.h 3 * 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. 7 * 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 11 * for more details. 12 * 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/>. 15 * 16 */ 17 18 /* This is a convenient base class for EMailConfigPages that might need 19 * to run an asynchronous method and display an error message. It adds 20 * activity and alert bars to the bottom of the page, it implements the 21 * EAlertSink interface, and can create new EActivity instances. */ 22 23 #ifndef E_MAIL_CONFIG_ACTIVITY_PAGE_H 24 #define E_MAIL_CONFIG_ACTIVITY_PAGE_H 25 26 #include <gtk/gtk.h> 27 #include <e-util/e-util.h> 28 29 /* Standard GObject macros */ 30 #define E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE \ 31 (e_mail_config_activity_page_get_type ()) 32 #define E_MAIL_CONFIG_ACTIVITY_PAGE(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST \ 34 ((obj), E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE, EMailConfigActivityPage)) 35 #define E_MAIL_CONFIG_ACTIVITY_PAGE_CLASS(cls) \ 36 (G_TYPE_CHECK_CLASS_CAST \ 37 ((cls), E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE, EMailConfigActivityPageClass)) 38 #define E_IS_MAIL_CONFIG_ACTIVITY_PAGE(obj) \ 39 (G_TYPE_CHECK_INSTANCE_TYPE \ 40 ((obj), E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE)) 41 #define E_IS_MAIL_CONFIG_ACTIVITY_PAGE_CLASS(cls) \ 42 (G_TYPE_CHECK_CLASS_TYPE \ 43 ((cls), E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE)) 44 #define E_MAIL_CONFIG_ACTIVITY_PAGE_GET_CLASS(obj) \ 45 (G_TYPE_INSTANCE_GET_CLASS \ 46 ((obj), E_TYPE_MAIL_CONFIG_ACTIVITY_PAGE, EMailConfigActivityPageClass)) 47 48 G_BEGIN_DECLS 49 50 typedef struct _EMailConfigActivityPage EMailConfigActivityPage; 51 typedef struct _EMailConfigActivityPageClass EMailConfigActivityPageClass; 52 typedef struct _EMailConfigActivityPagePrivate EMailConfigActivityPagePrivate; 53 54 struct _EMailConfigActivityPage { 55 GtkScrolledWindow parent; 56 EMailConfigActivityPagePrivate *priv; 57 }; 58 59 struct _EMailConfigActivityPageClass { 60 GtkScrolledWindowClass parent_class; 61 }; 62 63 GType e_mail_config_activity_page_get_type 64 (void) G_GNUC_CONST; 65 GtkWidget * e_mail_config_activity_page_get_internal_box 66 (EMailConfigActivityPage *page); 67 EActivity * e_mail_config_activity_page_new_activity 68 (EMailConfigActivityPage *page); 69 70 G_END_DECLS 71 72 #endif /* E_MAIL_CONFIG_ACTIVITY_PAGE_H */ 73 74