Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / camel-multipart-encrypted.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  *  Authors: Jeffrey Stedfast <fejj@ximian.com>
4  *
5  *  Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22
23 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
24 #error "Only <camel/camel.h> can be included directly."
25 #endif
26
27 #ifndef CAMEL_MULTIPART_ENCRYPTED_H
28 #define CAMEL_MULTIPART_ENCRYPTED_H
29
30 #include <camel/camel-multipart.h>
31
32 /* Standard GObject macros */
33 #define CAMEL_TYPE_MULTIPART_ENCRYPTED \
34         (camel_multipart_encrypted_get_type ())
35 #define CAMEL_MULTIPART_ENCRYPTED(obj) \
36         (G_TYPE_CHECK_INSTANCE_CAST \
37         ((obj), CAMEL_TYPE_MULTIPART_ENCRYPTED, CamelMultipartEncrypted))
38 #define CAMEL_MULTIPART_ENCRYPTED_CLASS(cls) \
39         (G_TYPE_CHECK_CLASS_CAST \
40         ((cls), CAMEL_TYPE_MULTIPART_ENCRYPTED, CamelMultipartEncryptedClass))
41 #define CAMEL_IS_MULTIPART_ENCRYPTED(obj) \
42         (G_TYPE_CHECK_INSTANCE_TYPE \
43         ((obj), CAMEL_TYPE_MULTIPART_ENCRYPTED))
44 #define CAMEL_IS_MULTIPART_ENCRYPTED_CLASS(cls) \
45         (G_TYPE_CHECK_CLASS_TYPE \
46         ((cls), CAMEL_TYPE_MULTIPART_ENCRYPTED))
47 #define CAMEL_MULTIPART_ENCRYPTED_GET_CLASS(obj) \
48         (G_TYPE_INSTANCE_GET_CLASS \
49         ((obj), CAMEL_TYPE_MULTIPART_ENCRYPTED, CamelMultipartEncryptedClass))
50
51 G_BEGIN_DECLS
52
53 typedef struct _CamelMultipartEncrypted CamelMultipartEncrypted;
54 typedef struct _CamelMultipartEncryptedClass CamelMultipartEncryptedClass;
55
56 /* 'handy' enums for getting the internal parts of the multipart */
57 enum {
58         CAMEL_MULTIPART_ENCRYPTED_VERSION,
59         CAMEL_MULTIPART_ENCRYPTED_CONTENT
60 };
61
62 struct _CamelMultipartEncrypted {
63         CamelMultipart parent;
64
65         CamelMimePart *version;
66         CamelMimePart *content;
67         CamelMimePart *decrypted;
68
69         gchar *protocol;
70 };
71
72 struct _CamelMultipartEncryptedClass {
73         CamelMultipartClass parent_class;
74
75 };
76
77 GType camel_multipart_encrypted_get_type (void);
78
79 CamelMultipartEncrypted *camel_multipart_encrypted_new (void);
80
81 G_END_DECLS
82
83 #endif /* CAMEL_MULTIPART_ENCRYPTED_H */