Add c++ armoring.

2002-03-01  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-vtrash-folder.h:
	* camel-vee-store.h:
	* camel-vee-folder.h:
	* camel-stream-null.h:
	* camel-stream-filter.h:
	* camel-store-summary.h:
	* camel-news-address.h:
	* camel-mime-utils.h:
	* camel-mime-parser.h:
	* camel-mime-filter-save.h:
	* camel-mime-filter-linewrap.h:
	* camel-mime-filter-index.h:
	* camel-mime-filter-html.h:
	* camel-mime-filter.h:
	* camel-mime-filter-from.h:
	* camel-mime-filter-crlf.h:
	* camel-mime-filter-chomp.h:
	* camel-mime-filter-charset.h:
	* camel-mime-filter-bestenc.h:
	* camel-mime-filter-basic.h:
	* camel-internet-address.h:
	* camel-folder-thread.h:
	* camel-folder-summary.h:
	* camel-folder-search.h:
	* camel-filter-driver.h:
	* camel-charset-map.h:
	* camel-address.h: Add c++ armoring.

	* camel-object.h: s/class/klass

svn path=/trunk/; revision=15885
This commit is contained in:
Jeffrey Stedfast
2002-03-01 21:39:17 +00:00
committed by Jeffrey Stedfast
parent ffb7357c42
commit 512b1e762c
30 changed files with 324 additions and 18 deletions

View File

@ -1,3 +1,35 @@
2002-03-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-vtrash-folder.h:
* camel-vee-store.h:
* camel-vee-folder.h:
* camel-stream-null.h:
* camel-stream-filter.h:
* camel-store-summary.h:
* camel-news-address.h:
* camel-mime-utils.h:
* camel-mime-parser.h:
* camel-mime-filter-save.h:
* camel-mime-filter-linewrap.h:
* camel-mime-filter-index.h:
* camel-mime-filter-html.h:
* camel-mime-filter.h:
* camel-mime-filter-from.h:
* camel-mime-filter-crlf.h:
* camel-mime-filter-chomp.h:
* camel-mime-filter-charset.h:
* camel-mime-filter-bestenc.h:
* camel-mime-filter-basic.h:
* camel-internet-address.h:
* camel-folder-thread.h:
* camel-folder-summary.h:
* camel-folder-search.h:
* camel-filter-driver.h:
* camel-charset-map.h:
* camel-address.h: Add c++ armoring.
* camel-object.h: s/class/klass
2002-03-01 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part-utils.c

View File

@ -21,6 +21,11 @@
#ifndef _CAMEL_ADDRESS_H
#define _CAMEL_ADDRESS_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <glib.h>
#include <camel/camel-object.h>
@ -67,4 +72,8 @@ int camel_address_copy (CamelAddress *, const CamelAddress *);
void camel_address_remove (CamelAddress *, int index);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_ADDRESS_H */

View File

@ -21,6 +21,11 @@
#ifndef _CAMEL_CHARSET_MAP_H
#define _CAMEL_CHARSET_MAP_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <iconv.h>
typedef struct _CamelCharset CamelCharset;
@ -39,4 +44,8 @@ const char *camel_charset_best(const char *in, int len);
const char *camel_charset_iso_to_windows (const char *isocharset);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_CHARSET_MAP_H */

View File

