DBusObjectManagerServer
Added in version 2.30.
Superclasses: Object
Implemented Interfaces: DBusObjectManager
- Constructors:
DBusObjectManagerServer(**properties)
new(object_path:str) -> Gio.DBusObjectManagerServer
Constructors
- class DBusObjectManagerServer
- classmethod new(object_path: str) DBusObjectManagerServer
Creates a new
DBusObjectManagerServer
object.The returned server isn’t yet exported on any connection. To do so, use
set_connection()
. Normally you want to export all of your objects before doing so to avoid InterfacesAdded signals being emitted.Added in version 2.30.
- Parameters:
object_path – The object path to export the manager object at.
Methods
- class DBusObjectManagerServer
- export(object: DBusObjectSkeleton) None
Exports
object
onmanager
.If there is already a
DBusObject
exported at the object path, then the old object is removed.The object path for
object
must be in the hierarchy rooted by the object path formanager
.Note that
manager
will take a reference onobject
for as long as it is exported.Added in version 2.30.
- Parameters:
object – A
DBusObjectSkeleton
.
- export_uniquely(object: DBusObjectSkeleton) None
Like
export()
but appends a string of the form _N (with N being a natural number) toobject
’s object path if an object with the given path already exists. As such, theDBusObjectProxy
:g-object-path property ofobject
may be modified.Added in version 2.30.
- Parameters:
object – An object.
- get_connection() DBusConnection | None
Gets the
DBusConnection
used bymanager
.Added in version 2.30.
- is_exported(object: DBusObjectSkeleton) bool
Returns whether
object
is currently exported onmanager
.Added in version 2.34.
- Parameters:
object – An object.
- set_connection(connection: DBusConnection | None = None) None
Exports all objects managed by
manager
onconnection
. Ifconnection
isNone
, stops exporting objects.- Parameters:
connection – A
DBusConnection
orNone
.
Properties
- class DBusObjectManagerServer
- props.connection: DBusConnection
The
DBusConnection
to export objects on.Added in version 2.30.