![]() |
![]() |
![]() |
Zeitgeist Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define ZEITGEIST_TYPE_DATA_SOURCE GVariant * zeitgeist_data_source_to_variant (ZeitgeistDataSource *self
); ZeitgeistDataSource * zeitgeist_data_source_new (void
); 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
); const gchar * zeitgeist_data_source_get_unique_id (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_unique_id (ZeitgeistDataSource *self
,const gchar *value
); const gchar * zeitgeist_data_source_get_name (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_name (ZeitgeistDataSource *self
,const gchar *value
); const gchar * zeitgeist_data_source_get_description (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_description (ZeitgeistDataSource *self
,const gchar *value
); GPtrArray * zeitgeist_data_source_get_event_templates (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_event_templates (ZeitgeistDataSource *self
,GPtrArray *value
); gboolean zeitgeist_data_source_get_enabled (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_enabled (ZeitgeistDataSource *self
,gboolean value
); gboolean zeitgeist_data_source_get_running (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_running (ZeitgeistDataSource *self
,gboolean value
); gint64 zeitgeist_data_source_get_timestamp (ZeitgeistDataSource *self
); void zeitgeist_data_source_set_timestamp (ZeitgeistDataSource *self
,gint64 value
); struct ZeitgeistDataSource; struct ZeitgeistDataSourceClass; GPtrArray * zeitgeist_data_sources_from_variant (GVariant *sources_variant
,GError **error
); GVariant * zeitgeist_data_sources_to_variant (GHashTable *sources
); #define ZEITGEIST_DATA_SOURCES_SIG_DATASOURCES
"description" gchar* : Read / Write "enabled" gboolean : Read / Write "event-templates" GPtrArray* : Read / Write "name" gchar* : Read / Write "running" gboolean : Read / Write "timestamp" gint64 : Read / Write "unique-id" gchar* : Read / Write
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.
#define ZEITGEIST_TYPE_DATA_SOURCE (zeitgeist_data_source_get_type ())
The type for ZeitgeistDataSource.
GVariant * zeitgeist_data_source_to_variant (ZeitgeistDataSource *self
);
|
the ZeitgeistDataSource instance |
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
);
|
|
|
|
|
location to store the error occuring, or NULL to ignore. [error-domains ZeitgeistDataModelError]
|
const gchar * zeitgeist_data_source_get_unique_id (ZeitgeistDataSource *self
);
Get and return the current value of the "unique-id" property.
|
the ZeitgeistDataSource instance to query |
Returns : |
the 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
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the 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
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the 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
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the 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
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the value of the "enabled" property |
void zeitgeist_data_source_set_enabled (ZeitgeistDataSource *self
,gboolean value
);
Set the value of the "enabled" property to value
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the value of the "running" property |
void zeitgeist_data_source_set_running (ZeitgeistDataSource *self
,gboolean value
);
Set the value of the "running" property to value
.
|
the ZeitgeistDataSource instance to modify |
|
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.
|
the ZeitgeistDataSource instance to query |
Returns : |
the value of the "timestamp" property |
void zeitgeist_data_source_set_timestamp (ZeitgeistDataSource *self
,gint64 value
);
Set the value of the "timestamp" property to value
.
|
the ZeitgeistDataSource instance to modify |
|
the new value of the "timestamp" property |
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.
GObjectClass |
the parent class structure |
GPtrArray * zeitgeist_data_sources_from_variant (GVariant *sources_variant
,GError **error
);
|
the (null) instance |
|
|
|
location to store the error occuring, or NULL to ignore. [error-domains ZeitgeistDataModelError]
|
GVariant * zeitgeist_data_sources_to_variant (GHashTable *sources
);
|
the (null) instance |
|