![]() |
![]() |
![]() |
Tracker Client Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <libtracker-client/tracker-client.h> #define TRACKER_DBUS_SERVICE #define TRACKER_DBUS_OBJECT #define TRACKER_DBUS_INTERFACE_RESOURCES #define TRACKER_DBUS_INTERFACE_STATISTICS TrackerClient; TrackerClientClass; enum TrackerClientFlags; TrackerClient * tracker_client_new (TrackerClientFlags flags
,gint timeout
);
"enable-warnings" gboolean : Read / Write / Construct "timeout" gint : Read / Write / Construct
This API is for applications which want to integrate with Tracker either by storing their data or by querying it. They are also not limited to their application's data. Other data mined by other applications is also available in some cases.
#define TRACKER_DBUS_INTERFACE_RESOURCES "org.freedesktop.Tracker1.Resources"
#define TRACKER_DBUS_INTERFACE_STATISTICS "org.freedesktop.Tracker1.Statistics"
typedef enum { TRACKER_CLIENT_ENABLE_WARNINGS = 1 << 0 } TrackerClientFlags;
TrackerClient * tracker_client_new (TrackerClientFlags flags
,gint timeout
);
Creates a connection over D-Bus to the Tracker store for doing data querying and inserting.
The timeout
is only used if it is > 0. If it is, then it is used
with dbus_g_proxy_set_default_timeout()
.
|
This can be one or more combinations of TrackerClientFlags |
|
a gint used for D-Bus call timeouts. |
Returns : |
the TrackerClient which should be freed with
g_object_unref() when finished with.
|