[evolution-data-server] Generate D-Bus calendar interfaces with gdbus-codegen.



commit 50aab8f7d00a66839feea394a49a43ad6f1145ce
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jan 26 16:42:08 2013 -0500

    Generate D-Bus calendar interfaces with gdbus-codegen.

 docs/reference/private/libedbus-private-docs.sgml  |    2 +
 .../private/libedbus-private-sections.txt          |  133 ++++++++++++++++++++
 docs/reference/private/libedbus-private.types      |    4 +
 private/Makefile.am                                |   17 +++
 .../org.gnome.evolution.dataserver.Calendar.xml    |  109 ++++++++++++++++
 5 files changed, 265 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/private/libedbus-private-docs.sgml b/docs/reference/private/libedbus-private-docs.sgml
index 344ec24..05b86ac 100644
--- a/docs/reference/private/libedbus-private-docs.sgml
+++ b/docs/reference/private/libedbus-private-docs.sgml
@@ -22,6 +22,7 @@
     <xi:include href="xml/e-dbus-authenticator.xml"/>
     <xi:include href="xml/e-dbus-address-book.xml"/>
     <xi:include href="xml/e-dbus-address-book-factory.xml"/>
+    <xi:include href="xml/e-dbus-calendar.xml"/>
     <xi:include href="xml/e-dbus-calendar-factory.xml"/>
     <xi:include href="xml/e-dbus-user-prompter.xml"/>
   </chapter>
@@ -38,6 +39,7 @@
     <xi:include href="../../../private/e-dbus-authenticator-org.gnome.evolution.dataserver.Authenticator.xml"/>
     <xi:include href="../../../private/e-dbus-address-book-org.gnome.evolution.dataserver.AddressBook.xml"/>
     <xi:include href="../../../private/e-dbus-address-book-factory-org.gnome.evolution.dataserver.AddressBookFactory.xml"/>
+    <xi:include href="../../../private/e-dbus-calendar-org.gnome.evolution.dataserver.Calendar.xml"/>
     <xi:include href="../../../private/e-dbus-calendar-factory-org.gnome.evolution.dataserver.CalendarFactory.xml"/>
     <xi:include href="../../../private/e-dbus-user-prompter-org.gnome.evolution.dataserver.UserPrompter.xml"/>
   </chapter>
diff --git a/docs/reference/private/libedbus-private-sections.txt b/docs/reference/private/libedbus-private-sections.txt
index 9a8b0a5..ffa35f9 100644
--- a/docs/reference/private/libedbus-private-sections.txt
+++ b/docs/reference/private/libedbus-private-sections.txt
@@ -216,6 +216,139 @@ EDBusAuthenticatorSkeletonPrivate
 </SECTION>
 
 <SECTION>
