← Back to team overview

zeitgeist team mailing list archive

[Merge] lp:~seif/zeitgeist/bluebird-enums into lp:~zeitgeist/zeitgeist/bluebird

 

Seif Lotfy has proposed merging lp:~seif/zeitgeist/bluebird-enums into lp:~zeitgeist/zeitgeist/bluebird.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~seif/zeitgeist/bluebird-enums/+merge/69344

Add enums
-- 
https://code.launchpad.net/~seif/zeitgeist/bluebird-enums/+merge/69344
Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~seif/zeitgeist/bluebird-enums into lp:~zeitgeist/zeitgeist/bluebird.
=== modified file 'src/datamodel.vala'
--- src/datamodel.vala	2011-07-26 18:54:13 +0000
+++ src/datamodel.vala	2011-07-26 19:17:24 +0000
@@ -1,6 +1,7 @@
 /* zeitgeist-daemon.vala
  *
  * Copyright © 2011 Collabora Ltd.
+ *             By Seif Lotfy <seif@xxxxxxxxx>
  *             By Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
  *
  * This program is free software: you can redistribute it and/or modify
@@ -18,6 +19,40 @@
  *
  */
 
+public enum ResultType {
+	MostRecentEvents, //0, All events with the most recent events first
+	LeastRecentEvents, //1, All events with the oldest ones first"
+	MostRecentSubjects, //2, One event for each subject only, ordered with the most recent events first
+	LeastRecentSubjects, //3, One event for each subject only, ordered with oldest events first
+	MostPopularSubjects, //4, One event for each subject only, ordered by the popularity of the subject
+	LeastPopularSubjects, //5, One event for each subject only, ordered ascendingly by popularity of the subject
+	MostPopularActor, //6, The last event of each different actor, ordered by the popularity of the actor
+	LeastPopularActor, //7, The last event of each different actor, ordered ascendingly by the popularity of the actor
+	MostRecentActor, //8, The Actor that has been used to most recently
+	LeastRecentActor, //9, The Actor that has been used to least recently
+	MostRecentOrigin, //10, The last event of each different subject origin
+	LeastRecentOrigin, //11, The last event of each different subject origin, ordered by least recently used first
+	MostPopularOrigin, //12, The last event of each different subject origin, ordered by the popularity of the origins")
+	LeastPopularOrigin, //13, The last event of each different subject origin, ordered ascendingly by the popularity of the origin
+	OldestActor, //14, The first event of each different actor 
+	MostRecentSubjectInterpretation, //15, One event for each subject interpretation only, ordered with the most recent events first
+	LeastRecentSubjectInterpretation, //16, One event for each subject interpretation only, ordered with the least recent events first
+	MostPopularSubjectInterpretation, //17, One event for each subject interpretation only, ordered by the popularity of the subject interpretation
+	LeastPopularSubjectInterpretation, //18, One event for each subject interpretation only, ordered ascendingly by popularity of the subject interpretation
+	MostRecentMimeType, //19, One event for each mimetype only ordered with the most recent events first
+	LeastRecentMimeType, //20, One event for each mimetype only ordered with the least recent events first
+	MostPopularMimeType, //21, One event for each mimetype only ordered by the popularity of the mimetype
+	LeastPopularMimeType, //22, One event for each mimetype only ordered ascendingly by popularity of the mimetype
+	MostRecentCurrentUri, //23, One event for each subject only by current_uri instead of uri ordered with the most recent events first
+	LeastRecentCurrentUri, //24, One event for each subject only by current_uri instead of uri ordered with oldest events first
+	MostPopularCurrentUri, //25, One event for each subject only by current_uri instead of uri ordered by the popularity of the subject
+	LeastPopularCurrentUri, //26, One event for each subject only by current_uri instead of uri ordered ascendingly by popularity of the subject
+	MostRecentEventOrigin, //27, The last event of each different origin 
+	LeastRecentEventOrigin, //28, The last event of each different origin, ordered by least recently used first
+	MostPopularEventOrigin, //29, The last event of each different origin, ordered by the popularity of the origins
+	LeastPopularEventOrigin, //30, The last event of each different origin, ordered ascendingly by the popularity of the origin
+}
+
 public class Event : Object {
 
 	uint32?   id;
@@ -33,7 +68,6 @@
 	public Event.from_variant (Variant event_variant) {
 		stdout.printf("VAR: %u\n\n", event_variant.get_uint32());
 	}
-
 }
 
 public class Subject : Object {


Follow ups