EBackend.SubprocessFactory¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Data source registry |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EBackend.SubprocessFactory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.16.
- classmethod construct_path()¶
- Returns:
a newly allocated string, representing the object path for the D-Bus interface.
This function is here for a lack of a better place
- Return type:
Returns a new and unique object path for a D-Bus interface based in the data object path prefix of the subprocess_factory
New in version 3.16.
- call_backends_prepare_shutdown()¶
Calls
EBackend.Backend.prepare_shutdown
() for the list of used backends.New in version 3.16.
- get_backends_list()¶
- Returns:
A
GLib.List
that contains a list of used backends. The list should be freed by the caller using: g_list_free_full (backends,GObject.Object.unref
).- Return type:
Returns a list of used backends.
New in version 3.16.
- get_registry()¶
- Returns:
- Return type:
Returns the
EDataServer.SourceRegistry
owned by self.New in version 3.16.
- open_backend(connection, uid, backend_factory_type_name, module_filename, proxy, cancellable)¶
- Parameters:
connection (
Gio.DBusConnection
) – aGio.DBusConnection
uid (
str
) – UID of anEDataServer.Source
to openbackend_factory_type_name (
str
) – the name of the backend factory typemodule_filename (
str
) – the name (full-path) of the backend module to be loadedproxy (
Gio.DBusInterfaceSkeleton
) – aGio.DBusInterfaceSkeleton
, used to communicate to the subprocess backendcancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
- Raises:
- Returns:
a newly allocated string that represents the
EBackend.Backend
data D-Bus object path.- Return type:
Returns the
EBackend.Backend
data D-Bus object pathNew in version 3.16.
- ref_initable_backend(uid, backend_factory_type_name, module_filename, cancellable)¶
- Parameters:
uid (
str
) – UID of anEDataServer.Source
to openbackend_factory_type_name (
str
) – the name of the backend factory typemodule_filename (
str
) – the name (full-path) of the backend module to be loadedcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
an
EBackend.Backend
for source, orNone
- Return type:
Returns either a newly-created or existing
EBackend.Backend
forEDataServer.Source
. The returnedEBackend.Backend
is referenced for thread-safety and must be unreferenced withGObject.Object.unref
() when finished with it.If the newly-created backend implements the
Gio.Initable
interface, thenGio.Initable.init
() is also called on it using cancellable and error.The self retains a strong reference to backend.
If no suitable
EBackend.BackendFactory
exists, or if theEBackend.Backend
fails to initialize, the function sets error and returnsNone
.New in version 3.16.
- set_backend_callbacks(backend, proxy)¶
- Parameters:
backend (
EBackend.Backend
) – anEBackend.Backend
proxy (
Gio.DBusInterfaceSkeleton
) – aGio.DBusInterfaceSkeleton
, used to communicate to the subprocess backend
Installs a toggle reference on the backend, that can receive a signal to shutdown once all client connections are closed.
New in version 3.16.
- do_backend_closed(backend) virtual¶
- Parameters:
backend (
EBackend.Backend
) –
- do_backend_created(backend) virtual¶
- Parameters:
backend (
EBackend.Backend
) –
- do_open_data(backend, connection, data, cancellable) virtual¶
- Parameters:
backend (
EBackend.Backend
) –connection (
Gio.DBusConnection
) –cancellable (
Gio.Cancellable
orNone
) –
- Return type:
Property Details¶
- EBackend.SubprocessFactory.props.registry¶
- Name:
registry
- Type:
- Default Value:
- Flags:
Data source registry