+<FILE>e-dbus-calendar</FILE>
+<TITLE>EDBusCalendar</TITLE>
+EDBusCalendar
+e_dbus_calendar_get_online
+e_dbus_calendar_set_online
+e_dbus_calendar_get_revision
+e_dbus_calendar_dup_revision
+e_dbus_calendar_set_revision
+e_dbus_calendar_get_writable
+e_dbus_calendar_set_writable
+e_dbus_calendar_get_cache_dir
+e_dbus_calendar_dup_cache_dir
+e_dbus_calendar_set_cache_dir
+e_dbus_calendar_get_capabilities
+e_dbus_calendar_dup_capabilities
+e_dbus_calendar_set_capabilities
+e_dbus_calendar_get_default_object
+e_dbus_calendar_dup_default_object
+e_dbus_calendar_set_default_object
+e_dbus_calendar_get_cal_email_address
+e_dbus_calendar_dup_cal_email_address
+e_dbus_calendar_set_cal_email_address
+e_dbus_calendar_get_alarm_email_address
+e_dbus_calendar_dup_alarm_email_address
+e_dbus_calendar_set_alarm_email_address
+e_dbus_calendar_call_open_sync
+e_dbus_calendar_call_open
+e_dbus_calendar_call_open_finish
+e_dbus_calendar_complete_open
+e_dbus_calendar_call_close_sync
+e_dbus_calendar_call_close
+e_dbus_calendar_call_close_finish
+e_dbus_calendar_complete_close
+e_dbus_calendar_call_refresh_sync
+e_dbus_calendar_call_refresh
+e_dbus_calendar_call_refresh_finish
+e_dbus_calendar_complete_refresh
+e_dbus_calendar_call_create_objects_sync
+e_dbus_calendar_call_create_objects
+e_dbus_calendar_call_create_objects_finish
+e_dbus_calendar_complete_create_objects
+e_dbus_calendar_call_modify_objects_sync
+e_dbus_calendar_call_modify_objects
+e_dbus_calendar_call_modify_objects_finish
+e_dbus_calendar_complete_modify_objects
+e_dbus_calendar_call_remove_objects_sync
+e_dbus_calendar_call_remove_objects
+e_dbus_calendar_call_remove_objects_finish
+e_dbus_calendar_complete_remove_objects
+e_dbus_calendar_call_receive_objects_sync
+e_dbus_calendar_call_receive_objects
+e_dbus_calendar_call_receive_objects_finish
+e_dbus_calendar_complete_receive_objects
+e_dbus_calendar_call_send_objects_sync
+e_dbus_calendar_call_send_objects
+e_dbus_calendar_call_send_objects_finish
+e_dbus_calendar_complete_send_objects
+e_dbus_calendar_call_get_object_sync
+e_dbus_calendar_call_get_object
+e_dbus_calendar_call_get_object_finish
+e_dbus_calendar_complete_get_object
+e_dbus_calendar_call_get_object_list_sync
+e_dbus_calendar_call_get_object_list
+e_dbus_calendar_call_get_object_list_finish
+e_dbus_calendar_complete_get_object_list
+e_dbus_calendar_call_get_free_busy_sync
+e_dbus_calendar_call_get_free_busy
+e_dbus_calendar_call_get_free_busy_finish
+e_dbus_calendar_complete_get_free_busy
+e_dbus_calendar_call_get_attachment_uris_sync
+e_dbus_calendar_call_get_attachment_uris
+e_dbus_calendar_call_get_attachment_uris_finish
+e_dbus_calendar_complete_get_attachment_uris
+e_dbus_calendar_call_discard_alarm_sync
+e_dbus_calendar_call_discard_alarm
+e_dbus_calendar_call_discard_alarm_finish
+e_dbus_calendar_complete_discard_alarm
+e_dbus_calendar_call_get_timezone_sync
+e_dbus_calendar_call_get_timezone
+e_dbus_calendar_call_get_timezone_finish
+e_dbus_calendar_complete_get_timezone
+e_dbus_calendar_call_add_timezone_sync
+e_dbus_calendar_call_add_timezone
+e_dbus_calendar_call_add_timezone_finish
+e_dbus_calendar_complete_add_timezone
+e_dbus_calendar_call_get_view_sync
+e_dbus_calendar_call_get_view
+e_dbus_calendar_call_get_view_finish
+e_dbus_calendar_complete_get_view
+e_dbus_calendar_emit_error
+e_dbus_calendar_emit_free_busy_data
+e_dbus_calendar_interface_info
+e_dbus_calendar_override_properties
+<SUBSECTION Proxy>
+EDBusCalendarProxy
+e_dbus_calendar_proxy_new_sync
+e_dbus_calendar_proxy_new
+e_dbus_calendar_proxy_new_finish
+e_dbus_calendar_proxy_new_for_bus_sync
+e_dbus_calendar_proxy_new_for_bus
+e_dbus_calendar_proxy_new_for_bus_finish
+<SUBSECTION Skeleton>
+EDBusCalendarSkeleton
+e_dbus_calendar_skeleton_new
+<SUBSECTION Standard>
+E_DBUS_CALENDAR
+E_DBUS_IS_CALENDAR
+E_DBUS_TYPE_CALENDAR
+E_DBUS_CALENDAR_GET_IFACE
+E_DBUS_CALENDAR_PROXY
+E_DBUS_IS_CALENDAR_PROXY
+E_DBUS_TYPE_CALENDAR_PROXY
+E_DBUS_CALENDAR_PROXY_CLASS
+E_DBUS_IS_CALENDAR_PROXY_CLASS
+E_DBUS_CALENDAR_PROXY_GET_CLASS
+E_DBUS_CALENDAR_SKELETON
+E_DBUS_IS_CALENDAR_SKELETON
+E_DBUS_TYPE_CALENDAR_SKELETON
+E_DBUS_CALENDAR_SKELETON_CLASS
+E_DBUS_IS_CALENDAR_SKELETON_CLASS
+E_DBUS_CALENDAR_SKELETON_GET_CLASS
+EDBusCalendarIface
+EDBusCalendarProxyClass
+EDBusCalendarSkeletonClass
+e_dbus_calendar_get_type
+e_dbus_calendar_proxy_get_type
+e_dbus_calendar_skeleton_get_type
+<SUBSECTION Private>
+EDBusCalendarProxyPrivate
+EDBusCalendarSkeletonPrivate
+</SECTION>
+
+<SECTION>
 <FILE>e-dbus-calendar-factory</FILE>
 <TITLE>EDBusCalendarFactory</TITLE>
 EDBusCalendarFactory
