Review Request: Add support for single Runner queries to krunner (part I: libplasma)

Jacopo De Simoi wilderkde at gmail.com
Tue Nov 17 18:51:47 CET 2009



> On 2009-11-12 20:39:42, Aaron Seigo wrote:
> > trunk/KDE/kdelibs/plasma/abstractrunner.h, line 406
> > <http://reviewboard.kde.org/r/2090/diff/1/?file=13849#file13849line406>
> >
> >     this should probably be setDefaultSyntax, since it doesn't really add another default syntax. also prevents the need to explain how it works in the apidox :)
> 
> Jacopo De Simoi wrote:
>     well, the correct name should indeed be
>     addSyntaxAndSetAsDefault, but I guess it's a little bit too much :)
> 
> Aaron Seigo wrote:
>     i think setDefaultSyntax implies it will become part of the syntax bunch; perhaps a note in the apidox that it isn't necessary to to also call addSyntax and a check to ensure it isn't already in the collection might be in order.
> 
> Jacopo De Simoi wrote:
>     agreed

Done, (+note in the apidox) 
However checking that the syntax is already in the collection is complicated by the fact that we need to define what the operator== means for a syntax;
besides, it should probably be added for addSyntax as well...


- Jacopo


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2090/#review3063
-----------------------------------------------------------


On 2009-11-07 20:16:02, Jacopo De Simoi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2090/
> -----------------------------------------------------------
> 
> (Updated 2009-11-07 20:16:02)
> 
> 
> Review request for Plasma, Aaron Seigo and Ryan Bitanga.
> 
> 
> Summary
> -------
> 
> This is the API needed by the new single Runner mode for krunner (more on usecases in part II:krunner) for kdelibs;
> 
> A runner can now optionally define a Default syntax; if this is the case, the runner will be exposed as single-runner-mode capable. 
> On request, the default syntax will be replaced to the empty query in RunnerManager::launchQuery.
> 
> The context is aware of the fact that we are in single runner query mode in case the runners need to change their behaviour accordingly (e.g. to _not_ discard queries with less than 3 chars)
> 
> 
> Diffs
> -----
> 
>   trunk/KDE/kdelibs/plasma/abstractrunner.h 1045930 
>   trunk/KDE/kdelibs/plasma/abstractrunner.cpp 1045930 
>   trunk/KDE/kdelibs/plasma/runnercontext.h 1045930 
>   trunk/KDE/kdelibs/plasma/runnercontext.cpp 1045930 
>   trunk/KDE/kdelibs/plasma/runnermanager.h 1045930 
>   trunk/KDE/kdelibs/plasma/runnermanager.cpp 1045930 
> 
> Diff: http://reviewboard.kde.org/r/2090/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jacopo
> 
>



More information about the Plasma-devel mailing list