Akonadi
11#include "agentmanagerinterface.h"
18#include <QWaitCondition>
25class AgentSearchInstance;
32 QStringList mimeTypes;
33 QList<qint64> collections;
37 QWaitCondition notifier;
39 QList<QPair<QString , qint64 >> queries;
40 QSet<qint64> pendingResults;
43class SearchTaskManager :
public AkThread
51 explicit SearchTaskManager();
54 ~SearchTaskManager()
override;
56 void registerInstance(
const QString &
id);
57 void unregisterInstance(
const QString &
id);
59 void addTask(SearchTask *task);
61 void pushResults(
const QByteArray &searchId,
const QSet<qint64> &ids, Connection *connection);
72 SearchTask *parentTask;
78 using TasksMap = QMap<QString, ResourceTask *>;
83 bool allResourceTasksCompleted(SearchTask *agentSearchTask)
const;
85 QMap<QString, AgentSearchInstance *> mInstances;
86 QMutex mInstancesLock;
91 QList<SearchTask *> mTasklist;
93 QMap<QString , ResourceTask *> mRunningTasks;
94 QList<ResourceTask *> mPendingResults;
97AKONADI_EXCEPTION_MAKE_INSTANCE(SearchException);
An Connection represents one connection of a client to the server.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.