DBusMethodInvocation
Object Hierarchy:
GLib.DBusMethodInvocation
GLib.DBusMethodInvocation
GLib.DBusMethodInvocation
GLib.Object
GLib.Object
GLib.Object->GLib.DBusMethodInvocation
Description:
[ CCode ( type_id = "g_dbus_method_invocation_get_type ()" ) ] [ Version ( since = "2.26" ) ]public class DBusMethodInvocation : Object
Instances of the DBusMethodInvocation class are used when handling D-Bus method calls.
It provides a way to asynchronously return results and errors.
The normal way to obtain a DBusMethodInvocation object is to receive it as an argument to the
handle_method_call
function in a DBusInterfaceVTable that was passed
to register_object .
Content:
Creation methods:
Methods:
public unowned DBusConnection get_connection ()
public unowned string get_interface_name ()
Gets the name of the D-Bus interface the method was invoked on.
public unowned DBusMessage get_message ()
public unowned DBusMethodInfo ? get_method_info ()
Gets information about the method call, if any.
public unowned string get_method_name ()
Gets the name of the method that was invoked.
public unowned string get_object_path ()
Gets the object path the method was invoked on.
public unowned Variant get_parameters ()
Gets the parameters of the method invocation.
public unowned DBusPropertyInfo ? get_property_info ()
Gets information about the property that this method call is for, if
any.
public unowned string get_sender ()
Gets the bus name that invoked the method.
public void * get_user_data ()
public void return_dbus_error (string error_name, string error_message)
Finishes handling a D-Bus method call by returning an error.
public void return_error (Quark domain, int code, string format, ...)
Finishes handling a D-Bus method call by returning an error.
public void return_error_literal (Quark domain, int code, string message)
public void return_error_valist (Quark domain, int code, string format, va_list var_args)
public void return_gerror (Error error)
Like
return_error but takes a Error
instead of the error domain, error code and message.
public void return_value (Variant ? parameters)
Finishes handling a D-Bus method call by returning parameters
.
public void return_value_with_unix_fd_list (Variant ? parameters, UnixFDList ? fd_list)
public void take_error (owned Error error)
Like
return_gerror but takes ownership of error
so
the caller does not need to free it.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref