Akonadi
agentsearchinterface.cpp
26 QDBusConnection::sessionBus().registerObject(QStringLiteral("/Search"), this, QDBusConnection::ExportAdaptors);
38 QDBusMessage msg = iface.call(QStringLiteral("registerInstance"), dynamic_cast<AgentBase *>(q)->identifier());
42void AgentSearchInterfacePrivate::addSearch(const QString &query, const QString &queryLanguage, quint64 resultCollectionId)
52void 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);
126 qCWarning(AKONADIAGENTBASE_LOG) << "Search results must not have an open interval! Results will be incomplete.";
An interface for agents (or resources) that support searching in their backend.
Definition agentsearchinterface.h:31
virtual ~AgentSearchInterface()
Destroys the agent search interface.
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:39
void finished(KJob *job)
Helper integration between Akonadi and Qt.
QByteArray number(double n, char format, int precision)
ExportAdaptors
bool registerObject(const QString &path, QObject *object, RegisterOptions options)
QDBusConnection sessionBus()
void reserve(qsizetype size)
qsizetype size() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.