[evolution-data-server] Implement CamelVeeStore::get_name()



commit 83b0a7d5a27f55c40fbc4c1713f275b64d505a11
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 9 10:54:47 2010 +0200

    Implement CamelVeeStore::get_name()

 camel/camel-vee-store.c |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c
index daadfa5..7c51996 100644
--- a/camel/camel-vee-store.c
+++ b/camel/camel-vee-store.c
@@ -49,7 +49,9 @@ static CamelFolderInfo *vee_get_folder_info(CamelStore *store, const gchar *top,
 static void camel_vee_store_class_init (CamelVeeStoreClass *klass);
 static void camel_vee_store_init       (CamelVeeStore *obj);
 static void camel_vee_store_finalize   (CamelObject *obj);
-static void construct (CamelService *service, CamelSession *session, CamelProvider *provider, CamelURL *url, CamelException *ex);
+
+static gchar *vee_get_name (CamelService *service, gboolean brief);
+static void vee_construct (CamelService *service, CamelSession *session, CamelProvider *provider, CamelURL *url, CamelException *ex);
 
 static CamelStoreClass *camel_vee_store_parent;
 
@@ -84,7 +86,9 @@ camel_vee_store_class_init (CamelVeeStoreClass *klass)
 	store_class->delete_folder = vee_delete_folder;
 	store_class->get_folder_info = vee_get_folder_info;
 	store_class->free_folder_info = camel_store_free_folder_info_full;
-	((CamelServiceClass *)store_class)->construct = construct;
+
+	((CamelServiceClass *)store_class)->construct = vee_construct;
+	((CamelServiceClass *)store_class)->get_name = vee_get_name;
 
 	store_class->get_trash = vee_get_trash;
 	store_class->get_junk = vee_get_junk;
@@ -100,7 +104,7 @@ camel_vee_store_init (CamelVeeStore *obj)
 }
 
 static void
-construct (CamelService *service, CamelSession *session, CamelProvider *provider, CamelURL *url, CamelException *ex)
+vee_construct (CamelService *service, CamelSession *session, CamelProvider *provider, CamelURL *url, CamelException *ex)
 {
 	 CamelStore *store = (CamelStore *)service;
 	 CamelVeeStore *obj = (CamelVeeStore *)service;
@@ -116,6 +120,13 @@ construct (CamelService *service, CamelSession *session, CamelProvider *provider
 #endif
 
 }
+
+static gchar *
+vee_get_name (CamelService *service, gboolean brief)
+{
+	return g_strdup ("Virtual Folder Store");
+}
+
 static void
 cvs_free_unmatched(gpointer key, gpointer value, gpointer data)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]