GObject.Object
 Gio.DBusMessage
                Gio.DBusMessage
		   
| Import line: | Gio = imports.gi.Gio; | 
| GIR File: | Gio-2.0.gir | 
| C documentation: | GDBusMessage | 
| Class : | DBusMessage | 
| Extends: | GObject.Object | 
| Properties | Defined By | |
|---|---|---|
| 
				locked : gboolean 
                 read only  
                     
			 | Gio.DBusMessage | |
| Method / Constructor | Defined By | |
|---|---|---|
| 
			new  Gio.DBusMessage
				
				 (Object properties) 
			
				
			
		 Create a new Gio.DBusMessage 
			
			
			
				Create a new Gio.DBusMessage
			
			
				 
 | ||
| 
			new  Gio.DBusMessage.from_blob
				
				 (guint8 blob, guint32 blob_len, DBusCapabilityFlags capabilities) 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Create a new Gio.DBusMessage 
			
			
			
				Create a new Gio.DBusMessage
			
			
				 
 
 | ||
| 
			new  Gio.DBusMessage.method_call
				
				 (String name, String path, String interface_, String method) 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Create a new Gio.DBusMessage 
			
			
			
				Create a new Gio.DBusMessage
			
			
				 
 
 | ||
| Create a new Gio.DBusMessage 
			
			
			
				Create a new Gio.DBusMessage
			
			
				 
 
 | ||
| Utility function to calculate how many bytes are needed to completely deserialize the D-Bus message stored at blob. 
			
				Utility function to calculate how many bytes are needed to completely deserialize the D-Bus message stored at blob. determine the size). 
 
 | Gio.DBusMessage | |
| 
			copy
				
				 () 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Copies message. 
			
				Copies message. The copy is a deep copy and the returned GDBusMessage is completely identical except that it is guaranteed to not be locked. This operation can fail if e.g. message contains file descriptors and the per-process or system-wide open files limit is reached. g_object_unref(). 
 | Gio.DBusMessage | |
| 
			get_arg0
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience to get the first item in the body of message. 
			
				Convenience to get the first item in the body of message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_body
				
				 () 
			
				
					 : 
					GLib.Variant
					
				
			
		 Gets the body of a message. 
			
				Gets the body of a message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_byte_order
				
				 () 
			
				
					 : 
					Gio.DBusMessageByteOrder
					
				
			
		 Gets the byte order of message. 
			
				Gets the byte order of message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_destination
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_error_name
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_flags
				
				 () 
			
				
					 : 
					Gio.DBusMessageFlags
					
				
			
		 Gets the flags for message. 
			
				Gets the flags for message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_header
				
				 (DBusMessageHeaderField header_field) 
			
				
					 : 
					GLib.Variant
					
				
			
		 Gets a header field on message. 
			
				Gets a header field on message. otherwise. Do not free, it is owned by message. 
 
 | Gio.DBusMessage | |
| 
			get_header_fields
				
				 () 
			
				
					 : 
					guint8
					
				
			
		 Gets an array of all header fields on message that are set. 
			
				Gets an array of all header fields on message that are set. G_DBUS_MESSAGE_HEADER_FIELD_INVALID. Each element is a guchar. Free with g_free(). 
 | Gio.DBusMessage | |
| 
			get_interface
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_locked
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 Checks whether message is locked. 
			
				Checks whether message is locked. To monitor changes to this value, conncet to the GObject::notify signal to listen for changes on the GDBusMessage:locked property. 
 | Gio.DBusMessage | |
| 
			get_member
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_message_type
				
				 () 
			
				
					 : 
					Gio.DBusMessageType
					
				
			
		 Gets the type of message. 
			
				Gets the type of message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_num_unix_fds
				
				 () 
			
				
					 : 
					guint32
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_path
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_reply_serial
				
				 () 
			
				
					 : 
					guint32
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_sender
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_serial
				
				 () 
			
				
					 : 
					guint32
					
				
			
		 Gets the serial for message. 
			
				Gets the serial for message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_signature
				
				 () 
			
				
					 : 
					String
					
				
			
		 Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field. 
			
				Convenience getter for the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| 
			get_unix_fd_list
				
				 () 
			
				
					 : 
					Gio.UnixFDList
					
				
			
		 Gets the UNIX file descriptors associated with message, if any. 
			
				Gets the UNIX file descriptors associated with message, if any. This method is only available on UNIX. associated. Do not free, this object is owned by message. 
 | Gio.DBusMessage | |
| 
			lock
				
				 () 
			
				
					 : 
					none
					
				
			
		 If message is locked, does nothing. 
			
				If message is locked, does nothing. Otherwise locks the message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| Creates a new GDBusMessage that is an error reply to method_call_message. 
			
				Creates a new GDBusMessage that is an error reply to method_call_message.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			new_method_reply
				
				 () 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Creates a new GDBusMessage that is a reply to method_call_message. 
			
				Creates a new GDBusMessage that is a reply to method_call_message.
		    
				
			
			
			
			
			
			 
			
			
				 
 | Gio.DBusMessage | |
