[Nepomuk] Activities and desktop events - Results from the meeting

Sebastian Trüg trueg at kde.org
Tue Aug 3 17:57:27 CEST 2010


On 07/23/2010 10:38 AM, Ivan Čukić wrote:
>> by this score and combine that with the restrictions you list which can
>> all be expressed using a single Term.
> 
> Ok
> 
>> kstandardactions) and add the method and the enum to the
>> Nepomuk::Query::StandardQueries namespace.
> 
> Yet another Ok :)

please check the attached header and tell me if the API is acceptable. I
did not define special standard queries for "fav res of type X" since
that ca easily be done via:

Query q = standardQuery(MostImportantResourcesQuery);
q.setTerm( ResourceTypeTerm(type) && q.term() );

Also I am not quite sure what "for an application" would mean in a query...
- only resources that have an event related to the app
- only resources of supported mimetype or resource type

both do not really seem useful though as IMHO there would be too many
false-negatives.

Cheers,
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: standardqueries.h
Type: text/x-c
Size: 3688 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100803/b5bc1102/attachment.bin 


More information about the Plasma-devel mailing list