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
TrackerEndpointDBus
makes the RDF data in a [class`Tracker`.SparqlConnection] accessible to other processes via DBus.This object is a [class`Tracker`.Endpoint] subclass that exports a [class`Tracker`.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
TrackerEndpointDBus
will manage a DBus object at the given path with theorg.freedesktop.Tracker3.Endpoint
interface, if no path is given the object will be at the default/org/freedesktop/Tracker3/Endpoint
location.Access to D-Bus endpoints may be managed via the [signal`Tracker`.EndpointDBus::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
TrackerEndpointDBus
may be created on a different thread/main context from the one that created [class`Tracker`.SparqlConnection].- classmethod new(sparql_connection, dbus_connection, object_path, cancellable)¶
- Parameters:
sparql_connection (
Tracker.SparqlConnection
) – The [class`Tracker`.SparqlConnection] being made publicdbus_connection (
Gio.DBusConnection
) –Gio.DBusConnection
to expose the DBus object overobject_path (
str
orNone
) – The object path to use, orNone
to use the defaultcancellable (
Gio.Cancellable
orNone
) – Optional [type`Gio`.Cancellable]
- Raises:
- Returns:
a
TrackerEndpointDBus
object.- 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.