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