jana r741 - in trunk: . libjana-ecal



Author: rbradford
Date: Wed Mar 18 20:46:09 2009
New Revision: 741
URL: http://svn.gnome.org/viewvc/jana?rev=741&view=rev

Log:
2009-03-16  Rob Bradford  <rob linux intel com>

	* libjana-ecal/jana-ecal-store.c (jana_ecal_store_get_uri):
	* libjana-ecal/jana-ecal-store.h:
	Add a jana_ecal_store_get_uri function to return the URI of the
	calendar behind the store.

Modified:
   trunk/ChangeLog
   trunk/libjana-ecal/jana-ecal-store.c
   trunk/libjana-ecal/jana-ecal-store.h

Modified: trunk/libjana-ecal/jana-ecal-store.c
==============================================================================
--- trunk/libjana-ecal/jana-ecal-store.c	(original)
+++ trunk/libjana-ecal/jana-ecal-store.c	Wed Mar 18 20:46:09 2009
@@ -305,6 +305,22 @@
 	}
 }
 
+/**
+ * jana_ecal_store_get_uri
+ * @store: The store to get the uri of.
+ *
+ * Returns: The uri of the calendar that this store represents.
+ */
+const gchar *
+jana_ecal_store_get_uri (JanaEcalStore *store)
+{
+	JanaEcalStorePrivate *priv = STORE_PRIVATE (store);
+
+	g_return_val_if_fail (JANA_ECAL_IS_STORE (store), NULL);
+
+	return e_cal_get_uri (priv->ecal);
+}
+
 static void
 store_open (JanaStore *self)
 {

Modified: trunk/libjana-ecal/jana-ecal-store.h
==============================================================================
--- trunk/libjana-ecal/jana-ecal-store.h	(original)
+++ trunk/libjana-ecal/jana-ecal-store.h	Wed Mar 18 20:46:09 2009
@@ -63,6 +63,7 @@
 JanaStore *jana_ecal_store_new 		(JanaComponentType type);
 JanaStore *jana_ecal_store_new_from_uri	(const gchar *uri,
 					 JanaComponentType type);
+const gchar *jana_ecal_store_get_uri	(JanaEcalStore *store);
 
 #endif /* JANA_ECAL_STORE_H */
 



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