[glibmm] giomm: DBusMessage: Added create_*() methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: DBusMessage: Added create_*() methods.
- Date: Thu, 22 Jul 2010 08:40:11 +0000 (UTC)
commit 12bf44cedc7a75f3cc3dba2229bda198ca314e56
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 22 10:39:59 2010 +0200
giomm: DBusMessage: Added create_*() methods.
* gio/src/dbusmessage.hg: Added create_signal(), create_method_call() and
create_method_reply().
* tools/m4/convert_gio.m4: Added necessary conversion.
ChangeLog | 18 +++++++++++++-----
gio/src/dbusmessage.hg | 7 ++++++-
tools/m4/convert_gio.m4 | 1 +
3 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3530bf7..eaf0dd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,22 @@
+2010-07-22 Murray Cumming <murrayc murrayc com>
+
+ giomm: DBusMessage: Added create_*() methods.
+
+ * gio/src/dbusmessage.hg: Added create_signal(), create_method_call() and
+ create_method_reply().
+ * tools/m4/convert_gio.m4: Added necessary conversion.
+
2010-07-21 Murray Cumming <murrayc murrayc com>
Added DBusMessage and DBusConnection::send_message().
* gio/src/gio_methods.defs: Regenerated.
* gio/src/filelist.am:
- * gio/src/dbusmessage.[hg|ccg]: New wrapper for GMessage, with no methods
+ * gio/src/dbusmessage.[hg|ccg]: New wrapper for GMessage, with no methods
yet.
* gio/src/dbusconnection.hg: Added send_message().
* tools/m4/convert_gio.m4: Added necessary conversions.
- * gio/src/credentials.hg: Uncommented out some methods now that the .defs
+ * gio/src/credentials.hg: Uncommented out some methods now that the .defs
are correct.
* gio/src/socket.hg: Added get_credentials().
@@ -29,17 +37,17 @@
* gio/src/gio_unix_functions.defs:
* glib/src/glib_functions.defs:
* glib/src/gobject_functions.defs: Regenerate.
- * glib/src/gdbusconnection.[hg|ccg]: Made close() async, adding close_finish()
+ * glib/src/gdbusconnection.[hg|ccg]: Made close() async, adding close_finish()
and close_sync().
Added flush(), flush_finish() and flush_sync().
2010-06-29 Murray Cumming <murrayc murrayc com>
Added DBusConnection
-
+
* gio/src/gio_enums.defs: Regenerated with tools/enums.pl.
* gio/src/filelist.am:
- * gio/src/dbusconnection.[hg|ccg]: Added DBusConnection with just the
+ * gio/src/dbusconnection.[hg|ccg]: Added DBusConnection with just the
simplest methods.
I might put this in a GDBus namespace, and maybe even in a separate library.
diff --git a/gio/src/dbusmessage.hg b/gio/src/dbusmessage.hg
index d100481..7ab1ae0 100644
--- a/gio/src/dbusmessage.hg
+++ b/gio/src/dbusmessage.hg
@@ -41,8 +41,13 @@ public:
_WRAP_CREATE()
+ // TODO: We can't use _WRAP_CTOR() and _WRAP_CREATE() because the C functions do more than just call g_object_new():
+ // http://bugzilla.gnome.org/show_bug.cgi?id=624977
+ // TODO: Should these paramters be ustring or std::string?
+ _WRAP_METHOD(static Glib::RefPtr<DBusMessage> create_signal(const Glib::ustring& path, const Glib::ustring& interface, const Glib::ustring& signal), g_dbus_message_new_signal)
+ _WRAP_METHOD(static Glib::RefPtr<DBusMessage> create_method_call(const Glib::ustring& name, const Glib::ustring& path, const Glib::ustring& interface, const Glib::ustring& method), g_dbus_message_new_method_call)
+ _WRAP_METHOD(static Glib::RefPtr<DBusMessage> create_method_reply(const Glib::RefPtr<DBusMessage>& method_call_message), g_dbus_message_new_method_reply)
};
} // namespace Gio
-
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index 006258e..7d0266b 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -55,6 +55,7 @@ _CONVERSION(`GCredentials*',`Glib::RefPtr<Credentials>',`Glib::wrap($3)')
_CONVERSION(`GCredentials*',`Glib::RefPtr<const Credentials>',`Glib::wrap($3)')
_CONVERSION(`const Glib::RefPtr<DBusMessage>&',`GDBusMessage*',__CONVERT_REFPTR_TO_P)
+_CONVERSION(`GDBusMessage*',`Glib::RefPtr<DBusMessage>',`Glib::wrap($3)')
# DesktopAppInfo
_CONVERSION(`GDesktopAppInfo*', `Glib::RefPtr<DesktopAppInfo>', `Glib::wrap($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]