Akonadi::Server::ItemRetrievalManager

Akonadi::Server::ItemRetrievalManager Class Reference

#include <itemretrievalmanager.h>

Inherits Akonadi::Server::AkThread.

Signals

void requestAdded ()
 
void requestFinished (const Akonadi::Server::ItemRetrievalResult &result)
 

Public Member Functions

 ItemRetrievalManager (QObject *parent=nullptr)
 
 ItemRetrievalManager (std::unique_ptr< AbstractItemRetrievalJobFactory > factory, QObject *parent=nullptr)
 
virtual void requestItemDelivery (ItemRetrievalRequest request)
 
void triggerCollectionSync (const QString &resource, qint64 colId)
 
void triggerCollectionTreeSync (const QString &resource)
 

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 48 of file itemretrievalmanager.h.

Member Function Documentation

void ItemRetrievalManager::requestItemDelivery ( ItemRetrievalRequest  request)
virtual

Added for convenience.

ItemRetrievalManager takes ownership over the pointer and deletes it when the request is processed.

Definition at line 105 of file itemretrievalmanager.cpp.

Member Data Documentation

QHash<QString, AbstractItemRetrievalJob *> Akonadi::Server::ItemRetrievalManager::mCurrentJobs
protected

Currently running jobs, one per resource.

Definition at line 91 of file itemretrievalmanager.h.

QReadWriteLock Akonadi::Server::ItemRetrievalManager::mLock
protected

Protects mPendingRequests and every Request object posted to it.

Definition at line 84 of file itemretrievalmanager.h.

std::unordered_map<QString, std::list<ItemRetrievalRequest> > Akonadi::Server::ItemRetrievalManager::mPendingRequests
protected

Pending requests queues, one per resource.

Definition at line 89 of file itemretrievalmanager.h.

QWaitCondition Akonadi::Server::ItemRetrievalManager::mWaitCondition
protected

Used to let requesting threads wait until the request has been processed.

Definition at line 86 of file itemretrievalmanager.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:16:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.