One way which just came into my mind to make things easier to understand
is to use a flag system, like

MostRecent = 0x01
LeastRecent = 0x02
MostPopular = 0x04
LeastPopular = 0x08
Events = 0x0100
Subjects = 0x0200
Actor = 0x0400

This way the ResultTypes we have right now can be written as

MostRecentEvents => MostRecent | Events
LeastRecentSubjects => LeastRecent | Subjects

And when we feel like adding a new `target` like Interpretation or
Manifestation all we have to do is to add two new values

Interpretation = 0x0800
Manifestation = 0x01000

Support more ResultType
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: New

Bug description:
I am in discussion with the Software Center team and it seems like they are 
growing fond of Zeitgeist.
There is a feature in their queue that they would like to implement and where 
Zeitgeist can make it happen:
- Software Center wants to suggest applications to be installed based on the 
Most or Recently Used Subject Interpretations and/or mimetypes.
Currently I plan to call all events within a specific timeperiod and sort 
internally but it would be more helpful to have this info provided by Zeitgeist.

So long story short I suggest 2 new ResultTypes:
1) MostPopular/MostRecent/LeastPopular/LeastRecent Interpretation
2) MostPopular/MostRecent/LeastPopular/LeastRecent Mimetype

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to