diff --git a/docs/reference/private/libedbus-private.types b/docs/reference/private/libedbus-private.types
index a4c3347..999ad53 100644
--- a/docs/reference/private/libedbus-private.types
+++ b/docs/reference/private/libedbus-private.types
@@ -3,6 +3,7 @@
 #include <private/e-dbus-authenticator.h>
 #include <private/e-dbus-address-book.h>
 #include <private/e-dbus-address-book-factory.h>
+#include <private/e-dbus-calendar.h>
 #include <private/e-dbus-calendar-factory.h>
 #include <private/e-dbus-user-prompter.h>
 
@@ -40,6 +41,9 @@ e_dbus_address_book_skeleton_get_type
 e_dbus_address_book_factory_get_type
 e_dbus_address_book_factory_proxy_get_type
 e_dbus_address_book_factory_skeleton_get_type
+e_dbus_calendar_get_type
+e_dbus_calendar_proxy_get_type
+e_dbus_calendar_skeleton_get_type
 e_dbus_calendar_factory_get_type
 e_dbus_calendar_factory_proxy_get_type
 e_dbus_calendar_factory_skeleton_get_type
diff --git a/private/Makefile.am b/private/Makefile.am
index 7f4bd50..38a2057 100644
--- a/private/Makefile.am
+++ b/private/Makefile.am
@@ -46,6 +46,15 @@ $(GENERATED_DBUS_ADDRESS_BOOK_FACTORY) : Makefile.am org.gnome.evolution.dataser
 	$(top_srcdir)/private/org.gnome.evolution.dataserver.AddressBookFactory.xml \
 	$(NULL)
 
+$(GENERATED_DBUS_CALENDAR) : Makefile.am org.gnome.evolution.dataserver.Calendar.xml
+	$(AM_V_GEN) gdbus-codegen \
+	--interface-prefix org.gnome.evolution.dataserver \
+	--c-namespace E_DBus \
+	--generate-c-code e-dbus-calendar \
+	--generate-docbook e-dbus-calendar \
+	$(top_srcdir)/private/org.gnome.evolution.dataserver.Calendar.xml \
+	$(NULL)
+
 $(GENERATED_DBUS_CALENDAR_FACTORY) : Makefile.am org.gnome.evolution.dataserver.CalendarFactory.xml
 	$(AM_V_GEN) gdbus-codegen \
 	--interface-prefix org.gnome.evolution.dataserver \
@@ -105,6 +114,12 @@ GENERATED_DBUS_ADDRESS_BOOK_FACTORY = \
 	e-dbus-address-book-factory-org.gnome.evolution.dataserver.AddressBookFactory.xml \
 	$(NULL)
 
+GENERATED_DBUS_CALENDAR = \
+	e-dbus-calendar.c \
+	e-dbus-calendar.h \
+	e-dbus-calendar-org.gnome.evolution.dataserver.Calendar.xml \
+	$(NULL)
+
 GENERATED_DBUS_CALENDAR_FACTORY = \
 	e-dbus-calendar-factory.c \
 	e-dbus-calendar-factory.h \
@@ -117,6 +132,7 @@ BUILT_SOURCES = \
 	$(GENERATED_DBUS_AUTHENTICATOR) \
 	$(GENERATED_DBUS_ADDRESS_BOOK) \
 	$(GENERATED_DBUS_ADDRESS_BOOK_FACTORY) \
+	$(GENERATED_DBUS_CALENDAR) \
 	$(GENERATED_DBUS_CALENDAR_FACTORY) \
 	$(GENERATED_DBUS_USER_PROMPTER) \
 	$(NULL)
@@ -152,6 +168,7 @@ EXTRA_DIST = \
 	org.gnome.evolution.dataserver.Authenticator.xml \
 	org.gnome.evolution.dataserver.AddressBook.xml \
 	org.gnome.evolution.dataserver.AddressBookFactory.xml \
