![]() |
![]() |
![]() |
Zeitgeist Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define ZEITGEIST_TYPE_SUBJECT GVariant * zeitgeist_subject_to_variant (ZeitgeistSubject *self
); gboolean zeitgeist_subject_matches_template (ZeitgeistSubject *self
,ZeitgeistSubject *template_subject
); ZeitgeistSubject * zeitgeist_subject_new_full (const gchar *uri
,const gchar *interpretation
,const gchar *manifestation
,const gchar *mimetype
,const gchar *origin
,const gchar *text
,const gchar *storage
); ZeitgeistSubject * zeitgeist_subject_new_move_event (const gchar *source_uri
,const gchar *source_origin
,const gchar *destination_uri
,const gchar *destination_origin
,const gchar *interpretation
,const gchar *manifestation
,const gchar *mimetype
,const gchar *text
,const gchar *storage
); ZeitgeistSubject * zeitgeist_subject_new_from_variant (GVariant *subject_variant
,GError **error
); ZeitgeistSubject * zeitgeist_subject_new (void
); const gchar * zeitgeist_subject_get_uri (ZeitgeistSubject *self
); void zeitgeist_subject_set_uri (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_origin (ZeitgeistSubject *self
); void zeitgeist_subject_set_origin (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_text (ZeitgeistSubject *self
); void zeitgeist_subject_set_text (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_storage (ZeitgeistSubject *self
); void zeitgeist_subject_set_storage (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_current_uri (ZeitgeistSubject *self
); void zeitgeist_subject_set_current_uri (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_current_origin (ZeitgeistSubject *self
); void zeitgeist_subject_set_current_origin (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_mimetype (ZeitgeistSubject *self
); void zeitgeist_subject_set_mimetype (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_interpretation (ZeitgeistSubject *self
); void zeitgeist_subject_set_interpretation (ZeitgeistSubject *self
,const gchar *value
); const gchar * zeitgeist_subject_get_manifestation (ZeitgeistSubject *self
); void zeitgeist_subject_set_manifestation (ZeitgeistSubject *self
,const gchar *value
); struct ZeitgeistSubject; struct ZeitgeistSubjectClass;
"current-origin" gchar* : Read / Write "current-uri" gchar* : Read / Write "interpretation" gchar* : Read / Write "manifestation" gchar* : Read / Write "mimetype" gchar* : Read / Write "origin" gchar* : Read / Write "storage" gchar* : Read / Write "text" gchar* : Read / Write "uri" gchar* : Read / Write
In Zeitgeist terminology, a subject is something (a file, web page, person, conversation, etc.) that was somehow involved or affected by a ZeitgeistEvent.
#define ZEITGEIST_TYPE_SUBJECT (zeitgeist_subject_get_type ())
The type for ZeitgeistSubject.
GVariant * zeitgeist_subject_to_variant (ZeitgeistSubject *self
);
|
the ZeitgeistSubject instance |
gboolean zeitgeist_subject_matches_template (ZeitgeistSubject *self
,ZeitgeistSubject *template_subject
);
|
the ZeitgeistSubject instance |
|
. a . [in]
|
Returns : |
true if this Subject matches *subject_template*. Empty fields in the template are treated as wildcards. Interpretations and manifestations are also matched if they are children of the types specified in `subject_template`. |
ZeitgeistSubject * zeitgeist_subject_new_full (const gchar *uri
,const gchar *interpretation
,const gchar *manifestation
,const gchar *mimetype
,const gchar *origin
,const gchar *text
,const gchar *storage
);
Create a new Subject structure with predefined data
|
. The URI or URL of the subject. [in][allow-none] |
|
. The interpretation type of the subject. [in][allow-none] |
|
. The manifestation type of the subject. [in][allow-none] |
|
. The mimetype of the subject. Eg. <emphasis>text/plain</emphasis>. [in][allow-none] |
|
. The origin of the subject. [in][allow-none] |
|
. A small textual representation of the subject suitable for display. [in][allow-none] |
|
. String identifier for the storage medium the subject is on. [in][allow-none] |
Returns : |
A newly create instance. The returned subject will have a floating reference which will be consumed if you pass the event to any of the methods provided by this library (like adding it to an event). |
ZeitgeistSubject * zeitgeist_subject_new_move_event (const gchar *source_uri
,const gchar *source_origin
,const gchar *destination_uri
,const gchar *destination_origin
,const gchar *interpretation
,const gchar *manifestation
,const gchar *mimetype
,const gchar *text
,const gchar *storage
);
Create a new Subject structure to describe a move event
|
. The URI or URL of the subject. [in][allow-none] |
|
. The URI or URL of the subject. [in][allow-none] |
|
. The URI or URL of the subject. [in][allow-none] |
|
. The URI or URL of the subject. [in][allow-none] |
|
. The interpretation type of the subject. [in][allow-none] |
|
. The manifestation type of the subject. [in][allow-none] |
|
. The mimetype of the subject. Eg. <emphasis>text/plain</emphasis>. [in][allow-none] |
|
. A small textual representation of the subject suitable for display. [in][allow-none] |
|
. String identifier for the storage medium the subject is on. [in][allow-none] |
Returns : |
A newly create instance. The returned subject will have a floating reference which will be consumed if you pass the event to any of the methods provided by this library (like adding it to an event). |
ZeitgeistSubject * zeitgeist_subject_new_from_variant (GVariant *subject_variant
,GError **error
);
Create a new Subject structure from predefined GVariant data
|
. A GVariant decscribing the subject data. [in] |
|
location to store the error occuring, or NULL to ignore. [error-domains ZeitgeistDataModelError]
|
Returns : |
A newly create instance. The returned subject will have a floating reference which will be consumed if you pass the event to any of the methods provided by this library (like adding it to an event). |
const gchar * zeitgeist_subject_get_uri (ZeitgeistSubject *self
);
Get and return the current value of the "uri" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "uri" property |
void zeitgeist_subject_set_uri (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "uri" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "uri" property |
const gchar * zeitgeist_subject_get_origin (ZeitgeistSubject *self
);
Get and return the current value of the "origin" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "origin" property |
void zeitgeist_subject_set_origin (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "origin" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "origin" property |
const gchar * zeitgeist_subject_get_text (ZeitgeistSubject *self
);
Get and return the current value of the "text" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "text" property |
void zeitgeist_subject_set_text (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "text" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "text" property |
const gchar * zeitgeist_subject_get_storage (ZeitgeistSubject *self
);
Get and return the current value of the "storage" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "storage" property |
void zeitgeist_subject_set_storage (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "storage" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "storage" property |
const gchar * zeitgeist_subject_get_current_uri (ZeitgeistSubject *self
);
Get and return the current value of the "current-uri" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "current-uri" property |
void zeitgeist_subject_set_current_uri (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "current-uri" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "current-uri" property |
const gchar * zeitgeist_subject_get_current_origin
(ZeitgeistSubject *self
);
Get and return the current value of the "current-origin" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "current-origin" property |
void zeitgeist_subject_set_current_origin (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "current-origin" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "current-origin" property |
const gchar * zeitgeist_subject_get_mimetype (ZeitgeistSubject *self
);
Get and return the current value of the "mimetype" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "mimetype" property |
void zeitgeist_subject_set_mimetype (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "mimetype" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "mimetype" property |
const gchar * zeitgeist_subject_get_interpretation
(ZeitgeistSubject *self
);
Get and return the current value of the "interpretation" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "interpretation" property |
void zeitgeist_subject_set_interpretation (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "interpretation" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "interpretation" property |
const gchar * zeitgeist_subject_get_manifestation (ZeitgeistSubject *self
);
Get and return the current value of the "manifestation" property.
|
the ZeitgeistSubject instance to query |
Returns : |
the value of the "manifestation" property |
void zeitgeist_subject_set_manifestation (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "manifestation" property to value
.
|
the ZeitgeistSubject instance to modify |
|
the new value of the "manifestation" property |
struct ZeitgeistSubject;
Subject objects abstract Zeitgeist subjects
In Zeitgeist terminology, a subject is something (a file, web page, person, conversation, etc.) that was somehow involved or affected by a ZeitgeistEvent.
struct ZeitgeistSubjectClass { GObjectClass parent_class; };
The class structure for ZEITGEIST_TYPE_SUBJECT
. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
"current-origin"
property"current-origin" gchar* : Read / Write
current-origin.
Default value: NULL
"interpretation"
property"interpretation" gchar* : Read / Write
interpretation.
Default value: NULL
"manifestation"
property"manifestation" gchar* : Read / Write
manifestation.
Default value: NULL