Gio.DBusObjectSkeleton - Classes - Gio 2.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gio.DBusObject Gio.DBusObject GObject.GInterface->Gio.DBusObject GObject.Object GObject.Object Gio.DBusObjectSkeleton Gio.DBusObjectSkeleton GObject.Object->Gio.DBusObjectSkeleton Gio.DBusObject->Gio.DBusObjectSkeleton
Subclasses:
None
Methods¶
Inherited:
GObject.Object (37), Gio.DBusObject (3)
Structs:
class | new (object_path) |
---|---|
add_interface (interface_) | |
flush () | |
remove_interface (interface_) | |
remove_interface_by_name (interface_name) | |
set_object_path (object_path) |
Virtual Methods¶
Inherited:
GObject.Object (7), Gio.DBusObject (5)
do_authorize_method (interface_, invocation) |
---|
Properties¶
Name | Type | Flags | Short Description |
---|---|---|---|
g-object-path | str | r/w/c |
Signals¶
Inherited:
GObject.Object (1), Gio.DBusObject (2)
Name | Short Description |
---|---|
authorize-method | Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized. |
Fields¶
Inherited:
GObject.Object (1), Gio.DBusObject (2)
Name | Type | Access | Description |
---|---|---|---|
parent_instance | GObject.Object | r |
Class Details¶
class Gio.DBusObjectSkeleton(**kwargs)¶
Bases:
GObject.Object, Gio.DBusObject
Abstract:
No
Structure:
A GDBusObjectSkeleton
instance is essentially a group of D-Bus interfaces. The set of exported interfaces on the object may be dynamic and change at runtime.
This type is intended to be used with [iface`Gio`.DBusObjectManager].
New in version 2.30.
classmethod new(object_path)[source]¶
Parameters:
object_path (str) – An object path.
Returns:
A Gio.DBusObjectSkeleton. Free with GObject.Object.unref().
Return type:
Creates a new Gio.DBusObjectSkeleton.
New in version 2.30.
add_interface(interface_)[source]¶
Parameters:
interface (Gio.DBusInterfaceSkeleton) – A Gio.DBusInterfaceSkeleton.
Adds interface_ to self.
If self already contains a Gio.DBusInterfaceSkeleton with the same interface name, it is removed before interface_ is added.
Note that self takes its own reference on interface_ and holds it until removed.
New in version 2.30.
This method simply calls Gio.DBusInterfaceSkeleton.flush() on all interfaces belonging to self. See that method for when flushing is useful.
New in version 2.30.
remove_interface(interface_)[source]¶
Parameters:
interface (Gio.DBusInterfaceSkeleton) – A Gio.DBusInterfaceSkeleton.
Removes interface_ from self.
New in version 2.30.
remove_interface_by_name(interface_name)[source]¶
Parameters:
interface_name (str) – A D-Bus interface name.
Removes the Gio.DBusInterface with interface_name from self.
If no D-Bus interface of the given interface exists, this function does nothing.
New in version 2.30.
set_object_path(object_path)[source]¶
Parameters:
object_path (str) – A valid D-Bus object path.
Sets the object path for self.
New in version 2.30.
Parameters:
- interface (Gio.DBusInterfaceSkeleton) –
- invocation (Gio.DBusMethodInvocation) –
Return type:
Signal class handler for the Gio.DBusObjectSkeleton ::authorize-method signal.
Signal Details¶
Gio.DBusObjectSkeleton.signals.authorize_method(d_bus_object_skeleton, interface, invocation)¶
Signal Name:
authorize-method
Flags:
Parameters:
- d_bus_object_skeleton (Gio.DBusObjectSkeleton) – The object which received the signal
- interface (Gio.DBusInterfaceSkeleton) – The Gio.DBusInterfaceSkeleton that invocation is for.
- invocation (Gio.DBusMethodInvocation) – A Gio.DBusMethodInvocation.
Returns:
True if the call is authorized, False otherwise.
Return type:
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
This signal is like Gio.DBusInterfaceSkeleton'sGio.DBusInterfaceSkeleton ::g-authorize-method signal, except that it is for the enclosing object.
The default class handler just returns True.
New in version 2.30.
Property Details¶
Gio.DBusObjectSkeleton.props.g_object_path¶
Name:
g-object-path
Type:
Default Value:
Flags:
The object path where the object is exported.
New in version 2.30.