Top |
#define | ZEITGEIST_TYPE_DATA_SOURCE |
struct | ZeitgeistDataSource |
struct | ZeitgeistDataSourceClass |
#define | ZEITGEIST_DATA_SOURCES_SIG_DATASOURCES |
ZeitgeistDataSource represents a data source used to insert events into Zeitgeist. The data sources are identified using the unique_id property, and when querying the data source registry you get other interesting information like timestamp of the last action of the data source, flag whether it is currently running etc.
GVariant *
zeitgeist_data_source_to_variant (ZeitgeistDataSource *self
);
ZeitgeistDataSource *
zeitgeist_data_source_new (void
);
ZeitgeistDataSource
Abstracts data sources used by the ZeitgeistDataSourceRegistry extension
ZeitgeistDataSource represents a data source used to insert events into Zeitgeist. The data sources are identified using the unique_id property, and when querying the data source registry you get other interesting information like timestamp of the last action of the data source, flag whether it is currently running etc.
ZeitgeistDataSource * zeitgeist_data_source_new_full (const gchar *unique_id
,const gchar *name
,const gchar *description
,GPtrArray *templates
);
ZeitgeistDataSource * zeitgeist_data_source_new_from_variant (GVariant *variant
,gboolean reset_running
,GError **error
);
variant |
|
|
reset_running |
|
|
error |
location to store the error occurring, or |
[error-domains ZeitgeistDataModelError] |
const gchar *
zeitgeist_data_source_get_unique_id (ZeitgeistDataSource *self
);
Get and return the current value of the "unique-id" property.
void zeitgeist_data_source_set_unique_id (ZeitgeistDataSource *self
,const gchar *value
);
Set the value of the "unique-id" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "unique-id" property |
const gchar *
zeitgeist_data_source_get_name (ZeitgeistDataSource *self
);
Get and return the current value of the "name" property.
void zeitgeist_data_source_set_name (ZeitgeistDataSource *self
,const gchar *value
);
Set the value of the "name" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "name" property |
const gchar *
zeitgeist_data_source_get_description (ZeitgeistDataSource *self
);
Get and return the current value of the "description" property.
void zeitgeist_data_source_set_description (ZeitgeistDataSource *self
,const gchar *value
);
Set the value of the "description" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "description" property |
GPtrArray *
zeitgeist_data_source_get_event_templates
(ZeitgeistDataSource *self
);
Get and return the current value of the "event-templates" property.
void zeitgeist_data_source_set_event_templates (ZeitgeistDataSource *self
,GPtrArray *value
);
Set the value of the "event-templates" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "event-templates" property |
gboolean
zeitgeist_data_source_get_enabled (ZeitgeistDataSource *self
);
Get and return the current value of the "enabled" property.
void zeitgeist_data_source_set_enabled (ZeitgeistDataSource *self
,gboolean value
);
Set the value of the "enabled" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "enabled" property |
gboolean
zeitgeist_data_source_get_running (ZeitgeistDataSource *self
);
Get and return the current value of the "running" property.
void zeitgeist_data_source_set_running (ZeitgeistDataSource *self
,gboolean value
);
Set the value of the "running" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "running" property |
gint64
zeitgeist_data_source_get_timestamp (ZeitgeistDataSource *self
);
Get and return the current value of the "timestamp" property.
void zeitgeist_data_source_set_timestamp (ZeitgeistDataSource *self
,gint64 value
);
Set the value of the "timestamp" property to value
.
self |
the ZeitgeistDataSource instance to modify |
|
value |
the new value of the "timestamp" property |
GPtrArray * zeitgeist_data_sources_from_variant (GVariant *sources_variant
,GError **error
);
self |
the (null) instance |
|
sources_variant |
|
|
error |
location to store the error occurring, or |
[error-domains ZeitgeistDataModelError] |
GVariant *
zeitgeist_data_sources_to_variant (GHashTable *sources
);
#define ZEITGEIST_TYPE_DATA_SOURCE (zeitgeist_data_source_get_type ())
The type for ZeitgeistDataSource.
struct ZeitgeistDataSourceClass { GObjectClass parent_class; };
The class structure for ZEITGEIST_TYPE_DATA_SOURCE
. All the fields in this structure are private and should never be accessed directly.
“description”
property “description” char *
description.
Owner: ZeitgeistDataSource
Flags: Read / Write
Default value: NULL
“enabled”
property“enabled” gboolean
enabled.
Owner: ZeitgeistDataSource
Flags: Read / Write
Default value: FALSE
“event-templates”
property“event-templates” GPtrArray *
event-templates.
Owner: ZeitgeistDataSource
Flags: Read / Write
“name”
property “name” char *
name.
Owner: ZeitgeistDataSource
Flags: Read / Write
Default value: NULL
“running”
property“running” gboolean
running.
Owner: ZeitgeistDataSource
Flags: Read / Write
Default value: FALSE
“timestamp”
property“timestamp” gint64
timestamp.
Owner: ZeitgeistDataSource
Flags: Read / Write
Default value: 0