From 48217413c6a16232364fcfd4ba8276f51bbb7b79 Mon Sep 17 00:00:00 2001 From: Bertrand Guiheneuf Date: Wed, 12 May 1999 21:03:15 +0000 Subject: Mime message ... svn path=/trunk/; revision=922 --- camel/Makefile.am | 2 ++ camel/camel-mime-message.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++ camel/camel-mime-message.h | 71 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 camel/camel-mime-message.c create mode 100644 camel/camel-mime-message.h diff --git a/camel/Makefile.am b/camel/Makefile.am index 67278258cb..5dec70bfca 100644 --- a/camel/Makefile.am +++ b/camel/Makefile.am @@ -15,6 +15,7 @@ libcamel_la_SOURCES = \ camel-log.c \ camel-data-wrapper.c \ camel-folder.c \ + camel-mime-message.c \ camel-mime-part.c \ camel-provider.c \ camel-service.c \ @@ -29,6 +30,7 @@ libcamelinclude_HEADERS = \ camel-log.h \ camel-data-wrapper.h \ camel-folder.h \ + camel-mime-message.h \ camel-mime-part.h \ camel-provider.h \ camel-service.h \ diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c new file mode 100644 index 0000000000..8e00bc8211 --- /dev/null +++ b/camel/camel-mime-message.c @@ -0,0 +1,78 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* camelMimeMessage.c : Abstract class for a mime_message */ + + +/* + * + * Copyright (C) 1999 Bertrand Guiheneuf . + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A MESSAGEICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + +#include "camel-mime-message.h" +#include +#include "gmime-content-field.h" + + + +static CamelMimePartClass *parent_class=NULL; + +/* Returns the class for a CamelMimeMessage */ +#define CMP_CLASS(so) CAMEL_MIME_MESSAGE_CLASS (GTK_OBJECT(so)->klass) + + + +static void +camel_mime_message_class_init (CamelMimeMessageClass *camel_mime_message_class) +{ + parent_class = gtk_type_class (camel_mime_part_get_type ()); + + /* virtual method definition */ + + /* virtual method overload */ +} + + + + + + + +GtkType +camel_mime_message_get_type (void) +{ + static GtkType camel_mime_message_type = 0; + + if (!camel_mime_message_type) { + GtkTypeInfo camel_mime_message_info = + { + "CamelMimeMessage", + sizeof (CamelMimeMessage), + sizeof (CamelMimeMessageClass), + (GtkClassInitFunc) camel_mime_message_class_init, + (GtkObjectInitFunc) NULL, + /* reserved_1 */ NULL, + /* reserved_2 */ NULL, + (GtkClassInitFunc) NULL, + }; + + camel_mime_message_type = gtk_type_unique (camel_mime_part_get_type (), &camel_mime_message_info); + } + + return camel_mime_message_type; +} + + diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h new file mode 100644 index 0000000000..4773e04ed0 --- /dev/null +++ b/camel/camel-mime-message.h @@ -0,0 +1,71 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* camelMimeMessage.h : class for a mime message */ + +/* + * + * Copyright (C) 1999 Bertrand Guiheneuf . + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A MESSAGEICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + + +#ifndef CAMEL_MIME_MESSAGE_H +#define CAMEL_MIME_MESSAGE_H 1 + + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus }*/ + +#include +#include "camel-mime-part.h" + + + +#define CAMEL_MIME_MESSAGE_TYPE (camel_mime_message_get_type ()) +#define CAMEL_MIME_MESSAGE(obj) (GTK_CHECK_CAST((obj), CAMEL_MIME_MESSAGE_TYPE, CamelMimeMessage)) +#define CAMEL_MIME_MESSAGE_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_MIME_MESSAGE_TYPE, CamelMimeMessageClass)) +#define IS_CAMEL_MIME_MESSAGE(o) (GTK_CHECK_TYPE((o), CAMEL_MIME_MESSAGE_TYPE)) + + + +typedef struct +{ + +} CamelMimeMessage; + + + +typedef struct { + CamelDataWrapperClass parent_class; + + /* Virtual methods */ +} CamelMimeMessageClass; + + + +/* Standard Gtk function */ +GtkType camel_mime_message_get_type (void); + + +/* public methods */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* CAMEL_MIME_MESSAGE_H */ -- cgit v1.2.3