diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-04-07 09:21:35 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-04-07 09:21:35 +0800 |
commit | 07240b3d5e555e2a4d8b0a6ed9d41db294ec0102 (patch) | |
tree | 77e4add7ca2db587df3bec512a2a6596caaeb591 | |
parent | eef89a80d45770cb5507be1cc54d04eba262e416 (diff) | |
download | gsoc2013-evolution-07240b3d5e555e2a4d8b0a6ed9d41db294ec0102.tar.gz gsoc2013-evolution-07240b3d5e555e2a4d8b0a6ed9d41db294ec0102.tar.zst gsoc2013-evolution-07240b3d5e555e2a4d8b0a6ed9d41db294ec0102.zip |
Defined.
2004-04-06 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined.
* camel-object.h (CAMEL_OBJECT_TYPE): Fixed.
* providers/imap4/camel-imap4-folder.c
(camel_imap4_folder_utf7_name): Implemented.
* providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
Use camel_folder_info_build() to build the folder-info tree.
svn path=/trunk/; revision=25345
-rw-r--r-- | camel/ChangeLog | 12 | ||||
-rw-r--r-- | camel/camel-folder-summary.h | 1 | ||||
-rw-r--r-- | camel/camel-object.h | 2 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-engine.c | 2 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-folder.c | 8 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-store.c | 5 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-stream.c | 2 | ||||
-rw-r--r-- | camel/providers/imap4/camel-imap4-summary.c | 2 |
8 files changed, 26 insertions, 8 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index f31e0714da..79f42ceaae 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,15 @@ +2004-04-06 Jeffrey Stedfast <fejj@ximian.com> + + * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined. + + * camel-object.h (CAMEL_OBJECT_TYPE): Fixed. + + * providers/imap4/camel-imap4-folder.c + (camel_imap4_folder_utf7_name): Implemented. + + * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): + Use camel_folder_info_build() to build the folder-info tree. + 2004-04-06 Not Zed <NotZed@Ximian.com> * camel-debug.c: #if 0 out the sys/debugreg stuff. diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h index fc995874af..8f8c02e220 100644 --- a/camel/camel-folder-summary.h +++ b/camel/camel-folder-summary.h @@ -33,6 +33,7 @@ extern "C" { #include <camel/camel-object.h> #include <camel/camel-index.h> +#define CAMEL_FOLDER_SUMMARY_TYPE camel_folder_summary_get_type () #define CAMEL_FOLDER_SUMMARY(obj) CAMEL_CHECK_CAST (obj, camel_folder_summary_get_type (), CamelFolderSummary) #define CAMEL_FOLDER_SUMMARY_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, camel_folder_summary_get_type (), CamelFolderSummaryClass) #define CAMEL_IS_FOLDER_SUMMARY(obj) CAMEL_CHECK_TYPE (obj, camel_folder_summary_get_type ()) diff --git a/camel/camel-object.h b/camel/camel-object.h index 9b7b62f624..69068e02be 100644 --- a/camel/camel-object.h +++ b/camel/camel-object.h @@ -61,7 +61,7 @@ typedef struct _CamelObjectClass *CamelType; extern CamelType camel_object_type; -#define CAMEL_OBJECT_TYPE (camel_object_type) +#define CAMEL_OBJECT_TYPE (camel_object_get_type ()) /* we can't check casts till we've got the type, use the global type variable because its cheaper */ #define CAMEL_OBJECT(obj) (CAMEL_CHECK_CAST((obj), camel_object_type, CamelObject)) diff --git a/camel/providers/imap4/camel-imap4-engine.c b/camel/providers/imap4/camel-imap4-engine.c index 75831fa0b3..a84ac1dfba 100644 --- a/camel/providers/imap4/camel-imap4-engine.c +++ b/camel/providers/imap4/camel-imap4-engine.c @@ -54,7 +54,7 @@ camel_imap4_engine_get_type (void) static CamelType type = 0; if (!type) { - type = camel_type_register (CAMEL_TYPE_IMAP4_ENGINE, + type = camel_type_register (camel_object_get_type (), "CamelIMAP4Engine", sizeof (CamelIMAP4Engine), sizeof (CamelIMAP4EngineClass), diff --git a/camel/providers/imap4/camel-imap4-folder.c b/camel/providers/imap4/camel-imap4-folder.c index 2169f053ce..9c88e596aa 100644 --- a/camel/providers/imap4/camel-imap4-folder.c +++ b/camel/providers/imap4/camel-imap4-folder.c @@ -74,7 +74,7 @@ camel_imap4_folder_get_type (void) static CamelType type = 0; if (!type) { - type = camel_type_register (CAMEL_TYPE_IMAP4_FOLDER, + type = camel_type_register (CAMEL_FOLDER_TYPE, "CamelIMAP4Folder", sizeof (CamelIMAP4Folder), sizeof (CamelIMAP4FolderClass), @@ -204,6 +204,12 @@ camel_imap4_folder_new (CamelStore *store, const char *full_name, CamelException } +const char * +camel_imap4_folder_utf7_name (CamelIMAP4Folder *folder) +{ + return folder->utf7_name; +} + static struct { const char *name; diff --git a/camel/providers/imap4/camel-imap4-store.c b/camel/providers/imap4/camel-imap4-store.c index 3dd1120f5d..832613bb10 100644 --- a/camel/providers/imap4/camel-imap4-store.c +++ b/camel/providers/imap4/camel-imap4-store.c @@ -75,7 +75,7 @@ camel_imap4_store_get_type (void) static CamelType type = 0; if (!type) { - type = camel_type_register (CAMEL_TYPE_IMAP4_STORE, + type = camel_type_register (CAMEL_STORE_TYPE, "CamelIMAP4Store", sizeof (CamelIMAP4Store), sizeof (CamelIMAP4StoreClass), @@ -958,8 +958,7 @@ imap4_build_folder_info (CamelIMAP4Engine *engine, guint32 flags, GPtrArray *arr array->pdata[i] = fi; } - /* FIXME: build the fi tree */ - fi = array->pdata[0]; + fi = camel_folder_info_build (array, top, '/', TRUE); camel_url_free (url); diff --git a/camel/providers/imap4/camel-imap4-stream.c b/camel/providers/imap4/camel-imap4-stream.c index f2b2cbeb4b..de14f4e4ef 100644 --- a/camel/providers/imap4/camel-imap4-stream.c +++ b/camel/providers/imap4/camel-imap4-stream.c @@ -56,7 +56,7 @@ camel_imap4_stream_get_type (void) static CamelType type = 0; if (!type) { - type = camel_type_register (CAMEL_TYPE_IMAP4_STREAM, + type = camel_type_register (CAMEL_STREAM_TYPE, "CamelIMAP4Stream", sizeof (CamelIMAP4Stream), sizeof (CamelIMAP4StreamClass), diff --git a/camel/providers/imap4/camel-imap4-summary.c b/camel/providers/imap4/camel-imap4-summary.c index fdc1e3cd52..4c181c4ab4 100644 --- a/camel/providers/imap4/camel-imap4-summary.c +++ b/camel/providers/imap4/camel-imap4-summary.c @@ -67,7 +67,7 @@ camel_imap4_summary_get_type (void) static CamelType type = 0; if (!type) { - type = camel_type_register (CAMEL_TYPE_IMAP4_SUMMARY, + type = camel_type_register (CAMEL_FOLDER_SUMMARY_TYPE, "CamelIMAP4Summary", sizeof (CamelIMAP4Summary), sizeof (CamelIMAP4SummaryClass), |