akonadi
agentsearchinterface.cpp
49 QDBusMessage msg = iface.call( QLatin1String( "registerInstance" ), dynamic_cast<AgentBase*>( q )->identifier() );
52 void AgentSearchInterfacePrivate::addSearch( const QString &query, const QString &queryLanguage, quint64 resultCollectionId )
69 CollectionFetchJob *fetchJob = new CollectionFetchJob( Collection( mCollectionId ), CollectionFetchJob::Base, this );
80 new SearchResultJob( fetchJob->property( "searchId" ).toByteArray(), Collection( mCollectionId ), this );
85 kDebug() << "Server requested search in invalid collection, or collection was removed in the meanwhile";
87 new SearchResultJob( fetchJob->property( "searchId" ).toByteArray(), Collection( mCollectionId ), this );
119 SearchResultJob *resultJob = new SearchResultJob( d->mSearchId, Collection( d->mCollectionId ), d );
137 SearchResultJob *resultJob = new SearchResultJob( d->mSearchId, Collection( d->mCollectionId ), d );
143 SearchResultJob *resultJob = new SearchResultJob( d->mSearchId, Collection( d->mCollectionId ), d );
An interface for agents (or resources) that support searching in their backend.
Definition: agentsearchinterface.h:42
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval. ...
Definition: collectionfetchscope.cpp:134
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:179
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition: collectionfetchjob.cpp:441
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
static QString serviceName(ServiceType serviceType)
Returns the namespaced D-Bus service name for serviceType.
Definition: servermanager.cpp:305
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Retrieve all ancestors, up to Collection::root()
Definition: collectionfetchscope.h:77
virtual ~AgentSearchInterface()
Destroys the agent search interface.
Definition: agentsearchinterface.cpp:101
virtual QString errorString() const
Returns the error string, if there has been an error, an empty string otherwise.
Definition: job.cpp:295
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:50 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:50 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.