#include <connection.h>

Inherits Akonadi::Server::AkThread.


void connectionClosing ()
void disconnected ()

Public Member Functions

 Connection (quintptr socketDescriptor, AkonadiServer &akonadi)
AkonadiServer & akonadi () const
const CommandContext & context () const
bool isOwnerResource (const PimItem &item) const
bool isOwnerResource (const Collection &collection) const
Protocol::CommandPtr readCommand ()
template<typename T >
std::enable_if< std::is_base_of< Protocol::Command, T >::value >::type sendResponse (T &&response)
void sendResponse (qint64 tag, const Protocol::CommandPtr &response)
QByteArray sessionId () const
void setContext (const CommandContext &context)
void setSessionId (const QByteArray &id)
void setState (ConnectionState state)
virtual DataStorestorageBackend ()
bool verifyCacheOnRetrieval () const

Protected Slots

void handleIncomingData ()
void slotConnectionIdle ()
void slotSendHello ()
void slotSocketDisconnected ()

Protected Member Functions

 Connection (AkonadiServer &akonadi)
qint64 currentTag () const
std::unique_ptr< HandlerfindHandlerForCommand (Protocol::Command::Type cmd)
void init () override
void quit () override

Protected Attributes

AkonadiServer & m_akonadi
DataStorem_backend = nullptr
bool m_connectionClosing = false
ConnectionState m_connectionState = NonAuthenticated
CommandContext m_context
std::unique_ptr< Handlerm_currentHandler
QHash< QString, qint64 > m_executionsByHandler
QString m_identifier
std::unique_ptr< QTimerm_idleTimer
QByteArray m_sessionId
std::unique_ptr< QLocalSocketm_socket
quintptr m_socketDescriptor = {}
QList< QByteArraym_statusMessageQueue
QElapsedTimer m_time
qint64 m_totalTime = 0
QHash< QString, qint64 > m_totalTimeByHandler
bool m_verifyCacheOnRetrieval = false

Detailed Description

An Connection represents one connection of a client to the server.

Definition at line 40 of file connection.h.

Member Function Documentation

bool Connection::isOwnerResource ( const PimItem &  item) const

Returns true if this connection belongs to the owning resource of item.

Definition at line 412 of file server/connection.cpp.

bool Connection::verifyCacheOnRetrieval ( ) const

Returns true if permanent cache verification is enabled.

Definition at line 435 of file server/connection.cpp.

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 Fri Jul 10 2020 23:14:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.