@ -22,6 +22,11 @@
#ifndef _CAMEL_FILTER_DRIVER_H
#define _CAMEL_FILTER_DRIVER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <glib.h>
#include <camel/camel-object.h>
#include <camel/camel-session.h>
@ -107,4 +112,8 @@ int camel_filter_driver_rule_count (CamelFilterDriver *d);
struct filter_option *camel_filter_driver_rule_get (CamelFilterDriver *d, int n);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_FILTER_DRIVER_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_FOLDER_SEARCH_H
#define _CAMEL_FOLDER_SEARCH_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <e-util/e-sexp.h>
#include <libibex/ibex.h>
#include <camel/camel-folder.h>
@ -117,4 +123,8 @@ gboolean camel_folder_search_match_expression(CamelFolderSearch *search, const c
const CamelMessageInfo *info, CamelException *ex);
void camel_folder_search_free_result(CamelFolderSearch *search, GPtrArray *);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_FOLDER_SEARCH_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_FOLDER_SUMMARY_H
#define _CAMEL_FOLDER_SUMMARY_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <stdio.h>
#include <time.h>
#include <camel/camel-mime-parser.h>
@ -327,4 +333,8 @@ void camel_message_info_set_string(CamelMessageInfo *mi, int type, char *str);
#define camel_message_info_set_mlist(x, s) (g_free(((CamelMessageInfo *)(x))->mlist),((CamelMessageInfo *)(x))->mlist = (s))
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_FOLDER_SUMMARY_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_FOLDER_THREAD_H
#define _CAMEL_FOLDER_THREAD_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-folder-summary.h>
#include <camel/camel-folder.h>
@ -54,4 +60,8 @@ void camel_folder_thread_messages_destroy(CamelFolderThread *threads);
/* debugging function only */
int camel_folder_threaded_messages_dump(CamelFolderThreadNode *c);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !_CAMEL_FOLDER_THREAD_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_INTERNET_ADDRESS_H
#define _CAMEL_INTERNET_ADDRESS_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-address.h>
#define CAMEL_INTERNET_ADDRESS(obj) CAMEL_CHECK_CAST (obj, camel_internet_address_get_type (), CamelInternetAddress)
@ -52,4 +58,8 @@ int camel_internet_address_find_address(CamelInternetAddress *, const char *,
char * camel_internet_address_encode_address(int *len, const char *name, const char *addr);
char * camel_internet_address_format_address(const char *real, const char *addr);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_INTERNET_ADDRESS_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_MIME_FILTER_BASIC_H
#define _CAMEL_MIME_FILTER_BASIC_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_BASIC(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_basic_get_type (), CamelMimeFilterBasic)
@ -58,4 +64,8 @@ guint camel_mime_filter_basic_get_type (void);
CamelMimeFilterBasic *camel_mime_filter_basic_new (void);
CamelMimeFilterBasic *camel_mime_filter_basic_new_type (CamelMimeFilterBasicType type);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_BASIC_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_MIME_FILTER_BESTENC_H
#define _CAMEL_MIME_FILTER_BESTENC_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#include <camel/camel-mime-part.h>
#include <camel/camel-charset-map.h>
@ -85,4 +91,8 @@ CamelMimePartEncodingType camel_mime_filter_bestenc_get_best_encoding(CamelMimeF
const char * camel_mime_filter_bestenc_get_best_charset(CamelMimeFilterBestenc *f);
void camel_mime_filter_bestenc_set_flags(CamelMimeFilterBestenc *f, unsigned int flags);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_BESTENC_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -21,6 +22,11 @@
#ifndef _CAMEL_MIME_FILTER_CHARSET_H
#define _CAMEL_MIME_FILTER_CHARSET_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#include <iconv.h>
@ -49,4 +55,8 @@ CamelMimeFilterCharset *camel_mime_filter_charset_new (void);
CamelMimeFilterCharset *camel_mime_filter_charset_new_convert (const char *from_charset, const char *to_charset);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_CHARSET_H */

View File

@ -19,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_FILTER_CHOMP_H
#define _CAMEL_MIME_FILTER_CHOMP_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_CHOMP_TYPE (camel_mime_filter_chomp_get_type ())
@ -44,4 +50,8 @@ CamelType camel_mime_filter_chomp_get_type (void);
CamelMimeFilter *camel_mime_filter_chomp_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_CHOMP_H */

View File

@ -20,9 +20,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_FILTER_CRLF_H
#define _CAMEL_MIME_FILTER_CRLF_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_CRLF_TYPE (camel_mime_filter_crlf_get_type ())
@ -60,4 +66,8 @@ CamelType camel_mime_filter_crlf_get_type (void);
CamelMimeFilter *camel_mime_filter_crlf_new (CamelMimeFilterCRLFDirection direction, CamelMimeFilterCRLFMode mode);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_CRLF_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_FILTER_FROM_H
#define _CAMEL_MIME_FILTER_FROM_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_FROM(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_from_get_type (), CamelMimeFilterFrom)
@ -45,4 +52,8 @@ struct _CamelMimeFilterFromClass {
guint camel_mime_filter_from_get_type (void);
CamelMimeFilterFrom *camel_mime_filter_from_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_FROM_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2001 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_FILTER_HTML_H
#define _CAMEL_MIME_FILTER_HTML_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_HTML(obj) CAMEL_CHECK_CAST (obj, camel_mime_filter_html_get_type (), CamelMimeFilterHTML)
@ -43,4 +50,8 @@ struct _CamelMimeFilterHTMLClass {
guint camel_mime_filter_html_get_type (void);
CamelMimeFilterHTML *camel_mime_filter_html_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_HTML_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_FILTER_INDEX_H
#define _CAMEL_MIME_FILTER_INDEX_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#include <libibex/ibex.h>
@ -52,4 +59,8 @@ CamelMimeFilterIndex *camel_mime_filter_index_new_ibex (ibex *);
void camel_mime_filter_index_set_name (CamelMimeFilterIndex *, char *);
void camel_mime_filter_index_set_ibex (CamelMimeFilterIndex *mf, ibex *index);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_INDEX_H */

View File

@ -22,6 +22,11 @@
#ifndef _CAMEL_MIME_FILTER_LINEWRAP_H
#define _CAMEL_MIME_FILTER_LINEWRAP_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#define CAMEL_MIME_FILTER_LINEWRAP_TYPE (camel_mime_filter_linewrap_get_type ())
@ -48,4 +53,8 @@ CamelType camel_mime_filter_linewrap_get_type (void);
CamelMimeFilter *camel_mime_filter_linewrap_new (guint preferred_len, guint max_len, char indent_char);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_LINEWRAP_H */

View File

@ -24,6 +24,11 @@
#ifndef __CAMEL_MIME_FILTER_SAVE_H__
#define __CAMEL_MIME_FILTER_SAVE_H__
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-mime-filter.h>
#include <camel/camel-seekable-stream.h>
@ -49,4 +54,8 @@ CamelType camel_mime_filter_save_get_type (void);
CamelMimeFilter *camel_mime_filter_save_new (void);
CamelMimeFilter *camel_mime_filter_save_new_with_stream (CamelStream *stream);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __CAMEL_MIME_FILTER_SAVE_H__ */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -23,6 +24,11 @@
#ifndef _CAMEL_MIME_FILTER_H
#define _CAMEL_MIME_FILTER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <sys/types.h>
#include <camel/camel-object.h>
@ -81,4 +87,8 @@ void camel_mime_filter_backup(CamelMimeFilter *f, const char *data, size_t lengt
/* ensure this much size available for filter output */
void camel_mime_filter_set_size(CamelMimeFilter *f, size_t size, int keep);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_FILTER_H */

View File

@ -129,7 +129,7 @@ void camel_mime_message_set_best_encoding (CamelMimeMess
CamelBestencEncoding enctype);
void camel_mime_message_encode_8bit_parts (CamelMimeMessage *mime_message);
CamelMimePart *camel_mime_part_get_part_by_content_id (CamelMimeMessage *message, const char *content_id);
CamelMimePart *camel_mime_message_get_part_by_content_id (CamelMimeMessage *message, const char *content_id);
#ifdef __cplusplus
}

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_PARSER_H
#define _CAMEL_MIME_PARSER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-object.h>
#include <camel/camel-mime-utils.h>
@ -133,4 +140,8 @@ off_t camel_mime_parser_seek(CamelMimeParser *, off_t, int);
off_t camel_mime_parser_tell_start_headers(CamelMimeParser *);
off_t camel_mime_parser_tell_start_from(CamelMimeParser *);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_PARSER_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -19,9 +20,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_MIME_UTILS_H
#define _CAMEL_MIME_UTILS_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <time.h>
#include <glib.h>
@ -215,4 +222,8 @@ size_t quoted_encode_close(unsigned char *in, size_t len, unsigned char *out, in
char *base64_encode_simple (const char *data, size_t len);
size_t base64_decode_simple (char *data, size_t len);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_MIME_UTILS_H */

View File

@ -1,7 +1,8 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
* Authors:
* Authors: Michael Zucchi <NotZed@ximian.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_NEWS_ADDRESS_H
#define _CAMEL_NEWS_ADDRESS_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-address.h>
#define CAMEL_NEWS_ADDRESS(obj) CAMEL_CHECK_CAST (obj, camel_news_address_get_type (), CamelNewsAddress)
@ -42,4 +49,8 @@ struct _CamelNewsAddressClass {
guint camel_news_address_get_type (void);
CamelNewsAddress *camel_news_address_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_NEWS_ADDRESS_H */

View File

@ -38,14 +38,14 @@ extern "C" {
#ifdef G_DISABLE_CHECKS
#define CAMEL_CHECK_CAST( obj, ctype, ptype ) ((ptype *) obj)
#define CAMEL_CHECK_CLASS_CAST( class, ctype, ptype ) ((ptype *) class)
#define CAMEL_CHECK_CLASS_CAST( klass, ctype, ptype ) ((ptype *) klass)
#define CAMEL_CHECK_TYPE( obj, ctype ) (TRUE)
#define CAMEL_CHECK_CLASS_TYPE( class, ctype ) (TRUE)
#define CAMEL_CHECK_CLASS_TYPE( klass, ctype ) (TRUE)
#else
#define CAMEL_CHECK_CAST( obj, ctype, ptype ) ((ptype *) camel_object_check_cast( (CamelObject *)(obj), (CamelType)(ctype) ))
#define CAMEL_CHECK_CLASS_CAST( class, ctype, ptype ) ((ptype *) camel_object_class_check_cast( (CamelObjectClass *)(class), (CamelType)(ctype) ))
#define CAMEL_CHECK_CLASS_CAST( klass, ctype, ptype ) ((ptype *) camel_object_class_check_cast( (CamelObjectClass *)(klass), (CamelType)(ctype) ))
#define CAMEL_CHECK_TYPE( obj, ctype ) (camel_object_is_of_type( (CamelObject *)(obj), (CamelType)(ctype) ))
#define CAMEL_CHECK_CLASS_TYPE( class, ctype ) (camel_object_class_is_of_type( (CamelObjectClass *)(class), (CamelType)(ctype) ))
#define CAMEL_CHECK_CLASS_TYPE( klass, ctype ) (camel_object_class_is_of_type( (CamelObjectClass *)(klass), (CamelType)(ctype) ))
#endif
#define CAMEL_INVALID_TYPE ((CamelType)0)
@ -124,26 +124,25 @@ void camel_object_unref (CamelObject *obj);
#define camel_object_unref(o) (printf("%s (%s:%d):unref (%p)\n", __FUNCTION__, __FILE__, __LINE__, o), camel_object_unref (o))
#endif
CamelObject *camel_object_check_cast (CamelObject * obj,
CamelObject *camel_object_check_cast (CamelObject *obj,
CamelType ctype);
CamelObjectClass *camel_object_class_check_cast (CamelObjectClass *
class,
CamelObjectClass *camel_object_class_check_cast (CamelObjectClass *klass,
CamelType ctype);
gboolean camel_object_is_of_type (CamelObject * obj, CamelType ctype);
gboolean camel_object_class_is_of_type (CamelObjectClass * class,
gboolean camel_object_is_of_type (CamelObject *obj, CamelType ctype);
gboolean camel_object_class_is_of_type (CamelObjectClass *klass,
CamelType ctype);
gchar *camel_object_describe (CamelObject * obj);
void camel_object_class_declare_event (CamelObjectClass * class,
const gchar * name,
gchar *camel_object_describe (CamelObject *obj);
void camel_object_class_declare_event (CamelObjectClass *klass,
const char *name,
CamelObjectEventPrepFunc prep);
void camel_object_hook_event (CamelObject * obj, const gchar * name,
void camel_object_hook_event (CamelObject *obj, const char * name,
CamelObjectEventHookFunc hook,
gpointer user_data);
void camel_object_unhook_event (CamelObject * obj, const gchar * name,
void camel_object_unhook_event (CamelObject *obj, const char * name,
CamelObjectEventHookFunc hook,
gpointer user_data);
void camel_object_trigger_event (CamelObject * obj,
const gchar * name,
void camel_object_trigger_event (CamelObject *obj,
const char *name,
gpointer event_data);
#ifdef __cplusplus

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_STORE_SUMMARY_H
#define _CAMEL_STORE_SUMMARY_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <stdio.h>
#include <time.h>
#include <camel/camel-mime-parser.h>
@ -159,4 +166,8 @@ void camel_folder_info_set_string(CamelStoreSummary *, CamelFolderInfo *, int ty
#define camel_folder_info_uri(s, i) (camel_folder_info_string((CamelStoreSummary *)s, (const CamelFolderInfo *)i, CAMEL_STORE_SUMMARY_URI))
#define camel_folder_info_name(s, i) (camel_folder_info_string((CamelStoreSummary *)s, (const CamelFolderInfo *)i, CAMEL_STORE_SUMMARY_NAME))
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_STORE_SUMMARY_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_STREAM_FILTER_H
#define _CAMEL_STREAM_FILTER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-stream.h>
#include <camel/camel-mime-filter.h>
@ -49,4 +56,8 @@ CamelStreamFilter *camel_stream_filter_new_with_stream (CamelStream *stream
int camel_stream_filter_add (CamelStreamFilter *filter, CamelMimeFilter *);
void camel_stream_filter_remove (CamelStreamFilter *filter, int id);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_STREAM_FILTER_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_STREAM_NULL_H
#define _CAMEL_STREAM_NULL_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-stream.h>
#define CAMEL_STREAM_NULL(obj) CAMEL_CHECK_CAST (obj, camel_stream_null_get_type (), CamelStreamNull)
@ -43,4 +50,8 @@ guint camel_stream_null_get_type (void);
CamelStream *camel_stream_null_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_STREAM_NULL_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_VEE_FOLDER_H
#define _CAMEL_VEE_FOLDER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <glib.h>
#include <camel/camel-folder.h>
@ -68,4 +75,8 @@ void camel_vee_folder_set_expression (CamelVeeFolder *vf, const char *expr)
void camel_vee_folder_hash_folder (CamelFolder *folder, char buffer[8]);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_VEE_FOLDER_H */

View File

@ -1,3 +1,4 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000 Ximian Inc.
*
@ -18,9 +19,15 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _CAMEL_VEE_STORE_H
#define _CAMEL_VEE_STORE_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <glib.h>
#include <camel/camel-store.h>
@ -47,4 +54,8 @@ struct _CamelVeeStoreClass {
guint camel_vee_store_get_type (void);
CamelVeeStore *camel_vee_store_new (void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_VEE_STORE_H */

View File

@ -24,6 +24,11 @@
#ifndef _CAMEL_VTRASH_FOLDER_H
#define _CAMEL_VTRASH_FOLDER_H
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
#include <camel/camel-folder.h>
#include <camel/camel-vee-folder.h>
@ -50,4 +55,8 @@ CamelType camel_vtrash_folder_get_type (void);
CamelFolder *camel_vtrash_folder_new (CamelStore *parent_store, const char *name);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* ! _CAMEL_VTRASH_FOLDER_H */