1 /* 2 * e-source-mdn.h 3 * 4 * This library 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 library 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 Lesser 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 library. If not, see <http://www.gnu.org/licenses/>. 15 * 16 */ 17 18 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION) 19 #error "Only <libedataserver/libedataserver.h> should be included directly." 20 #endif 21 22 #ifndef E_SOURCE_MDN_H 23 #define E_SOURCE_MDN_H 24 25 #include <libedataserver/e-source-enums.h> 26 #include <libedataserver/e-source-extension.h> 27 28 /* Standard GObject macros */ 29 #define E_TYPE_SOURCE_MDN \ 30 (e_source_mdn_get_type ()) 31 #define E_SOURCE_MDN(obj) \ 32 (G_TYPE_CHECK_INSTANCE_CAST \ 33 ((obj), E_TYPE_SOURCE_MDN, ESourceMDN)) 34 #define E_SOURCE_MDN_CLASS(cls) \ 35 (G_TYPE_CHECK_CLASS_CAST \ 36 ((cls), E_TYPE_SOURCE_MDN, ESourceMDNClass)) 37 #define E_IS_SOURCE_MDN(obj) \ 38 (G_TYPE_CHECK_INSTANCE_TYPE \ 39 ((obj), E_TYPE_SOURCE_MDN)) 40 #define E_IS_SOURCE_MDN_CLASS(cls) \ 41 (G_TYPE_CHECK_CLASS_TYPE \ 42 ((cls), E_TYPE_SOURCE_MDN)) 43 #define E_SOURCE_MDN_GET_CLASS(obj) \ 44 (G_TYPE_INSTANCE_GET_CLASS \ 45 ((obj), E_TYPE_SOURCE_MDN, ESourceMDNClass)) 46 47 /** 48 * E_SOURCE_EXTENSION_MDN: 49 * 50 * Pass this extension name to e_source_get_extension() to access 51 * #ESourceMDN. This is also used as a group name in key files. 52 * 53 * Since: 3.6 54 **/ 55 #define E_SOURCE_EXTENSION_MDN "Message Disposition Notifications" 56 57 G_BEGIN_DECLS 58 59 typedef struct _ESourceMDN ESourceMDN; 60 typedef struct _ESourceMDNClass ESourceMDNClass; 61 typedef struct _ESourceMDNPrivate ESourceMDNPrivate; 62 63 /** 64 * ESourceMDN: 65 * 66 * Contains only private data that should be read and manipulated using the 67 * functions below. 68 * 69 * Since: 3.6 70 **/ 71 struct _ESourceMDN { 72 /*< private >*/ 73 ESourceExtension parent; 74 ESourceMDNPrivate *priv; 75 }; 76 77 struct _ESourceMDNClass { 78 ESourceExtensionClass parent_class; 79 }; 80 81 GType e_source_mdn_get_type 82 (void) G_GNUC_CONST; 83 EMdnResponsePolicy 84 e_source_mdn_get_response_policy 85 (ESourceMDN *extension); 86 void e_source_mdn_set_response_policy 87 (ESourceMDN *extension, 88 EMdnResponsePolicy response_policy); 89 90 G_END_DECLS 91 92 #endif /* E_SOURCE_MDN_H */ 93