[glibmm] giomm: DBusConnection: Added send_message_with_reply().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: DBusConnection: Added send_message_with_reply().
- Date: Wed, 28 Jul 2010 12:12:47 +0000 (UTC)
commit 58136eecfa1de199d094c73d0be33dae04c775b7
Author: Martin Braure de Calignon <braurede free fr>
Date: Wed Jul 28 14:12:10 2010 +0200
giomm: DBusConnection: Added send_message_with_reply().
* gio/src/dbusconnection.[hg|ccg]: Added send_message_with_reply()
and send_message_with_reply_finish().
ChangeLog | 7 +++++++
gio/src/dbusconnection.ccg | 13 +++++++++++++
gio/src/dbusconnection.hg | 6 ++++++
3 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 802929d..39caa4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-28 Martin Braure de Calignon <braurede free fr>
+
+ giomm: DBusConnection: Added send_message_with_reply().
+
+ * gio/src/dbusconnection.[hg|ccg]: Added send_message_with_reply()
+ and send_message_with_reply_finish().
+
2010-07-27 José Alburquerque <jaalburqu svn gnome org>
Add Gio::DBusMethodInvocation.
diff --git a/gio/src/dbusconnection.ccg b/gio/src/dbusconnection.ccg
index 5893ffd..60e01c0 100644
--- a/gio/src/dbusconnection.ccg
+++ b/gio/src/dbusconnection.ccg
@@ -88,4 +88,17 @@ void DBusConnection::flush_sync()
if(gerror)
::Glib::Error::throw_exception(gerror);
}
+
+void DBusConnection::send_message_with_reply(const Glib::RefPtr<DBusMessage>& message, int timeout_msec,const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot)
+{
+ SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
+ volatile guint32 out_serial;
+ g_dbus_connection_send_message_with_reply(gobj(), Glib::unwrap(message),
+ static_cast<GDBusSendMessageFlags>(message->get_flags()),
+ timeout_msec, &out_serial,
+ Glib::unwrap(cancellable), &SignalProxy_async_callback,
+ slot_copy);
+ message->set_serial(out_serial);
+}
+
} // namespace Gio
diff --git a/gio/src/dbusconnection.hg b/gio/src/dbusconnection.hg
index 316610f..77fa4ca 100644
--- a/gio/src/dbusconnection.hg
+++ b/gio/src/dbusconnection.hg
@@ -88,6 +88,12 @@ public:
#m4 _CONVERSION(`guint32*',`volatile guint32*',`($3)')
_WRAP_METHOD(bool send_message(const Glib::RefPtr<DBusMessage>& message, DBusSendMessageFlags flags, guint32* out_serial), g_dbus_connection_send_message, errthrow)
+ //TODO: Documentation.
+ _IGNORE(g_dbus_connection_send_message_with_reply)
+ void send_message_with_reply(const Glib::RefPtr<DBusMessage>& message, int timeout_msec, const Glib::RefPtr<Cancellable>& cancellable, const SlotAsyncReady& slot);
+
+ _WRAP_METHOD(Glib::RefPtr<DBusMessage> send_message_with_reply_finish(const Glib::RefPtr<AsyncResult>& result), g_dbus_connection_send_message_with_reply_finish, errthrow)
+
_WRAP_METHOD(void start_message_processing(), g_dbus_connection_start_message_processing)
_WRAP_METHOD(bool is_closed() const, g_dbus_connection_is_closed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]