evolution-data-server r9204 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi



Author: jjohnny
Date: Mon Jul 28 09:28:29 2008
New Revision: 9204
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9204&view=rev

Log:
Added a helper function to get MAPI Profile name for the store.


Modified:
   branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/ChangeLog
   branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c
   branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.h

Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c	(original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.c	Mon Jul 28 09:28:29 2008
@@ -71,7 +71,7 @@
 
 struct _CamelMapiStorePrivate {
 	char *user;
-	char *profile;
+	const char *profile;
 	char *base_url;
 	char *storage_path;
 
@@ -1208,7 +1208,17 @@
 	return g_hash_table_lookup (priv->id_hash, folder_id);
 }
 
+const gchar *
+camel_mapi_store_get_profile_name (CamelMapiStore *mapi_store)
+{
+	CamelMapiStorePrivate *priv;
+
+	g_return_val_if_fail (CAMEL_IS_MAPI_STORE (mapi_store), NULL);
 
+	priv = mapi_store->priv;
+
+	return priv->profile;
+}
 
 
 static void

Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.h
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.h	(original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-store.h	Mon Jul 28 09:28:29 2008
@@ -84,6 +84,7 @@
 
 const gchar* camel_mapi_store_folder_id_lookup (CamelMapiStore *mapi_store, const char *folder_name);
 const gchar* camel_mapi_store_folder_lookup (CamelMapiStore *mapi_store, const char *folder_id);
+const gchar* camel_mapi_store_get_profile_name (CamelMapiStore *mapi_store);
 
 __END_DECLS
 



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