Akonadi::Server::Connection
Signals |
Public Member Functions |
Protected Slots |
Protected Member Functions |
Protected Attributes |
List of all members
Akonadi::Server::Connection Class Reference
#include <connection.h>
Inherits Akonadi::Server::AkThread.
Signals | |
void | connectionClosing () |
void | disconnected () |
Public Member Functions | |
AkonadiServer & | akonadi () const |
const CommandContext & | context () const |
bool | isOwnerResource (const Collection &collection) const |
bool | isOwnerResource (const PimItem &item) const |
Protocol::CommandPtr | readCommand () |
void | sendResponse (qint64 tag, const Protocol::CommandPtr &response) |
template<typename T > | |
std::enable_if< std::is_base_of< Protocol::Command, T >::value >::type | sendResponse (T &&response) |
QByteArray | sessionId () const |
void | setContext (const CommandContext &context) |
void | setSessionId (const QByteArray &id) |
void | setState (ConnectionState state) |
virtual DataStore * | storageBackend () |
bool | verifyCacheOnRetrieval () const |
Protected Slots | |
void | handleIncomingData () |
void | init () override |
void | quit () override |
void | slotConnectionIdle () |
void | slotSendHello () |
void | slotSocketDisconnected () |
Protected Member Functions | |
Connection (AkonadiServer &akonadi) | |
Connection (quintptr socketDescriptor, AkonadiServer &akonadi) | |
qint64 | currentTag () const |
std::unique_ptr< Handler > | findHandlerForCommand (Protocol::Command::Type cmd) |
Protected Attributes | |
AkonadiServer & | m_akonadi |
DataStore * | m_backend = nullptr |
bool | m_connectionClosing = false |
ConnectionState | m_connectionState = NonAuthenticated |
CommandContext | m_context |
std::unique_ptr< Handler > | m_currentHandler |
QHash< QString, qint64 > | m_executionsByHandler |
QString | m_identifier |
std::unique_ptr< QTimer > | m_idleTimer |
QByteArray | m_sessionId |
std::unique_ptr< QLocalSocket > | m_socket |
quintptr | m_socketDescriptor = {} |
QList< QByteArray > | m_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 46 of file connection.h.
Constructor & Destructor Documentation
◆ Connection()
|
explicitprotected |
Use AkThread::create() to construct and start a new connection thread.
Definition at line 44 of file server/connection.cpp.
Member Function Documentation
◆ isOwnerResource()
bool Connection::isOwnerResource | ( | const PimItem & | item | ) | const |
Returns true
if this connection belongs to the owning resource of item
.
Definition at line 403 of file server/connection.cpp.
◆ verifyCacheOnRetrieval()
bool Connection::verifyCacheOnRetrieval | ( | ) | const |
Returns true
if permanent cache verification is enabled.
Definition at line 426 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-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:01:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:01:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.