enumerations

enumerations

Synopsis

gboolean            zeitgeist_result_type_is_sort_order_asc
                                                        (ZeitgeistResultType result_type);
enum                ZeitgeistResultType;
enum                ZeitgeistRelevantResultType;
enum                ZeitgeistStorageState;
enum                ZeitgeistDataModelError;

Object Hierarchy

  GEnum
   +----ZeitgeistResultType
  GEnum
   +----ZeitgeistRelevantResultType
  GEnum
   +----ZeitgeistStorageState

Description

Details

zeitgeist_result_type_is_sort_order_asc ()

gboolean            zeitgeist_result_type_is_sort_order_asc
                                                        (ZeitgeistResultType result_type);

result_type :

 . A ZeitgeistResultType. [in]

Returns :

true if the results for the given result_type will be sorted ascendantly by date, false if they'll be sorted descendingly.

enum ZeitgeistResultType

typedef enum {
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_EVENTS = 0,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_EVENTS = 1,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_SUBJECTS = 2,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_SUBJECTS = 3,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_SUBJECTS = 4,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_SUBJECTS = 5,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_ACTOR = 6,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_ACTOR = 7,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_ACTOR = 8,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_ACTOR = 9,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_ORIGIN = 10,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_ORIGIN = 11,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_ORIGIN = 12,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_ORIGIN = 13,
	ZEITGEIST_RESULT_TYPE_OLDEST_ACTOR = 14,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_SUBJECT_INTERPRETATION = 15,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_SUBJECT_INTERPRETATION = 16,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_SUBJECT_INTERPRETATION = 17,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_SUBJECT_INTERPRETATION = 18,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_MIMETYPE = 19,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_MIMETYPE = 20,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_MIMETYPE = 21,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_MIMETYPE = 22,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_CURRENT_URI = 23,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_CURRENT_URI = 24,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_CURRENT_URI = 25,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_CURRENT_URI = 26,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_EVENT_ORIGIN = 27,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_EVENT_ORIGIN = 28,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_EVENT_ORIGIN = 29,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_EVENT_ORIGIN = 30,
	ZEITGEIST_RESULT_TYPE_MOST_RECENT_CURRENT_ORIGIN = 31,
	ZEITGEIST_RESULT_TYPE_LEAST_RECENT_CURRENT_ORIGIN = 32,
	ZEITGEIST_RESULT_TYPE_MOST_POPULAR_CURRENT_ORIGIN = 33,
	ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_CURRENT_ORIGIN = 34,
	ZEITGEIST_RESULT_TYPE_RELEVANCY = 100
} ZeitgeistResultType;

ZeitgeistResultType

Used to control how the query results are grouped and sorted. See zeitgeist_log_find_events(), zeitgeist_log_find_event_ids(), and zeitgeist_index_search().

ZEITGEIST_RESULT_TYPE_MOST_RECENT_EVENTS

All events with the most recent events first

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_EVENTS

All events with the oldest

ZEITGEIST_RESULT_TYPE_MOST_RECENT_SUBJECTS

One event for each subject only, ordered with the most recent events first

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_SUBJECTS

One event for each subject, only, ordered with oldest events first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_SUBJECTS

One event for each subject only, ordered by the popularity of the subject

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_SUBJECTS

One event for each subject only, ordered ascendingly by popularity of the subject

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_ACTOR

The last event of each different actor ordered by the popularity of the actor

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_ACTOR

The last event of each different actor, ordered ascendingly by the popularity of the actor

ZEITGEIST_RESULT_TYPE_MOST_RECENT_ACTOR

The actor that has been used to most recently

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_ACTOR

The actor that has been used to least recently

ZEITGEIST_RESULT_TYPE_MOST_RECENT_ORIGIN

The last event of each different subject origin.

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_ORIGIN

The last event of each different subject origin, ordered by least recently used first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_ORIGIN

The last event of each different subject origin, ordered by the popularity of the origins

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_ORIGIN

The last event of each different subject origin, ordered ascendingly by the popularity of the origin

ZEITGEIST_RESULT_TYPE_OLDEST_ACTOR

The first event of each different actor

ZEITGEIST_RESULT_TYPE_MOST_RECENT_SUBJECT_INTERPRETATION

One event for each subject interpretation only, ordered with the most recent events first

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_SUBJECT_INTERPRETATION

One event for each subject interpretation only, ordered with the least recent events first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_SUBJECT_INTERPRETATION

