[gnome-shell/zeitgeist: 21/22] Add all of Zeitgeist's enum values for ResultType and StorageState
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/zeitgeist: 21/22] Add all of Zeitgeist's enum values for ResultType and StorageState
- Date: Fri, 4 Mar 2011 02:58:01 +0000 (UTC)
commit cb6f3a08360dc56dd8442d28e18787fb0ad0e5d1
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 3 21:20:23 2011 -0500
Add all of Zeitgeist's enum values for ResultType and StorageState
These are copied from the Python code. It's unfortunate
that we can't introspect enum values from D-Bus.
Signed-off-by: Federico Mena Quintero <federico gnome org>
js/misc/zeitgeist.js | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/zeitgeist.js b/js/misc/zeitgeist.js
index 9fe5831..2709ac5 100644
--- a/js/misc/zeitgeist.js
+++ b/js/misc/zeitgeist.js
@@ -33,8 +33,38 @@ const MAX_RESULTS = 100;
const ResultType = {
// http://zeitgeist-project.com/docs/0.6/datamodel.html#resulttype
- // We currently only use MOST_POPULAR_SUBJECTS
- MOST_POPULAR_SUBJECTS: 4,
+ // It's unfortunate to have to define these by hand; maybe if D-Bus had a way to introspect enums...
+ MOST_RECENT_EVENTS : 0,
+ LEAST_RECENT_EVENTS : 1,
+ MOST_RECENT_SUBJECTS : 2,
+ LEAST_RECENT_SUBJECTS : 3,
+ MOST_POPULAR_SUBJECTS : 4,
+ LEAST_POPULAR_SUBJECTS : 5,
+ MOST_POPULAR_ACTOR : 6,
+ LEAST_POPULAR_ACTOR : 7,
+ MOST_RECENT_ACTOR : 8,
+ LEAST_RECENT_ACTOR : 9,
+ MOST_RECENT_ORIGIN : 10,
+ LEAST_RECENT_ORIGIN : 11,
+ MOST_POPULAR_ORIGIN : 12,
+ LEAST_POPULAR_ORIGIN : 13,
+ OLDEST_ACTOR : 14,
+ MOST_RECENT_SUBJECT_INTERPRETATION : 15,
+ LEAST_RECENT_SUBJECT_INTERPRETATION : 16,
+ MOST_POPULAR_SUBJECT_INTERPRETATION : 17,
+ LEAST_POPULAR_SUBJECT_INTERPRETATION : 18,
+ MOST_RECENT_MIME_TYPE : 19,
+ LEAST_RECENT_MIME_TYPE : 20,
+ MOST_POPULAR_MIME_TYPE : 21,
+ LEAST_POPULAR_MIME_TYPE : 22
+};
+
+const StorageState = {
+ // http://zeitgeist-project.com/docs/0.6/datamodel.html#storagestate
+ // As with ResultType, it would be nice if we could introspect enums through D-Bus
+ NOT_AVAILABLE : 0,
+ AVAILABLE : 1,
+ ANY : 2
};
/* Zeitgeist Subjects (files, people, etc.) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]