+	org.gnome.evolution.dataserver.Calendar.xml \
 	org.gnome.evolution.dataserver.CalendarFactory.xml \
 	org.gnome.evolution.dataserver.UserPrompter.xml \
 	$(NULL)
diff --git a/private/org.gnome.evolution.dataserver.Calendar.xml b/private/org.gnome.evolution.dataserver.Calendar.xml
new file mode 100644
index 0000000..386e81d
--- /dev/null
+++ b/private/org.gnome.evolution.dataserver.Calendar.xml
@@ -0,0 +1,109 @@
+<!DOCTYPE node PUBLIC
+"-//freedesktop//DTD D-Bus Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd";>
+
+<!--
+    org.gnome.evolution.dataserver.Calendar:
+    @short_description: Calendar objects
+    @since: 3.8
+
+    This interface allows for interaction with a calendar backend.
+-->
+<interface name="org.gnome.evolution.dataserver.Calendar">
+
+  <property name="Online" type="b" access="read"/>
+  <property name="Revision" type="s" access="read"/>
+  <property name="Writable" type="b" access="read"/>
+
+  <!-- These properties are static. -->
+
+  <property name="CacheDir" type="s" access="read"/>
+  <property name="Capabilities" type="as" access="read"/>
+  <property name="DefaultObject" type="s" access="read"/>
+  <property name="CalEmailAddress" type="s" access="read"/>
+  <property name="AlarmEmailAddress" type="s" access="read"/>
+
+  <signal name="Error">
+    <arg name="error_message" type="s"/>
+  </signal>
+
+  <signal name="FreeBusyData">
+    <arg name="ics_objects" type="as"/>
+  </signal>
+
+  <method name="Open"/>
+
+  <method name="Close"/>
+
+  <method name="Refresh"/>
+
+  <method name="CreateObjects">
+    <arg name="ics_objects" direction="in" type="as"/>
+    <arg name="uids" direction="out" type="as"/>
+  </method>
+
+  <method name="ModifyObjects">
+    <arg name="ics_objects" direction="in" type="as"/>
+    <arg name="mod_type" direction="in" type="s"/>
+  </method>
+
+  <method name="RemoveObjects">
+    <arg name="uid_rid_array" direction="in" type="a(ss)"/>
+    <arg name="mod_type" direction="in" type="s"/>
+  </method>
+
+  <method name="ReceiveObjects">
+    <arg name="ics_object" direction="in" type="s"/>
+  </method>
+
+  <method name="SendObjects">
+    <arg name="ics_object" direction="in" type="s"/>
+    <arg name="users" direction="out" type="as"/>
+    <arg name="out_ics_object" direction="out" type="s"/>
+  </method>
+
+  <method name="GetObject">
+    <arg name="uid" direction="in" type="s"/>
+    <arg name="rid" direction="in" type="s"/>
+    <arg name="ics_object" direction="out" type="s"/>
+  </method>
+
+  <method name="GetObjectList">
+    <arg name="query" direction="in" type="s"/>
+    <arg name="ics_objects" direction="out" type="as"/>
+  </method>
+
+  <method name="GetFreeBusy">
+    <arg name="start" direction="in" type="x"/>
+    <arg name="end" direction="in" type="x"/>
+    <arg name="users" direction="in" type="as"/>
+  </method>
+
+  <method name="GetAttachmentUris">
+    <arg name="uid" direction="in" type="s"/>
+    <arg name="rid" direction="in" type="s"/>
+    <arg name="uris" direction="out" type="as"/>
+  </method>
+
+  <method name="DiscardAlarm">
+    <arg name="uid" direction="in" type="s"/>
+    <arg name="rid" direction="in" type="s"/>
+    <arg name="alarm_uid" direction="in" type="s"/>
+  </method>
+
+  <method name="GetTimezone">
+    <arg name="tz_id" direction="in" type="s"/>
+    <arg name="tz_object" direction="out" type="s"/>
+  </method>
+
+  <method name="AddTimezone">
+    <arg name="tz_object" direction="in" type="s"/>
+  </method>
+
+  <method name="GetView">
+    <arg name="query" direction="in" type="s"/>
+    <arg name="object_path" direction="out" type="o"/>
+  </method>
+
+</interface>



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