aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-26 04:42:59 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-26 04:42:59 +0800
commita76dccf18b6d8b854280031dbcc9187cd5744958 (patch)
tree9db6ab52836f5226e5b3846c1680c828d5f00800 /camel/camel-mime-part.h
parentb42d3101ab747c315952182d78667a58899a1a35 (diff)
downloadgsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.gz
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.bz2
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.lz
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.xz
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.zst
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.zip
now descend from CamelMedium.
1999-08-25 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c: now descend from CamelMedium. * tests/test1.c (main): all headers must be strdup'ed (main): unref created objects svn path=/trunk/; revision=1143
Diffstat (limited to 'camel/camel-mime-part.h')
-rw-r--r--camel/camel-mime-part.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/camel/camel-mime-part.h b/camel/camel-mime-part.h
index 3d74350645..10c8ca58a4 100644
--- a/camel/camel-mime-part.h
+++ b/camel/camel-mime-part.h
@@ -32,7 +32,7 @@ extern "C" {
#endif /* __cplusplus }*/
#include <gtk/gtk.h>
-#include "camel-media.h"
+#include "camel-medium.h"
#include "camel-stream.h"
@@ -46,9 +46,8 @@ extern "C" {
would regret it one day */
typedef struct
{
- CamelDataWrapper parent_object;
+ CamelMedium parent_object;
- GHashTable *headers;
gchar *description;
GMimeContentField *disposition;
gchar *content_id;
@@ -59,19 +58,15 @@ typedef struct
GList *header_lines;
GMimeContentField *content_type;
- CamelDataWrapper *content; /* part real content */
} CamelMimePart;
typedef struct {
- CamelDataWrapperClass parent_class;
+ CamelMediumClass parent_class;
/* Virtual methods */
- void (*add_header) (CamelMimePart *mime_part, gchar *header_name, gchar *header_value);
- void (*remove_header) (CamelMimePart *mime_part, const gchar *header_name);
- const gchar * (*get_header) (CamelMimePart *mime_part, const gchar *header_name);
void (*set_description) (CamelMimePart *mime_part, const gchar *description);
const gchar * (*get_description) (CamelMimePart *mime_part);
void (*set_disposition) (CamelMimePart *mime_part, const gchar *disposition);
@@ -88,13 +83,12 @@ typedef struct {
const GList * (*get_content_languages) (CamelMimePart *mime_part);
void (*set_header_lines) (CamelMimePart *mime_part, GList *header_lines);
const GList * (*get_header_lines) (CamelMimePart *mime_part);
+
void (*set_content_type) (CamelMimePart *mime_part, const gchar *content_type);
GMimeContentField * (*get_content_type) (CamelMimePart *mime_part);
gboolean (*parse_header_pair) (CamelMimePart *mime_part, gchar *header_name, gchar *header_value);
- const CamelDataWrapper * (*get_content_object) (CamelMimePart *mime_part);
- void (*set_content_object) (CamelMimePart *mime_part, CamelDataWrapper *content);
} CamelMimePartClass;
@@ -105,9 +99,6 @@ GtkType camel_mime_part_get_type (void);
/* public methods */
-void camel_mime_part_add_header (CamelMimePart *mime_part, gchar *header_name, gchar *header_value);
-void camel_mime_part_remove_header (CamelMimePart *mime_part, const gchar *header_name);
-const gchar *camel_mime_part_get_header (CamelMimePart *mime_part, const gchar *header_name);
void camel_mime_part_set_description (CamelMimePart *mime_part, const gchar *description);
const gchar *camel_mime_part_get_description (CamelMimePart *mime_part);
void camel_mime_part_set_disposition (CamelMimePart *mime_part, const gchar *disposition);
@@ -123,9 +114,6 @@ const GList *camel_mime_part_get_content_languages (CamelMimePart *mime_part);
void camel_mime_part_set_header_lines (CamelMimePart *mime_part, GList *header_lines);
const GList *camel_mime_part_get_header_lines (CamelMimePart *mime_part);
-const CamelDataWrapper *camel_mime_part_get_content_object (CamelMimePart *mime_part);
-void camel_mime_part_set_content_object (CamelMimePart *mime_part, CamelDataWrapper *content);
-
/* utility functions */
void camel_mime_part_set_text (CamelMimePart *camel_mime_part, gchar *text);