[Kde-pim] How to create a virtual/search folder programmatically for address books?

Peter Grasch grasch at simon-listens.org
Tue Feb 28 15:59:34 GMT 2012


Am Dienstag, 28. Februar 2012, 15:45:46 schrieb Shaheed Haque:
> Hi all,
> 
> Can some kind soul point out any docs (or code) that creates  a
> virtual/search folder programmatically?

simontouch does that to display mails of a given user (mail address):

https://projects.kde.org/projects/playground/accessibility/simon-
tools/repository/revisions/master/entry/simon-touch/communicationcentral.cpp
(have a look at messageCollectionSearchJobFinished())

This creates persistent search folders that will be automatically updated.

The code is more/less reverse engineered out of mailcommons SearchRule / 
SearchPattern so all credit goes to those guys of course.

Best regards,
Peter
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list