1 /* 2 * e-cal-source-config.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 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION) 19 #error "Only <e-util/e-util.h> should be included directly." 20 #endif 21 22 #ifndef E_CAL_SOURCE_CONFIG_H 23 #define E_CAL_SOURCE_CONFIG_H 24 25 #include <libecal/libecal.h> 26 #include <e-util/e-source-config.h> 27 28 /* Standard GObject macros */ 29 #define E_TYPE_CAL_SOURCE_CONFIG \ 30 (e_cal_source_config_get_type ()) 31 #define E_CAL_SOURCE_CONFIG(obj) \ 32 (G_TYPE_CHECK_INSTANCE_CAST \ 33 ((obj), E_TYPE_CAL_SOURCE_CONFIG, ECalSourceConfig)) 34 #define E_CAL_SOURCE_CONFIG_CLASS(cls) \ 35 (G_TYPE_CHECK_CLASS_CAST \ 36 ((cls), E_TYPE_CAL_SOURCE_CONFIG, ECalSourceConfigClass)) 37 #define E_IS_CAL_SOURCE_CONFIG(obj) \ 38 (G_TYPE_CHECK_INSTANCE_TYPE \ 39 ((obj), E_TYPE_CAL_SOURCE_CONFIG)) 40 #define E_IS_CAL_SOURCE_CONFIG_CLASS(cls) \ 41 (G_TYPE_CHECK_CLASS_TYPE \ 42 ((cls), E_TYPE_CAL_SOURCE_CONFIG)) 43 #define E_CAL_SOURCE_CONFIG_GET_CLASS(obj) \ 44 (G_TYPE_INSTANCE_GET_CLASS \ 45 ((obj), E_TYPE_CAL_SOURCE_CONFIG, ECalSourceConfigClass)) 46 47 G_BEGIN_DECLS 48 49 typedef struct _ECalSourceConfig ECalSourceConfig; 50 typedef struct _ECalSourceConfigClass ECalSourceConfigClass; 51 typedef struct _ECalSourceConfigPrivate ECalSourceConfigPrivate; 52 53 struct _ECalSourceConfig { 54 ESourceConfig parent; 55 ECalSourceConfigPrivate *priv; 56 }; 57 58 struct _ECalSourceConfigClass { 59 ESourceConfigClass parent_class; 60 }; 61 62 GType e_cal_source_config_get_type (void) G_GNUC_CONST; 63 GtkWidget * e_cal_source_config_new (ESourceRegistry *registry, 64 ESource *original_source, 65 ECalClientSourceType source_type); 66 ECalClientSourceType 67 e_cal_source_config_get_source_type 68 (ECalSourceConfig *config); 69 void e_cal_source_config_add_offline_toggle 70 (ECalSourceConfig *config, 71 ESource *scratch_source); 72 73 G_END_DECLS 74 75 #endif /* E_CAL_SOURCE_CONFIG_H */ 76