aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/Makefile.am2
-rw-r--r--camel/camel-mime-message.c78
-rw-r--r--camel/camel-mime-message.h71
3 files changed, 151 insertions, 0 deletions
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 <Bertrand.Guiheneuf@inria.fr> .
+ *
+ * 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 <stdio.h>
+#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 <Bertrand.Guiheneuf@inria.fr> .
+ *
+ * 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 <gtk/gtk.h>
+#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 */