Review Request: Add new methods sync*Query, returning the results

Sebastian Trueg trueg at kde.org
Tue Apr 27 12:23:29 BST 2010


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

Ship it!


Other than the little formatting issue: please commit. And thanks for the work.


/trunk/KDE/kdelibs/nepomuk/query/queryserviceclient.h
<http://reviewboard.kde.org/r/3815/#comment4747>

    If you mark them as overloads you should put all the syncXXX methods in one block.


- Sebastian


On 2010-04-27 09:48:50, Dario Freddi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/3815/
> -----------------------------------------------------------
> 
> (Updated 2010-04-27 09:48:50)
> 
> 
> Review request for kdelibs and Sebastian Trueg.
> 
> 
> Summary
> -------
> 
> This patch adds a new method for each corresponding blocking query method which returns the list of the results instead of a boolean. The query result can still be monitored through bool *ok, in a similar fashion to what Qt does (for example, QString::toInt).
> 
> I also wrote a small test case for it, but then realized that queryservice can not be told to use a different model from the main one. If there's a way to do that, I'd happily add the test case as well :)
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/nepomuk/query/queryserviceclient.h 1119285 
>   /trunk/KDE/kdelibs/nepomuk/query/queryserviceclient.cpp 1119285 
>   /trunk/KDE/kdelibs/nepomuk/query/queryserviceclient_p.h PRE-CREATION 
> 
> Diff: http://reviewboard.kde.org/r/3815/diff
> 
> 
> Testing
> -------
> 
> Works(tm)
> 
> 
> Thanks,
> 
> Dario
> 
>





More information about the kde-core-devel mailing list