Top |
ZeitgeistDataSourceRegistryZeitgeistDataSourceRegistry — Query the Zeitgeist Data-Source Registry extension |
void | source-disconnected | Run Last |
void | source-enabled | Run Last |
void | source-registered | Run Last |
void | data-source-disconnected | Run Last |
void | data-source-enabled | Run Last |
void | data-source-registered | Run Last |
GInterface ╰── ZeitgeistRemoteRegistry GObject ╰── ZeitgeistQueuedProxyWrapper ╰── ZeitgeistDataSourceRegistry
The Zeitgeist engine maintains a publicly available list of recognized data-sources (components inserting information into Zeitgeist). ZeitgeistDataSourceRegistry is used to register new data sources, get information about them and gives the ability to enable or disable the data sources.
void zeitgeist_data_source_registry_get_data_sources (ZeitgeistDataSourceRegistry *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_data_source_registry_get_data_sources_finish()
self |
the ZeitgeistDataSourceRegistry instance |
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
GPtrArray * zeitgeist_data_source_registry_get_data_sources_finish (ZeitgeistDataSourceRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_data_source_registry_get_data_sources()
self |
the ZeitgeistDataSourceRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_data_source_registry_get_data_source_from_id (ZeitgeistDataSourceRegistry *self
,const gchar *unique_id
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_data_source_registry_get_data_source_from_id_finish()
self |
the ZeitgeistDataSourceRegistry instance |
|
unique_id |
|
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
ZeitgeistDataSource * zeitgeist_data_source_registry_get_data_source_from_id_finish (ZeitgeistDataSourceRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_data_source_registry_get_data_source_from_id()
self |
the ZeitgeistDataSourceRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_data_source_registry_register_data_source (ZeitgeistDataSourceRegistry *self
,ZeitgeistDataSource *data_source
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_data_source_registry_register_data_source_finish()
self |
the ZeitgeistDataSourceRegistry instance |
|
data_source |
|
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
gboolean zeitgeist_data_source_registry_register_data_source_finish (ZeitgeistDataSourceRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_data_source_registry_register_data_source()
self |
the ZeitgeistDataSourceRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_data_source_registry_set_data_source_enabled (ZeitgeistDataSourceRegistry *self
,const gchar *unique_id
,gboolean enabled
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_data_source_registry_set_data_source_enabled_finish()
self |
the ZeitgeistDataSourceRegistry instance |
|
unique_id |
|
|
enabled |
|
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
void zeitgeist_data_source_registry_set_data_source_enabled_finish (ZeitgeistDataSourceRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_data_source_registry_set_data_source_enabled()
self |
the ZeitgeistDataSourceRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
ZeitgeistDataSourceRegistry *
zeitgeist_data_source_registry_new (void
);
void zeitgeist_remote_registry_get_data_sources (ZeitgeistRemoteRegistry *self
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_remote_registry_get_data_sources_finish()
self |
the ZeitgeistRemoteRegistry instance |
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
GVariant * zeitgeist_remote_registry_get_data_sources_finish (ZeitgeistRemoteRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_remote_registry_get_data_sources()
self |
the ZeitgeistRemoteRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_remote_registry_register_data_source (ZeitgeistRemoteRegistry *self
,const gchar *unique_id
,const gchar *name
,const gchar *description
,GVariant *event_templates
,GCancellable *cancellable
,const char *sender
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_remote_registry_register_data_source_finish()
self |
the ZeitgeistRemoteRegistry instance |
|
unique_id |
|
|
name |
|
|
description |
|
|
event_templates |
|
|
cancellable |
|
|
sender |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
gboolean zeitgeist_remote_registry_register_data_source_finish (ZeitgeistRemoteRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_remote_registry_register_data_source()
self |
the ZeitgeistRemoteRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_remote_registry_set_data_source_enabled (ZeitgeistRemoteRegistry *self
,const gchar *unique_id
,gboolean enabled
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_remote_registry_set_data_source_enabled_finish()
self |
the ZeitgeistRemoteRegistry instance |
|
unique_id |
|
|
enabled |
|
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
void zeitgeist_remote_registry_set_data_source_enabled_finish (ZeitgeistRemoteRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_remote_registry_set_data_source_enabled()
self |
the ZeitgeistRemoteRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
void zeitgeist_remote_registry_get_data_source_from_id (ZeitgeistRemoteRegistry *self
,const gchar *unique_id
,GCancellable *cancellable
,GAsyncReadyCallback _callback_
,gpointer _user_data_
);
See also: zeitgeist_remote_registry_get_data_source_from_id_finish()
self |
the ZeitgeistRemoteRegistry instance |
|
unique_id |
|
|
cancellable |
|
|
_callback_ |
callback to call when the request is satisfied. |
[scope async] |
_user_data_ |
the data to pass to |
[closure] |
GVariant * zeitgeist_remote_registry_get_data_source_from_id_finish (ZeitgeistRemoteRegistry *self
,GAsyncResult *_res_
,GError **error
);
See also: zeitgeist_remote_registry_get_data_source_from_id()
self |
the ZeitgeistRemoteRegistry instance |
|
_res_ |
||
error |
location to store the error occurring, or |
#define ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY (zeitgeist_data_source_registry_get_type ())
The type for ZeitgeistDataSourceRegistry.
struct ZeitgeistDataSourceRegistry;
Query the Zeitgeist Data-Source Registry extension
The Zeitgeist engine maintains a publicly available list of recognized data-sources (components inserting information into Zeitgeist). ZeitgeistDataSourceRegistry is used to register new data sources, get information about them and gives the ability to enable or disable the data sources.
struct ZeitgeistDataSourceRegistryClass { ZeitgeistQueuedProxyWrapperClass parent_class; };
The class structure for ZEITGEIST_TYPE_DATA_SOURCE_REGISTRY
. All the fields in this structure are private and should never be accessed directly.
struct ZeitgeistRemoteRegistryIface { GTypeInterface parent_iface; void (*get_data_sources) (ZeitgeistRemoteRegistry* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); GVariant* (*get_data_sources_finish) (ZeitgeistRemoteRegistry* self, GAsyncResult* _res_, GError** error); void (*register_data_source) (ZeitgeistRemoteRegistry* self, const gchar* unique_id, const gchar* name, const gchar* description, GVariant* event_templates, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_); gboolean (*register_data_source_finish) (ZeitgeistRemoteRegistry* self, GAsyncResult* _res_, GError** error); void (*set_data_source_enabled) (ZeitgeistRemoteRegistry* self, const gchar* unique_id, gboolean enabled, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); void (*set_data_source_enabled_finish) (ZeitgeistRemoteRegistry* self, GAsyncResult* _res_, GError** error); void (*get_data_source_from_id) (ZeitgeistRemoteRegistry* self, const gchar* unique_id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_); GVariant* (*get_data_source_from_id_finish) (ZeitgeistRemoteRegistry* self, GAsyncResult* _res_, GError** error); };
Interface for creating ZeitgeistRemoteRegistry implementations.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
asynchronous finish function for |
||
virtual method called by |
||
asynchronous finish function for |
||
virtual method called by |
||
asynchronous finish function for |
||
virtual method called by |
||
asynchronous finish function for |
“source-disconnected”
signalvoid user_function (ZeitgeistDataSourceRegistry *data_source_registry, ZeitgeistDataSource *data_source, gpointer user_data)
data_source_registry |
the ZeitgeistDataSourceRegistry instance that received the signal |
|
data_source |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“source-enabled”
signalvoid user_function (ZeitgeistDataSourceRegistry *data_source_registry, char *unique_id, gboolean enabled, gpointer user_data)
data_source_registry |
the ZeitgeistDataSourceRegistry instance that received the signal |
|
unique_id |
|
|
enabled |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“source-registered”
signalvoid user_function (ZeitgeistDataSourceRegistry *data_source_registry, ZeitgeistDataSource *data_source, gpointer user_data)
data_source_registry |
the ZeitgeistDataSourceRegistry instance that received the signal |
|
data_source |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“data-source-disconnected”
signalvoid user_function (ZeitgeistRemoteRegistry *remote_registry, GVariant *data_source, gpointer user_data)
remote_registry |
the ZeitgeistRemoteRegistry instance that received the signal |
|
data_source |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“data-source-enabled”
signalvoid user_function (ZeitgeistRemoteRegistry *remote_registry, char *unique_id, gboolean enabled, gpointer user_data)
remote_registry |
the ZeitgeistRemoteRegistry instance that received the signal |
|
unique_id |
|
|
enabled |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“data-source-registered”
signalvoid user_function (ZeitgeistRemoteRegistry *remote_registry, GVariant *data_source, gpointer user_data)
remote_registry |
the ZeitgeistRemoteRegistry instance that received the signal |
|
data_source |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last