EBackend.DataFactory¶
- Subclasses:
 
Methods¶
- Inherited:
 EBackend.DBusServer (5), GObject.Object (37), EDataServer.Extensible (3), Gio.Initable (2)
- Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 EBackend.DBusServer (5), GObject.Object (7), Gio.Initable (1)
  | 
|
  | 
|
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
Override backend-per-process compile-time option  | 
||
r  | 
Data source registry  | 
||
r/w/co  | 
Whether the data factory supports Reload  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class EBackend.DataFactory(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Contains only private data that should be read and manipulated using the functions below.
New in version 3.4.
- backend_closed(backend)¶
 - Parameters:
 backend (
EBackend.Backend) –
- backend_closed_by_sender(backend, sender)¶
 - Parameters:
 backend (
EBackend.Backend) –sender (
str) –
- construct_path()¶
 - Returns:
 a newly allocated string, representing the object path for the D-Bus interface.
- Return type:
 
Returns a new and unique object path for a D-Bus interface based in the data object path prefix of the self
New in version 3.16.
- create_backend(backend_factory, source)¶
 - Parameters:
 backend_factory (
EBackend.BackendFactory) –source (
EDataServer.Source) –
- Returns:
 a newly-created
EBackend.Backend- Return type:
 
Used only when backend-per-process is off.
Free the returned pointer with
GObject.Object.unref(), if notNoneand no longer needed.
- get_registry()¶
 - Returns:
 - Return type:
 
Returns the
EDataServer.SourceRegistryowned by self.New in version 3.16.
- list_opened_backends()¶
 - Returns:
 - Return type:
 
Lists the currently opened backends.
The sources returned in the list are referenced for thread-safety. They must each be unreferenced with
GObject.Object.unref() when finished with them. Free the returnedGLib.SListitself with g_slist_free().An easy way to free the list properly in one step is as follows:
g_slist_free_full (list, g_object_unref);
- open_backend(backend, connection, cancellable)¶
 - Parameters:
 backend (
EBackend.Backend) –connection (
Gio.DBusConnection) –cancellable (
Gio.CancellableorNone) –
- Raises:
 - Return type:
 
- ref_backend_factory(backend_name, extension_name)¶
 - Parameters:
 - Returns:
 the
EBackend.BackendFactoryfor hash_key, orNone- Return type:
 
Returns the
EBackend.BackendFactoryfor “backend_name:extension_name", orNoneif no such factory is registered.The returned
EBackend.BackendFactoryis referenced for thread-safety. Unreference theEBackend.BackendFactorywithGObject.Object.unref() when finished with it.New in version 3.6.
- spawn_subprocess_backend(invocation, uid, extension_name, subprocess_path)¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) – aGio.DBusMethodInvocationuid (
str) – anEDataServer.SourceUIDextension_name (
str) – an extension namesubprocess_path (
str) – a path of an executable responsible for running the subprocess
Spawns a new subprocess for a backend type and returns the object path of the new subprocess to the client, in the way the client can talk directly to the running backend. If the backend already has a subprocess running, the used object path is returned to the client.
New in version 3.16.
- do_complete_open(invocation, object_path, bus_name, extension_name) virtual¶
 - Parameters:
 invocation (
Gio.DBusMethodInvocation) –object_path (
str) –bus_name (
str) –extension_name (
str) –
- do_create_backend(backend_factory, source) virtual¶
 - Parameters:
 backend_factory (
EBackend.BackendFactory) –source (
EDataServer.Source) –
- Returns:
 a newly-created
EBackend.Backend- Return type:
 
Used only when backend-per-process is off.
Free the returned pointer with
GObject.Object.unref(), if notNoneand no longer needed.
- do_open_backend(backend, connection, cancellable) virtual¶
 - Parameters:
 backend (
EBackend.Backend) –connection (
Gio.DBusConnection) –cancellable (
Gio.CancellableorNone) –
- Return type:
 
Property Details¶
- EBackend.DataFactory.props.backend_per_process¶
 - Name:
 backend-per-process- Type:
 - Default Value:
 -1- Flags:
 
Override backend-per-process compile-time option
- EBackend.DataFactory.props.registry¶
 - Name:
 registry- Type:
 - Default Value:
 - Flags:
 
Data source registry