One event for each subject interpretation only, ordered by the popularity of the subject interpretation

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_SUBJECT_INTERPRETATION

One event for each subject interpretation only, ordered ascendingly by popularity of the subject interpretation

ZEITGEIST_RESULT_TYPE_MOST_RECENT_MIMETYPE

One event for each mimetype only ordered with the most recent events first

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_MIMETYPE

One event for each mimetype only ordered with the least recent events first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_MIMETYPE

One event for each mimetype only ordered by the popularity of the mimetype

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_MIMETYPE

One event for each mimetype only ordered ascendingly by popularity of the mimetype

ZEITGEIST_RESULT_TYPE_MOST_RECENT_CURRENT_URI

One event for each subject only by current_uri instead of uri ordered with the most recent events first

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_CURRENT_URI

  • One event for each subject only by current_uri instead of uri ordered with oldest events first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_CURRENT_URI

One event for each subject only by current_uri instead of uri ordered by the popularity of the subject

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_CURRENT_URI

One event for each subject only by current_uri instead of uri ordered ascendingly by popularity of the subject

ZEITGEIST_RESULT_TYPE_MOST_RECENT_EVENT_ORIGIN

The last event of each different origin

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_EVENT_ORIGIN

The last event of each different origin, ordered by least recently used first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_EVENT_ORIGIN

The last event of each different origin ordered by the popularity of the origins

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_EVENT_ORIGIN

The last event of each different origin, ordered ascendingly by the popularity of the origin

ZEITGEIST_RESULT_TYPE_MOST_RECENT_CURRENT_ORIGIN

The last event of each different subject origin.

ZEITGEIST_RESULT_TYPE_LEAST_RECENT_CURRENT_ORIGIN

The last event of each different subject origin, ordered by least recently used first

ZEITGEIST_RESULT_TYPE_MOST_POPULAR_CURRENT_ORIGIN

The last event of each different subject origin, ordered by the popularity of the origins

ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_CURRENT_ORIGIN

The last event of each different subject origin, ordered ascendingly by the popularity of the origin

ZEITGEIST_RESULT_TYPE_RELEVANCY

Only allowed on zeitgeist_index_search(). Events are sorted by query relevancy

enum ZeitgeistRelevantResultType

typedef enum {
	ZEITGEIST_RELEVANT_RESULT_TYPE_RECENT = 0,
	ZEITGEIST_RELEVANT_RESULT_TYPE_RELATED = 1
} ZeitgeistRelevantResultType;

ZEITGEIST_RELEVANT_RESULT_TYPE_RECENT

All uris with the most recent uri first

ZEITGEIST_RELEVANT_RESULT_TYPE_RELATED

All uris with the most related one first

enum ZeitgeistStorageState

typedef enum {
	ZEITGEIST_STORAGE_STATE_NOT_AVAILABLE = 0,
	ZEITGEIST_STORAGE_STATE_AVAILABLE = 1,
	ZEITGEIST_STORAGE_STATE_ANY = 2
} ZeitgeistStorageState;

Enumeration class defining the possible values for the storage state of an event subject.

The StorageState enumeration can be used to control whether or not matched events must have their subjects available to the user. Fx. not including deleted files, files on unplugged USB drives, files available only when a network is available etc.

ZEITGEIST_STORAGE_STATE_NOT_AVAILABLE

The storage medium of the events subjects must not be available to the user

ZEITGEIST_STORAGE_STATE_AVAILABLE

The storage medium of all event subjects must be immediately available to the user

ZEITGEIST_STORAGE_STATE_ANY

The event subjects may or may not be available

enum ZeitgeistDataModelError

typedef enum {
	ZEITGEIST_DATA_MODEL_ERROR_INVALID_SIGNATURE,
	ZEITGEIST_DATA_MODEL_ERROR_NULL_EVENT,
	ZEITGEIST_DATA_MODEL_ERROR_TOO_MANY_RESULTS
} ZeitgeistDataModelError;

Errors which can be thrown when asynchronously querying for ZeitgeistEvents.

ZEITGEIST_DATA_MODEL_ERROR_INVALID_SIGNATURE

Signature sent over DBus is invalid.

ZEITGEIST_DATA_MODEL_ERROR_NULL_EVENT

ZeitgeistEvent is NULL.

ZEITGEIST_DATA_MODEL_ERROR_TOO_MANY_RESULTS

Query return too many ZeitgeistEvents.