Bug 792781 - 'Go to Folder' incorrectly unrefs CamelFolder twice
[evolution.git] / src / libemail-engine / camel-null-store.h
blobf3826c42221d0b38024b127305c6fcca245c2762
1 /*
2 * camel-null-store.h
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.
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.
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/>.
18 /* Evolution kinda sorta supports multiple identities by allowing users
19 * to set up so-called "transport-only" accounts by choosing "None" for
20 * the account type. This bizarre hack keeps that bizzare hack working
21 * until we can support multiple identities properly. */
23 #if !defined (__LIBEMAIL_ENGINE_H_INSIDE__) && !defined (LIBEMAIL_ENGINE_COMPILATION)
24 #error "Only <libemail-engine/libemail-engine.h> should be included directly."
25 #endif
27 #ifndef CAMEL_NULL_STORE_H
28 #define CAMEL_NULL_STORE_H
30 #include <camel/camel.h>
32 /* Standard GObject macros */
33 #define CAMEL_TYPE_NULL_STORE \
34 (camel_null_store_get_type ())
35 #define CAMEL_NULL_STORE(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), CAMEL_TYPE_NULL_STORE, CamelNullStore))
38 #define CAMEL_NULL_STORE_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), CAMEL_TYPE_NULL_STORE, CamelNullStoreClass))
41 #define CAMEL_IS_NULL_STORE(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), CAMEL_TYPE_NULL_STORE))
44 #define CAMEL_IS_NULL_STORE_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), CAMEL_TYPE_NULL_STORE))
47 #define CAMEL_NULL_STORE_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_CLASS \
49 ((obj), CAMEL_TYPE_NULL_STORE, CamelNullStoreClass))
51 #define CAMEL_TYPE_NULL_TRANSPORT \
52 (camel_null_transport_get_type ())
53 #define CAMEL_NULL_TRANSPORT(obj) \
54 (G_TYPE_CHECK_INSTANCE_CAST \
55 ((obj), CAMEL_TYPE_NULL_STORE, CamelNullTransport))
56 #define CAMEL_NULL_TRANSPORT_CLASS(cls) \
57 (G_TYPE_CHECK_CLASS_CAST \
58 ((cls), CAMEL_TYPE_NULL_TRANSPORT, CamelNullTransportClass))
59 #define CAMEL_IS_NULL_TRANSPORT(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE \
61 ((obj), CAMEL_TYPE_NULL_TRANSPORT))
62 #define CAMEL_IS_NULL_TRANSPORT_CLASS(cls) \
63 (G_TYPE_CHECK_CLASS_TYPE \
64 ((cls), CAMEL_TYPE_NULL_TRANSPORT))
65 #define CAMEL_NULL_TRANSPORT_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS \
67 ((obj), CAMEL_TYPE_NULL_TRANSPORT, CamelNullTransportClass))
69 G_BEGIN_DECLS
71 typedef struct _CamelNullStore CamelNullStore;
72 typedef struct _CamelNullStoreClass CamelNullStoreClass;
74 struct _CamelNullStore {
75 CamelStore parent;
78 struct _CamelNullStoreClass {
79 CamelStoreClass parent_class;
82 GType camel_null_store_get_type (void);
84 /* ------------------------------------------------------------------------- */
86 typedef struct _CamelNullTransport CamelNullTransport;
87 typedef struct _CamelNullTransportClass CamelNullTransportClass;
89 struct _CamelNullTransport {
90 CamelTransport parent;
93 struct _CamelNullTransportClass {
94 CamelTransportClass parent_class;
97 GType camel_null_transport_get_type (void);
99 /* ------------------------------------------------------------------------- */
101 void camel_null_store_register_provider (void);
103 #endif /* CAMEL_NULL_STORE_H */