akonadi
agentsearchinterface.cpp
49 QDBusMessage msg = iface.call(QLatin1String("registerInstance"), dynamic_cast<AgentBase *>(q)->identifier());
52void 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:43
virtual void addSearch(const QString &query, const QString &queryLanguage, const Akonadi::Collection &resultCollection)=0
Adds a new search.
virtual void removeSearch(const Akonadi::Collection &resultCollection)=0
Removes a previously added search.
virtual ~AgentSearchInterface()
Destroys the agent search interface.
Definition agentsearchinterface.cpp:101
virtual void search(const QString &query, const Collection &collection)=0
Perform a search on remote storage and return results using SearchResultJob.
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:54
CollectionFetchScope & fetchScope()
Returns the collection fetch scope.
Definition collectionfetchjob.cpp:439
Collection::List collections() const
Returns the list of fetched collection.
Definition collectionfetchjob.cpp:169
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval.
Definition collectionfetchscope.cpp:138
virtual QString errorString() const
Returns the error string, if there has been an error, an empty string otherwise.
Definition job.cpp:301
static QString serviceName(ServiceType serviceType)
Returns the namespaced D-Bus service name for serviceType.
Definition servermanager.cpp:307
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.