Tracker.EndpointDBus¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
DBus connection |
||
r/w/co |
DBus object path |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class Tracker.EndpointDBus(**kwargs)¶
- Bases:
- Abstract:
No
TrackerEndpointDBusmakes the RDF data in a [class`SparqlConnection`] accessible to other processes via DBus.This object is a [class`Endpoint`] subclass that exports a [class`SparqlConnection`] so its RDF data is accessible to other processes through the given [class`Gio`.DBusConnection].
```c // This process already has org.example.Endpoint bus name endpoint =
Tracker.EndpointDBus.new(sparql_connection, dbus_connection,None,None, &error);// From another process connection =
Tracker.SparqlConnection.bus_new(“org.example.Endpoint”,None, dbus_connection, &error); ```The
TrackerEndpointDBuswill manage a DBus object at the given path with theorg.freedesktop.Tracker3.Endpointinterface, if no path is given the object will be at the default/org/freedesktop/Tracker3/Endpointlocation.Access to D-Bus endpoints may be managed via the [signal`EndpointDBus`:py:func:::block-call<Tracker.EndpointDBus.signals.block_call>] signal, the boolean return value expressing whether the request is blocked or not. Inspection of the requester address is left up to the user. The default value allows all requests independently of their provenance.
However, moderating access to D-Bus interfaces is typically not necessary in user code, as access to public D-Bus endpoints will be transparently managed through the Tracker portal service for applications sandboxed via XDG portals. These already have access to D-Bus SPARQL endpoints and their data naturally filtered as defined in the application manifest.
A
TrackerEndpointDBusmay be created on a different thread/main context from the one that created [class`SparqlConnection`].- classmethod new(sparql_connection, dbus_connection, object_path, cancellable)¶
- Parameters:
sparql_connection (
Tracker.SparqlConnection) – The [class`SparqlConnection`] being made publicdbus_connection (
Gio.DBusConnection) –Gio.DBusConnectionto expose the DBus object overobject_path (
strorNone) – The object path to use, orNoneto use the defaultcancellable (
Gio.CancellableorNone) – Optional [type`Gio`.Cancellable]
- Raises:
- Returns:
a
TrackerEndpointDBusobject.- Return type:
Registers a Tracker endpoint object at object_path on dbus_connection. The default object path is
/org/freedesktop/Tracker3/Endpoint.
Signal Details¶
- Tracker.EndpointDBus.signals.block_call(endpoint_d_bus, object)¶
- Signal Name:
block-call- Flags:
- Parameters:
endpoint_d_bus (
Tracker.EndpointDBus) – The object which received the signalobject (
str) –
- Return type:
Property Details¶
- Tracker.EndpointDBus.props.dbus_connection¶
- Name:
dbus-connection- Type:
- Default Value:
- Flags:
The [class`Gio`.DBusConnection] where the connection is proxied through.