| Produces a human-readable multi-line description of message. 
			
				Produces a human-readable multi-line description of message. The contents of the description has no ABI guarantees, the contents and formatting is subject to change at any time. Typical output looks something like this: Headers: path -> objectpath '/org/gtk/GDBus/TestObject' interface -> 'org.gtk.GDBus.TestInterface' member -> 'GimmeStdout' destination -> ':1.146' UNIX File Descriptors: (none) or Headers: reply-serial -> uint32 4 destination -> ':1.159' sender -> ':1.146' num-unix-fds -> uint32 1 UNIX File Descriptors: 
 
 | Gio.DBusMessage | |
| 
			set_body
				
				 (Variant body) 
			
				
					 : 
					none
					
				
			
		 Sets the body message. 
			
				Sets the body message. As a side-effect the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field is set to the type string of body (or cleared if body is NULL). If body is floating, message assumes ownership of body. 
 
 | Gio.DBusMessage | |
| 
			set_byte_order
				
				 (DBusMessageByteOrder byte_order) 
			
				
					 : 
					none
					
				
			
		 Sets the byte order of message. 
			
				Sets the byte order of message.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_destination
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_error_name
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_flags
				
				 (DBusMessageFlags flags) 
			
				
					 : 
					none
					
				
			
		 Sets the flags to set on message. 
			
				Sets the flags to set on message.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_header
				
				 (DBusMessageHeaderField header_field, Variant value) 
			
				
					 : 
					none
					
				
			
		 Sets a header field on message. 
			
				Sets a header field on message. If value is floating, message assumes ownership of value. 
 
 | Gio.DBusMessage | |
| 
			set_interface
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_member
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_MEMBER header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_message_type
				
				 (DBusMessageType type) 
			
				
					 : 
					none
					
				
			
		 Sets message to be of type. 
			
				Sets message to be of type.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_num_unix_fds
				
				 (guint32 value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_path
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_PATH header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_reply_serial
				
				 (guint32 value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_sender
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SENDER header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_serial
				
				 (guint32 serial) 
			
				
					 : 
					none
					
				
			
		 Sets the serial for message. 
			
				Sets the serial for message.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_signature
				
				 (String value) 
			
				
					 : 
					none
					
				
			
		 Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field. 
			
				Convenience setter for the G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE header field.
		    
				
			
			
			
			
				 
 
 | Gio.DBusMessage | |
| 
			set_unix_fd_list
				
				 (UnixFDList fd_list) 
			
				
					 : 
					none
					
				
			
		 Sets the UNIX file descriptors associated with message. 
			
				Sets the UNIX file descriptors associated with message. As a side-effect the G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS header field is set to the number of fds in fd_list (or cleared if This method is only available on UNIX. 
 
 | Gio.DBusMessage | |
| Serializes message to a blob. 
			
				Serializes message to a blob. The byte order returned by g_dbus_message_get_byte_order() will be used. generated by message or NULL if error is set. Free with g_free(). 
 
 | Gio.DBusMessage | |
| 
			to_gerror
				
				 () 
			
				
					 : 
					gboolean
					
				
			
		 If message is not of type G_DBUS_MESSAGE_TYPE_ERROR does nothing and returns FALSE. 
			
				If message is not of type G_DBUS_MESSAGE_TYPE_ERROR does nothing and returns FALSE. Otherwise this method encodes the error in message as a GError using g_dbus_error_set_dbus_error() using the information in the G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME header field of message as well as the first string item in message's body. 
 | Gio.DBusMessage | |
| None | 
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| Gio.DBusConnection Method | Asynchronously sends message to the peer represented by connection. | 
| Gio.DBusConnection Method | 
			send_message_with_reply
				
				 (DBusMessage message, DBusSendMessageFlags flags, gint32 timeout_msec, guint32 out_serial, Cancellable cancellable, Function callback, void* user_data) 
			
				
					 : 
					none
					
				
			
		 Asynchronously sends message to the peer represented by connection. | 
| Gio.DBusConnection Method | 
			send_message_with_reply_finish
				
				 (AsyncResult res) 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Finishes an operation started with g_dbus_connection_send_message_with_reply(). | 
| Gio.DBusConnection Method | 
			send_message_with_reply_sync
				
				 (DBusMessage message, DBusSendMessageFlags flags, gint32 timeout_msec, guint32 out_serial, Cancellable cancellable) 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Synchronously sends message to the peer represented by connection and blocks the calling thread until a reply is received or the timeout is reached. | 
| Gio.DBusMethodInvocation Method | 
			get_message
				
				 () 
			
				
					 : 
					Gio.DBusMessage
					
				
			
		 Gets the GDBusMessage for the method invocation. |