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);
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition: collectionfetchjob.cpp:439
An interface for agents (or resources) that support searching in their backend.
Definition: agentsearchinterface.h:42
virtual ~AgentSearchInterface()
Destroys the agent search interface.
Definition: agentsearchinterface.cpp:101
static QString serviceName(ServiceType serviceType)
Returns the namespaced D-Bus service name for serviceType.
Definition: servermanager.cpp:307
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
virtual QString errorString() const
Returns the error string, if there has been an error, an empty string otherwise.
Definition: job.cpp:301
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval.
Definition: collectionfetchscope.cpp:138
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jan 29 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.