Gio.DBusObjectSkeleton¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.DBusObjectSkeleton(**kwargs)¶
- Bases:
- 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 withGObject.Object.unref
().- Return type:
Creates a new
Gio.DBusObjectSkeleton
.New in version 2.30.
- add_interface(interface_)[source]¶
- Parameters:
interface (
Gio.DBusInterfaceSkeleton
) – AGio.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.
- flush()[source]¶
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
) – AGio.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.
- do_authorize_method(interface_, invocation) virtual¶
- 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 signalinterface (
Gio.DBusInterfaceSkeleton
) – TheGio.DBusInterfaceSkeleton
that invocation is for.invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
- 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.