aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-19 04:03:10 +0800
committerDan Winship <danw@src.gnome.org>2001-09-19 04:03:10 +0800
commitb4c31f5153efd4a7aa58bd1ebd3319297e528f42 (patch)
treeb1a3f33fab0a8ed4a278107b5267239ff6533298 /camel/camel-data-wrapper.c
parentbb51b55bcc64b0342db45e389342b129a20b8a2a (diff)
downloadgsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar.gz
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar.bz2
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar.lz
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar.xz
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.tar.zst
gsoc2013-evolution-b4c31f5153efd4a7aa58bd1ebd3319297e528f42.zip
Virtualize this.
* camel-data-wrapper.c (camel_data_wrapper_is_offline): Virtualize this. * camel-medium.c (is_offline): A medium is offline if its content object is offline. * camel-multipart.c (is_offline): A multipart is offline if any of its subparts are offline. svn path=/trunk/; revision=12948
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r--camel/camel-data-wrapper.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 3a618ead6f..a549f6bed9 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -48,6 +48,7 @@ static void set_mime_type (CamelDataWrapper *data_wrapper, const gchar *mime_typ
static gchar *get_mime_type (CamelDataWrapper *data_wrapper);
static CamelContentType *get_mime_type_field (CamelDataWrapper *data_wrapper);
static void set_mime_type_field (CamelDataWrapper *data_wrapper, CamelContentType *mime_type);
+static gboolean is_offline (CamelDataWrapper *data_wrapper);
static void
camel_data_wrapper_class_init (CamelDataWrapperClass *camel_data_wrapper_class)
@@ -60,8 +61,8 @@ camel_data_wrapper_class_init (CamelDataWrapperClass *camel_data_wrapper_class)
camel_data_wrapper_class->get_mime_type = get_mime_type;
camel_data_wrapper_class->get_mime_type_field = get_mime_type_field;
camel_data_wrapper_class->set_mime_type_field = set_mime_type_field;
-
camel_data_wrapper_class->construct_from_stream = construct_from_stream;
+ camel_data_wrapper_class->is_offline = is_offline;
}
static void
@@ -280,6 +281,12 @@ camel_data_wrapper_set_mime_type_field (CamelDataWrapper *data_wrapper,
}
+static gboolean
+is_offline (CamelDataWrapper *data_wrapper)
+{
+ return data_wrapper->offline;
+}
+
/**
* camel_data_wrapper_is_offline:
* @data_wrapper: a data wrapper
@@ -291,5 +298,5 @@ camel_data_wrapper_set_mime_type_field (CamelDataWrapper *data_wrapper,
gboolean
camel_data_wrapper_is_offline (CamelDataWrapper *data_wrapper)
{
- return data_wrapper->offline;
+ return CDW_CLASS (data_wrapper)->is_offline (data_wrapper);
}