Top |
char * | current-origin | Read / Write |
char * | current-uri | Read / Write |
char * | interpretation | Read / Write |
char * | manifestation | Read / Write |
char * | mimetype | Read / Write |
char * | origin | Read / Write |
char * | storage | Read / Write |
char * | text | Read / Write |
char * | uri | Read / Write |
#define | ZEITGEIST_TYPE_SUBJECT |
struct | ZeitgeistSubject |
struct | ZeitgeistSubjectClass |
In Zeitgeist terminology, a subject is something (a file, web page, person, conversation, etc.) that was somehow involved or affected by a ZeitgeistEvent.
gboolean zeitgeist_subject_matches_template (ZeitgeistSubject *self
,ZeitgeistSubject *template_subject
);
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
uri |
. The URI or URL of the subject . |
[in][allow-none] |
interpretation |
. The interpretation type of the subject. . |
[in][allow-none] |
manifestation |
. The manifestation type of the subject. . |
[in][allow-none] |
mimetype |
. The mimetype of the subject. Eg. <emphasis>text/plain</emphasis> . |
[in][allow-none] |
origin |
. The origin of the subject. . |
[in][allow-none] |
text |
. A small textual representation of the subject suitable for display . |
[in][allow-none] |
storage |
. String identifier for the storage medium the subject is on. . |
[in][allow-none] |
A newly create zeitgeist_subject_new()
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
source_uri |
. The URI or URL of the subject . |
[in][allow-none] |
source_origin |
. The URI or URL of the subject . |
[in][allow-none] |
destination_uri |
. The URI or URL of the subject . |
[in][allow-none] |
destination_origin |
. The URI or URL of the subject . |
[in][allow-none] |
interpretation |
. The interpretation type of the subject. . |
[in][allow-none] |
manifestation |
. The manifestation type of the subject. . |
[in][allow-none] |
mimetype |
. The mimetype of the subject. Eg. <emphasis>text/plain</emphasis> . |
[in][allow-none] |
text |
. A small textual representation of the subject suitable for display . |
[in][allow-none] |
storage |
. String identifier for the storage medium the subject is on. . |
[in][allow-none] |
A newly create zeitgeist_subject_new()
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 newly create zeitgeist_subject_new()
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.
void zeitgeist_subject_set_uri (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "uri" property to value
.
const gchar *
zeitgeist_subject_get_origin (ZeitgeistSubject *self
);
Get and return the current value of the "origin" property.
void zeitgeist_subject_set_origin (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "origin" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_text (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "text" property to value
.
const gchar *
zeitgeist_subject_get_storage (ZeitgeistSubject *self
);
Get and return the current value of the "storage" property.
void zeitgeist_subject_set_storage (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "storage" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_current_uri (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "current-uri" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_current_origin (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "current-origin" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_mimetype (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "mimetype" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_interpretation (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "interpretation" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
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.
void zeitgeist_subject_set_manifestation (ZeitgeistSubject *self
,const gchar *value
);
Set the value of the "manifestation" property to value
.
self |
the ZeitgeistSubject instance to modify |
|
value |
the new value of the "manifestation" property |
#define ZEITGEIST_TYPE_SUBJECT (zeitgeist_subject_get_type ())
The type for ZeitgeistSubject.
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.
“current-origin”
property “current-origin” char *
current-origin.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“current-uri”
property “current-uri” char *
current-uri.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“interpretation”
property “interpretation” char *
interpretation.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“manifestation”
property “manifestation” char *
manifestation.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“mimetype”
property “mimetype” char *
mimetype.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“origin”
property “origin” char *
origin.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“storage”
property “storage” char *
storage.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL
“text”
property “text” char *
text.
Owner: ZeitgeistSubject
Flags: Read / Write
Default value: NULL