DBusMessage - D-Bus Message. More...
#include <giomm/dbusmessage.h>
Public Member Functions | |
virtual | ~DBusMessage () |
GDBusMessage* | gobj () |
Provides access to the underlying C GObject. | |
const GDBusMessage* | gobj () const |
Provides access to the underlying C GObject. | |
GDBusMessage* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::ustring | print (guint indent) |
DBusMessageType | get_message_type () const |
void | set_message_type (DBusMessageType type) |
guint32 | get_serial () const |
void | set_serial (guint32 serial) |
DBusMessageFlags | get_flags () const |
void | set_flags (DBusMessageFlags flags) |
void | get_body (Glib::VariantBase&value) const |
Gets the body of a message. | |
void | set_body (const Glib::VariantBase& body) |
guint32 | get_num_unix_fds () const |
void | set_num_unix_fds (guint32 value) |
void | get_header (Glib::VariantBase&value, DBusMessageHeaderField header_field) const |
Gets a header field on the message. | |
void | set_header (DBusMessageHeaderField header_field, const Glib::VariantBase&value) |
Glib::ustring | get_destination () const |
void | set_destination (const Glib::ustring&value) |
Glib::ustring | get_error_name () const |
void | set_error_name (const Glib::ustring&value) |
Glib::ustring | get_interface () const |
void | set_interface (const Glib::ustring&value) |
Glib::ustring | get_member () const |
void | set_member (const Glib::ustring&value) |
Glib::ustring | get_path () const |
void | set_path (const Glib::ustring&value) |
guint32 | get_reply_serial () const |
void | set_reply_serial (guint32 value) |
Glib::ustring | get_sender () const |
void | set_sender (const Glib::ustring&value) |
Glib::ustring | get_signature () const |
void | set_signature (const Glib::ustring&value) |
Glib::ustring | get_arg0 () const |
Static Public Member Functions | |
static Glib::RefPtr< DBusMessage > | create () |
static Glib::RefPtr< DBusMessage > | create_signal (const Glib::ustring& path, const Glib::ustring& interface, const Glib::ustring& signal) |
static Glib::RefPtr< DBusMessage > | create_method_call (const Glib::ustring& name, const Glib::ustring& path, const Glib::ustring& interface, const Glib::ustring& method) |
static Glib::RefPtr< DBusMessage > | create_method_reply (const Glib::RefPtr< DBusMessage >& method_call_message) |
static Glib::RefPtr< DBusMessage > | create_method_error_literal (const Glib::RefPtr< const DBusMessage >& method_call_message, const Glib::ustring& error_name, const Glib::ustring& error_message) |
Protected Member Functions | |
DBusMessage () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gio::DBusMessage > | wrap (GDBusMessage* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
DBusMessage - D-Bus Message.
A type for representing D-Bus messages that can be sent or received on a DBusConnection.
virtual Gio::DBusMessage::~DBusMessage | ( | ) | [virtual] |
Gio::DBusMessage::DBusMessage | ( | ) | [protected] |
static Glib::RefPtr<DBusMessage> Gio::DBusMessage::create | ( | ) | [static] |
static Glib::RefPtr<DBusMessage> Gio::DBusMessage::create_method_call | ( | const Glib::ustring& | name, | |
const Glib::ustring& | path, | |||
const Glib::ustring& | interface, | |||
const Glib::ustring& | method | |||
) | [static] |
static Glib::RefPtr<DBusMessage> Gio::DBusMessage::create_method_error_literal | ( | const Glib::RefPtr< const DBusMessage >& | method_call_message, | |
const Glib::ustring& | error_name, | |||
const Glib::ustring& | error_message | |||
) | [static] |
static Glib::RefPtr<DBusMessage> Gio::DBusMessage::create_method_reply | ( | const Glib::RefPtr< DBusMessage >& | method_call_message | ) | [static] |
static Glib::RefPtr<DBusMessage> Gio::DBusMessage::create_signal | ( | const Glib::ustring& | path, | |
const Glib::ustring& | interface, | |||
const Glib::ustring& | signal | |||
) | [static] |
Glib::ustring Gio::DBusMessage::get_arg0 | ( | ) | const |
void Gio::DBusMessage::get_body | ( | Glib::VariantBase& | value | ) | const |
Gets the body of a message.
The body is returned in value.
value | Location in which to store the header. |
Glib::ustring Gio::DBusMessage::get_destination | ( | ) | const |
Glib::ustring Gio::DBusMessage::get_error_name | ( | ) | const |
DBusMessageFlags Gio::DBusMessage::get_flags | ( | ) | const |
void Gio::DBusMessage::get_header | ( | Glib::VariantBase& | value, | |
DBusMessageHeaderField | header_field | |||
) | const |
Gets a header field on the message.
The header is returned in value.
value | Location in which to store the header. | |
header_field | The header field type. |
Glib::ustring Gio::DBusMessage::get_interface | ( | ) | const |
Glib::ustring Gio::DBusMessage::get_member | ( | ) | const |
DBusMessageType Gio::DBusMessage::get_message_type | ( | ) | const |
guint32 Gio::DBusMessage::get_num_unix_fds | ( | ) | const |
Glib::ustring Gio::DBusMessage::get_path | ( | ) | const |
guint32 Gio::DBusMessage::get_reply_serial | ( | ) | const |
Glib::ustring Gio::DBusMessage::get_sender | ( | ) | const |
guint32 Gio::DBusMessage::get_serial | ( | ) | const |
Glib::ustring Gio::DBusMessage::get_signature | ( | ) | const |
const GDBusMessage* Gio::DBusMessage::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GDBusMessage* Gio::DBusMessage::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase.
GDBusMessage* Gio::DBusMessage::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::ustring Gio::DBusMessage::print | ( | guint | indent | ) |
void Gio::DBusMessage::set_body | ( | const Glib::VariantBase& | body | ) |
void Gio::DBusMessage::set_destination | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_error_name | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_flags | ( | DBusMessageFlags | flags | ) |
void Gio::DBusMessage::set_header | ( | DBusMessageHeaderField | header_field, | |
const Glib::VariantBase& | value | |||
) |
void Gio::DBusMessage::set_interface | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_member | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_message_type | ( | DBusMessageType | type | ) |
void Gio::DBusMessage::set_num_unix_fds | ( | guint32 | value | ) |
void Gio::DBusMessage::set_path | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_reply_serial | ( | guint32 | value | ) |
void Gio::DBusMessage::set_sender | ( | const Glib::ustring& | value | ) |
void Gio::DBusMessage::set_serial | ( | guint32 | serial | ) |
void Gio::DBusMessage::set_signature | ( | const Glib::ustring& | value | ) |
Glib::RefPtr< Gio::DBusMessage > wrap | ( | GDBusMessage * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |