Akonadi
agentsearchinterface.cpp
26 QDBusConnection::sessionBus().registerObject(QStringLiteral("/Search"), this, QDBusConnection::ExportAdaptors);
38 QDBusMessage msg = iface.call(QStringLiteral("registerInstance"), dynamic_cast<AgentBase *>(q)->identifier());
42 void AgentSearchInterfacePrivate::addSearch(const QString &query, const QString &queryLanguage, quint64 resultCollectionId)
52 void AgentSearchInterfacePrivate::search(const QByteArray &searchId, const QString &query, quint64 collectionId)
57 auto fetchJob = new CollectionFetchJob(Collection(mCollectionId), CollectionFetchJob::Base, this);
68 new SearchResultJob(fetchJob->property("searchId").toByteArray(), Collection(mCollectionId), this);
73 qCDebug(AKONADIAGENTBASE_LOG) << "Server requested search in invalid collection, or collection was removed in the meanwhile";
75 new SearchResultJob(fetchJob->property("searchId").toByteArray(), Collection(mCollectionId), this);
void finished(KJob *job)
An interface for agents (or resources) that support searching in their backend.
Definition: agentsearchinterface.h:30
singleShot
virtual ~AgentSearchInterface()
Destroys the agent search interface.
static QString serviceName(ServiceType serviceType)
Returns the namespaced D-Bus service name for serviceType.
Definition: servermanager.cpp:335
QByteArray number(int n, int base)
bool registerObject(const QString &path, QObject *object, QDBusConnection::RegisterOptions options)
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:39
QDBusConnection sessionBus()
void reserve(int size)
ExportAdaptors
int size() const const
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:52:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.