From 14eaf3223fa42bab37fc70112030f76b5f49e46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alburquerque?= Date: Sun, 14 Nov 2010 23:29:35 -0500 Subject: giomm: Provide non-cancellable overloads for newly added API. * gio/src/application.hg: Completed a TODO. * gio/src/asyncinitable.hg (init_async): Refer to existing method docs in the non-cancellable version instead of duplicating docs. * gio/src/dbusconnection.{ccg,hg}: Add non-cancellable overloads of the constructors and create methods instead of having a default null Cancellable parameter. Renamed the synchronized create*() methods to create*_sync(). (get): Added a non-cancellable overload as above. * gio/src/dbusproxy.{ccg,hg}: Added non-cancellable overloads of the constructors and create methods. Renamed the create*() synchronized methods to create*_sync() as above. (call): Added a non-cancellable overload as above. * gio/src/dbusserver.{ccg,hg}: Add non-cancellable overloads of the constructor and create method. Renamed the create() synchronized method to create_sync() as above. --- gio/src/dbusserver.hg | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'gio/src/dbusserver.hg') diff --git a/gio/src/dbusserver.hg b/gio/src/dbusserver.hg index 54d556c8..276c24e0 100644 --- a/gio/src/dbusserver.hg +++ b/gio/src/dbusserver.hg @@ -45,15 +45,31 @@ class DBusServer : public Glib::Object, public Initable _IMPLEMENTS_INTERFACE(Initable) protected: + + DBusServer(const Glib::ustring& address, + const Glib::ustring& guid, + const Glib::RefPtr& observer, + const Glib::RefPtr& cancellable, + DBusServerFlags flags); + DBusServer(const Glib::ustring& address, - const Glib::ustring& guid, const Glib::RefPtr& observer, - const Glib::RefPtr& cancellable, DBusServerFlags flags); + const Glib::ustring& guid, + const Glib::RefPtr& observer, + DBusServerFlags flags); public: + _WRAP_METHOD_DOCS_ONLY(g_dbus_server_new_sync) - static Glib::RefPtr create(const Glib::ustring& address, - const Glib::ustring& guid, const Glib::RefPtr& observer, - const Glib::RefPtr& cancellable = Glib::RefPtr(), + static Glib::RefPtr create_sync(const Glib::ustring& address, + const Glib::ustring& guid, + const Glib::RefPtr& observer, + const Glib::RefPtr& cancellable, + DBusServerFlags flags = Gio::DBUS_SERVER_FLAGS_NONE); + + /// Non-cancellable version of create_sync(). + static Glib::RefPtr create_sync(const Glib::ustring& address, + const Glib::ustring& guid, + const Glib::RefPtr& observer, DBusServerFlags flags = Gio::DBUS_SERVER_FLAGS_NONE); _WRAP_METHOD(void start(), g_dbus_server_start) -- cgit v1.2.1