Akonadi::Server::ItemRetrievalManager
#include <itemretrievalmanager.h>
Signals | |
void | requestAdded () |
void | requestFinished (const Akonadi::Server::ItemRetrievalResult &result) |
Public Member Functions | |
virtual void | requestItemDelivery (ItemRetrievalRequest request) |
void | triggerCollectionSync (const QString &resource, qint64 colId) |
void | triggerCollectionTreeSync (const QString &resource) |
Protected Member Functions | |
ItemRetrievalManager (QObject *parent=nullptr) | |
ItemRetrievalManager (std::unique_ptr< AbstractItemRetrievalJobFactory > factory, QObject *parent=nullptr) | |
Protected Attributes | |
QHash< QString, AbstractItemRetrievalJob * > | mCurrentJobs |
std::unique_ptr< AbstractItemRetrievalJobFactory > | mJobFactory |
QReadWriteLock | mLock |
std::unordered_map< QString, std::list< ItemRetrievalRequest > > | mPendingRequests |
std::unordered_map< QString, std::unique_ptr< OrgFreedesktopAkonadiResourceInterface > > | mResourceInterfaces |
QWaitCondition | mWaitCondition |
Detailed Description
Manages and processes item retrieval requests.
Definition at line 45 of file itemretrievalmanager.h.
Constructor & Destructor Documentation
◆ ItemRetrievalManager() [1/2]
|
explicitprotected |
Use AkThread::create() to create and start a new ItemRetrievalManager thread.
Definition at line 32 of file itemretrievalmanager.cpp.
◆ ItemRetrievalManager() [2/2]
|
explicitprotected |
Definition at line 37 of file itemretrievalmanager.cpp.
◆ ~ItemRetrievalManager()
|
override |
Definition at line 45 of file itemretrievalmanager.cpp.
Member Function Documentation
◆ requestItemDelivery()
|
virtual |
Added for convenience.
ItemRetrievalManager takes ownership over the pointer and deletes it when the request is processed.
Definition at line 102 of file itemretrievalmanager.cpp.
◆ triggerCollectionSync()
void ItemRetrievalManager::triggerCollectionSync | ( | const QString & | resource, |
qint64 | colId ) |
Definition at line 208 of file itemretrievalmanager.cpp.
◆ triggerCollectionTreeSync()
void ItemRetrievalManager::triggerCollectionTreeSync | ( | const QString & | resource | ) |
Definition at line 217 of file itemretrievalmanager.cpp.
Member Data Documentation
◆ mCurrentJobs
|
protected |
Currently running jobs, one per resource.
Definition at line 93 of file itemretrievalmanager.h.
◆ mJobFactory
|
protected |
Definition at line 83 of file itemretrievalmanager.h.
◆ mLock
|
protected |
Protects mPendingRequests and every Request object posted to it.
Definition at line 86 of file itemretrievalmanager.h.
◆ mPendingRequests
|
protected |
Pending requests queues, one per resource.
Definition at line 91 of file itemretrievalmanager.h.
◆ mResourceInterfaces
|
protected |
Definition at line 96 of file itemretrievalmanager.h.
◆ mWaitCondition
|
protected |
Used to let requesting threads wait until the request has been processed.
Definition at line 88 of file itemretrievalmanager.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.