Class

GioDBusMessage

since: 2.26

Description [src]

final class Gio.DBusMessage : GObject.Object
{
  /* No available fields */
}

A type for representing D-Bus messages that can be sent or received on a GDBusConnection.

Available since: 2.26

Ancestors

Constructors

g_dbus_message_new

Creates a new empty D-Bus message.

since: 2.26

g_dbus_message_new_from_blob

Creates a new D-Bus message from the data stored at blob.

since: 2.26

g_dbus_message_new_method_call

Creates a new D-Bus message for a method call.

since: 2.26

g_dbus_message_new_method_error

Creates a new D-Bus message that is an error reply to method_call_message.

since: 2.26

g_dbus_message_new_signal

Creates a new D-Bus message for a signal emission.

since: 2.26

Functions

g_dbus_message_bytes_needed

Utility function to calculate how many bytes are needed to completely deserialize the D-Bus message stored at blob.

since: 2.26

Instance methods

g_dbus_message_copy

Copies message with a deep copy.

since: 2.26

g_dbus_message_get_arg0

Convenience to get the first item in the body of message.

since: 2.26

g_dbus_message_get_arg0_path

Convenience to get the first item in the body of message.

since: 2.80

g_dbus_message_get_body

Gets the body of a message.

since: 2.26

g_dbus_message_get_byte_order

Gets the byte order of message.

g_dbus_message_get_destination

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field.

since: 2.26

g_dbus_message_get_error_name

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field.

since: 2.26

g_dbus_message_get_flags

Gets the flags for message.

since: 2.26

g_dbus_message_get_header

Gets a header field on message.

since: 2.26

g_dbus_message_get_header_fields

Gets an array of all header fields on message that are set.

since: 2.26

g_dbus_message_get_interface

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field.

since: 2.26

g_dbus_message_get_locked

Checks whether message is locked.

since: 2.26

g_dbus_message_get_member

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field.

since: 2.26

g_dbus_message_get_message_type

Gets the type of message.

since: 2.26

g_dbus_message_get_num_unix_fds

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field.

since: 2.26

g_dbus_message_get_path

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field.

since: 2.26

g_dbus_message_get_reply_serial

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field.

since: 2.26

g_dbus_message_get_sender

Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field.

since: 2.26

g_dbus_message_get_serial

Gets the serial for message.

since: 2.26

g_dbus_message_get_signature

Convenience getter for the [enum@Gio.DBusMessageHeaderField.SIGNATURE header field.

since: 2.26

g_dbus_message_get_unix_fd_list

Gets the UNIX file descriptors associated with message, if any.

since: 2.26

g_dbus_message_lock

Locks the message.

since: 2.26

g_dbus_message_new_method_error_literal

Creates a new D-Bus message that is an error reply to method_call_message.

since: 2.26

g_dbus_message_new_method_error_valist

Like g_dbus_message_new_method_error() but intended for language bindings.

since: 2.26

g_dbus_message_new_method_reply

Creates a new D-Bus message that is a reply to method_call_message.

since: 2.26

g_dbus_message_print

Produces a human-readable multi-line description of message.

since: 2.26

g_dbus_message_set_body

Sets the body of message.

since: 2.26

g_dbus_message_set_byte_order

Sets the byte order of message.

g_dbus_message_set_destination

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field.

since: 2.26

g_dbus_message_set_error_name

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field.

since: 2.26

g_dbus_message_set_flags

Sets the flags to set on message.

since: 2.26

g_dbus_message_set_header

Sets a header field on message.

since: 2.26

g_dbus_message_set_interface

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field.

since: 2.26

g_dbus_message_set_member

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field.

since: 2.26

g_dbus_message_set_message_type

Sets message to be of type.

since: 2.26

g_dbus_message_set_num_unix_fds

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field.

since: 2.26

g_dbus_message_set_path

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field.

since: 2.26

g_dbus_message_set_reply_serial

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field.

since: 2.26

g_dbus_message_set_sender

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field.

since: 2.26

g_dbus_message_set_serial

Sets the serial for message.

since: 2.26

g_dbus_message_set_signature

Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field.

since: 2.26

g_dbus_message_set_unix_fd_list

Sets the UNIX file descriptors associated with message.

since: 2.26

g_dbus_message_to_blob

Serializes message to a blob.

since: 2.26

g_dbus_message_to_gerror

Encodes the error in message as a GError.

since: 2.26

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gio.DBusMessage:locked
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.