#define d(x)
#define CF_CLASS(o) (CAMEL_FOLDER_CLASS (CAMEL_OBJECT_GET_CLASS(o)))
-static CamelFolderClass *parent_class;
+static CamelObjectClass *parent_class;
+static CamelOfflineFolderClass *offline_folder_class = NULL;
CamelFolder *
camel_imapx_folder_new(CamelStore *store, const gchar *folder_dir, const gchar *folder_name, CamelException *ex)
static void
imap_folder_class_init (CamelIMAPXFolderClass *klass)
{
+ offline_folder_class = CAMEL_OFFLINE_FOLDER_CLASS (camel_type_get_global_classfuncs (camel_offline_folder_get_type ()));
+
((CamelFolderClass *)klass)->refresh_info = imapx_refresh_info;
((CamelFolderClass *)klass)->sync = imapx_sync;
((CamelFolderClass *)klass)->search_by_expression = imapx_search_by_expression;
static CamelType camel_imapx_folder_type = CAMEL_INVALID_TYPE;
if (!camel_imapx_folder_type) {
- camel_imapx_folder_type = camel_type_register (CAMEL_FOLDER_TYPE, "CamelIMAPXFolder",
+ parent_class = camel_offline_folder_get_type();
+ camel_imapx_folder_type = camel_type_register (parent_class, "CamelIMAPXFolder",
sizeof (CamelIMAPXFolder),
sizeof (CamelIMAPXFolderClass),
(CamelObjectClassInitFunc)imap_folder_class_init,
NULL,
imap_folder_init,
(CamelObjectFinalizeFunc) imap_finalize);
- parent_class = (CamelFolderClass *)camel_folder_get_type();
}
return camel_imapx_folder_type;
#pragma }
#endif /* __cplusplus }*/
+#include <camel/camel-offline-folder.h>
#include <camel/camel-folder.h>
#include <camel/camel-data-cache.h>
#define CAMEL_IS_IMAPX_FOLDER(o) (CAMEL_CHECK_TYPE((o), CAMEL_IMAPX_FOLDER_TYPE))
typedef struct _CamelIMAPXFolder {
- CamelFolder parent_object;
+ CamelOfflineFolder parent_object;
gchar *raw_name;
CamelDataCache *cache;
} CamelIMAPXFolder;
typedef struct _CamelIMAPXFolderClass {
- CamelFolderClass parent_class;
+ CamelOfflineFolderClass parent_class;
} CamelIMAPXFolderClass;
/* Standard Camel function */
/* Specified in RFC 2060 section 2.1 */
#define IMAP_PORT 143
-static CamelStoreClass *parent_class = NULL;
+static CamelOfflineStoreClass *parent_class = NULL;
static guint
imapx_name_hash(gconstpointer key)
CamelServiceClass *camel_service_class = CAMEL_SERVICE_CLASS(klass);
CamelStoreClass *camel_store_class = CAMEL_STORE_CLASS(klass);
- parent_class = CAMEL_STORE_CLASS(camel_type_get_global_classfuncs(camel_store_get_type()));
+ parent_class = CAMEL_OFFLINE_STORE_CLASS (camel_type_get_global_classfuncs (camel_offline_store_get_type ()));
camel_service_class->construct = imapx_construct;
camel_service_class->query_auth_types = imapx_query_auth_types;