[Nepomuk] [PATCHES] QDBusServiceWatcher and Strigi

Sebastian Trüg trueg at kde.org
Sat Apr 10 10:11:12 CEST 2010


Hi Vishesh,

I applied the strigi patch. The other two patches look perfect. Testing
them is rather simple:
Shut down the query service via:

qdbus org.kde.NepomukServer /servicemanager
org.kde.nepomuk.ServiceManager.stopService nepomukqueryservice

Then start it on a console to watch its output. Now simply use qdbus to
start a query:

qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice
org.kde.nepomuk.QueryService.query "test"

Then a new query folder should be created in the service and deleted
directly afterwards since qdbus is terminated.

As for testing the third patch: Run Dolphin and perform some random
query. Then test the cached queries in the search module via

qdbus org.kde.kded /modules/nepomuksearchmodule
org.kde.kio.NepomukSearchBridge.watchedSearchUrls

The list should contain your query.

Now do not close Dolphin properly (that would result in a KDirNotify
signal which is also caught in the module) but rather kill it with the
KILL signal or something. That should trigger the module to use your
code. Again use the call above to verify that the url is no longer in
the list.

I cannot test it atm since my Virtuoso setup is broken. :(

Thanks a lot for your work.
Cheers,
Sebastian

On 04/10/2010 12:07 AM, Vishesh Handa wrote:
> The first patch (strigi_icon.diff) simply adds the /Strigi/ icon as the
> window icon in the Strigi Status Widget. Prior to this patch it showed a
> Xorg icon.
> 
> The second and third patches* *implement the QDBusServiceWatcher class*
> *in /nepomuk/services/queryservice//* *&
> nepomuk/kioslaves/search/kdedmodule/ and* have not been tested. *That's
> cause I have no idea how to test them. So, please, *DO NOT* commit them.
> (Feel free to commit the Strigi patch :-)
> 
> If somebody knows, I would like to know how I can test them. Both the
> patches have a fairly similar design, and if one works so should the other.
> 
> Thanks
> 
> - Vishesh Handa
> 
> 
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk


More information about the Nepomuk mailing list