diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2010-11-14 23:29:35 -0500 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2010-11-14 23:30:54 -0500 |
commit | 14eaf3223fa42bab37fc70112030f76b5f49e46c (patch) | |
tree | 8be6bd2c38d7133ee7dc30218259554214dbef1c /gio/src/dbusserver.hg | |
parent | 80a3a24529264df735b2eaf8414ffad072e0ad6f (diff) | |
download | glibmm-14eaf3223fa42bab37fc70112030f76b5f49e46c.tar.gz |
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.
Diffstat (limited to 'gio/src/dbusserver.hg')
-rw-r--r-- | gio/src/dbusserver.hg | 26 |
1 files changed, 21 insertions, 5 deletions
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<DBusAuthObserver>& observer, + const Glib::RefPtr<Cancellable>& cancellable, + DBusServerFlags flags); + DBusServer(const Glib::ustring& address, - const Glib::ustring& guid, const Glib::RefPtr<DBusAuthObserver>& observer, - const Glib::RefPtr<Cancellable>& cancellable, DBusServerFlags flags); + const Glib::ustring& guid, + const Glib::RefPtr<DBusAuthObserver>& observer, + DBusServerFlags flags); public: + _WRAP_METHOD_DOCS_ONLY(g_dbus_server_new_sync) - static Glib::RefPtr<DBusServer> create(const Glib::ustring& address, - const Glib::ustring& guid, const Glib::RefPtr<DBusAuthObserver>& observer, - const Glib::RefPtr<Cancellable>& cancellable = Glib::RefPtr<Cancellable>(), + static Glib::RefPtr<DBusServer> create_sync(const Glib::ustring& address, + const Glib::ustring& guid, + const Glib::RefPtr<DBusAuthObserver>& observer, + const Glib::RefPtr<Cancellable>& cancellable, + DBusServerFlags flags = Gio::DBUS_SERVER_FLAGS_NONE); + + /// Non-cancellable version of create_sync(). + static Glib::RefPtr<DBusServer> create_sync(const Glib::ustring& address, + const Glib::ustring& guid, + const Glib::RefPtr<DBusAuthObserver>& observer, DBusServerFlags flags = Gio::DBUS_SERVER_FLAGS_NONE); _WRAP_METHOD(void start(), g_dbus_server_start) |