[glibmm] giomm: DBusMessage: Added several methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] giomm: DBusMessage: Added several methods.
- Date: Thu, 22 Jul 2010 09:54:10 +0000 (UTC)
commit e72781ad7be77919b019130c80d194c5ae7b0268
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 22 11:53:58 2010 +0200
giomm: DBusMessage: Added several methods.
* gio/src/dbusmessage.hg: Wrapped the simple functions.
* tools/m4/convert_gio.m4: Added necessary conversions.
ChangeLog | 7 +++++
gio/src/dbusmessage.hg | 58 +++++++++++++++++++++++++++++++++++++++++++++++
tools/m4/convert_gio.m4 | 3 +-
3 files changed, 67 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index eaf0dd1..3563c84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-07-22 Murray Cumming <murrayc murrayc com>
+ giomm: DBusMessage: Added several methods.
+
+ * gio/src/dbusmessage.hg: Wrapped the simple functions.
+ * tools/m4/convert_gio.m4: Added necessary conversions.
+
+2010-07-22 Murray Cumming <murrayc murrayc com>
+
giomm: DBusMessage: Added create_*() methods.
* gio/src/dbusmessage.hg: Added create_signal(), create_method_call() and
diff --git a/gio/src/dbusmessage.hg b/gio/src/dbusmessage.hg
index 7ab1ae0..49cedbe 100644
--- a/gio/src/dbusmessage.hg
+++ b/gio/src/dbusmessage.hg
@@ -25,6 +25,9 @@ _PINCLUDE(glibmm/private/object_p.h)
namespace Gio
{
+_WRAP_ENUM(DBusMessageType, GDBusMessageType, NO_GTYPE)
+_WRAP_ENUM(DBusMessageFlags, GDBusMessageFlags, NO_GTYPE)
+
/** TODO
*
* @newin{2,26}
@@ -47,6 +50,61 @@ public:
_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)
+
+ _WRAP_METHOD(Glib::ustring print(guint indent), g_dbus_message_print)
+
+ _WRAP_METHOD(DBusMessageType get_message_type() const, g_dbus_message_get_message_type)
+ _WRAP_METHOD(void set_message_type(DBusMessageType type), g_dbus_message_set_message_type)
+ _WRAP_METHOD(DBusMessageFlags get_flags() const, g_dbus_message_get_flags)
+ _WRAP_METHOD(void set_flags(DBusMessageFlags flags), g_dbus_message_set_flags)
+ _WRAP_METHOD(guint32 get_serial() const, g_dbus_message_get_serial)
+ _WRAP_METHOD(void set_serial(guint32 serial), g_dbus_message_set_serial)
+
+/* TODO:
+ _WRAP_METHOD(GVariant *g_dbus_message_get_header (
+ GDBusMessageHeaderField header_field);
+ _WRAP_METHOD(void g_dbus_message_set_header (
+ GDBusMessageHeaderField header_field,
+ GVariant *value);
+
+ _WRAP_METHOD(guchar *g_dbus_message_get_header_fields (), )
+ _WRAP_METHOD(GVariant *g_dbus_message_get_body (), )
+ _WRAP_METHOD(void g_dbus_message_set_body (
+ GVariant *body);
+
+ _WRAP_METHOD(GUnixFDList *g_dbus_message_get_unix_fd_list (), )
+ _WRAP_METHOD(void g_dbus_message_set_unix_fd_list (
+ GUnixFDList *fd_list);
+*/
+
+ _WRAP_METHOD(guint32 get_reply_serial() const, g_dbus_message_get_reply_serial)
+ _WRAP_METHOD(void set_reply_serial(guint32 value), g_dbus_message_set_reply_serial)
+
+ _WRAP_METHOD(Glib::ustring get_interface() const, g_dbus_message_get_interface)
+ _WRAP_METHOD(void set_interface(const Glib::ustring& value), g_dbus_message_set_interface)
+
+ _WRAP_METHOD(Glib::ustring get_member() const, g_dbus_message_get_member)
+ _WRAP_METHOD(void set_member(const Glib::ustring& value), g_dbus_message_set_member)
+
+ _WRAP_METHOD(Glib::ustring get_path() const, g_dbus_message_get_path)
+ _WRAP_METHOD(void set_path(const Glib::ustring& value), g_dbus_message_set_path)
+
+ _WRAP_METHOD(Glib::ustring get_sender() const, g_dbus_message_get_sender)
+ _WRAP_METHOD(void set_sender(const Glib::ustring& value), g_dbus_message_set_sender)
+
+ _WRAP_METHOD(Glib::ustring get_destination() const, g_dbus_message_get_destination)
+ _WRAP_METHOD(void set_destination(const Glib::ustring& value), g_dbus_message_set_destination)
+
+ _WRAP_METHOD(Glib::ustring get_error_name() const, g_dbus_message_get_error_name)
+ _WRAP_METHOD(void set_error_name(const Glib::ustring& value), g_dbus_message_set_error_name)
+
+ _WRAP_METHOD(Glib::ustring get_signature() const, g_dbus_message_get_signature)
+ _WRAP_METHOD(void set_signature(const Glib::ustring& value), g_dbus_message_set_signature)
+
+ _WRAP_METHOD(guint32 get_num_unix_fds(), g_dbus_message_get_num_unix_fds)
+ _WRAP_METHOD(void set_num_unix_fds(guint32 value), g_dbus_message_set_num_unix_fds)
+
+ _WRAP_METHOD(Glib::ustring get_arg0() const, g_dbus_message_get_arg0)
};
diff --git a/tools/m4/convert_gio.m4 b/tools/m4/convert_gio.m4
index 7d0266b..403b19d 100644
--- a/tools/m4/convert_gio.m4
+++ b/tools/m4/convert_gio.m4
@@ -27,7 +27,8 @@ _CONV_ENUM(G,SettingsBindFlags)
_CONV_ENUM(G,CredentialsType)
_CONV_ENUM(G,DBusCapabilityFlags)
_CONV_ENUM(G,DBusSendMessageFlags)
-
+_CONV_ENUM(G,DBusMessageType)
+_CONV_ENUM(G,DBusMessageFlags)
# AppInfo
_CONVERSION(`GAppInfo*',`Glib::RefPtr<AppInfo>',`Glib::wrap($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]