Search for usage in LXR

Akonadi::Server::ItemRetrievalManager Class Reference

#include <itemretrievalmanager.h>

Inherits Akonadi::Server::AkThread.


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

Member Function Documentation

◆ requestItemDelivery()

void ItemRetrievalManager::requestItemDelivery ( ItemRetrievalRequest  request)

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.

Member Data Documentation

◆ mCurrentJobs

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

Currently running jobs, one per resource.

Definition at line 89 of file itemretrievalmanager.h.

◆ mLock

QReadWriteLock Akonadi::Server::ItemRetrievalManager::mLock

Protects mPendingRequests and every Request object posted to it.

Definition at line 82 of file itemretrievalmanager.h.

◆ mPendingRequests

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

Pending requests queues, one per resource.

Definition at line 87 of file itemretrievalmanager.h.

◆ mWaitCondition

QWaitCondition Akonadi::Server::ItemRetrievalManager::mWaitCondition

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

Definition at line 84 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-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:00:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.