Akonadi::Server::Connection
#include <connection.h>
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 38 of file connection.h.
Constructor & Destructor Documentation
◆ Connection() [1/2]
|
explicitprotected |
Use AkThread::create() to construct and start a new connection thread.
Definition at line 44 of file server/connection.cpp.
◆ ~Connection()
|
override |
Definition at line 53 of file core/connection.cpp.
◆ Connection() [2/2]
|
protected |
Definition at line 38 of file server/connection.cpp.
Member Function Documentation
◆ akonadi()
|
inline |
Definition at line 55 of file connection.h.
◆ context()
| const CommandContext & Connection::context | ( | ) | const |
Definition at line 331 of file server/connection.cpp.
◆ currentTag()
|
protected |
Definition at line 362 of file server/connection.cpp.
◆ findHandlerForCommand()
|
protected |
Definition at line 341 of file server/connection.cpp.
◆ handleIncomingData
|
protectedslot |
Definition at line 223 of file core/connection.cpp.
◆ init
|
overrideprotectedslot |
Definition at line 55 of file server/connection.cpp.
◆ isOwnerResource() [1/2]
| bool Connection::isOwnerResource | ( | const Collection & | collection | ) | const |
Definition at line 415 of file server/connection.cpp.
◆ isOwnerResource() [2/2]
| 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.
◆ quit
|
overrideprotectedslot |
Definition at line 88 of file server/connection.cpp.
◆ readCommand()
| Protocol::CommandPtr Connection::readCommand | ( | ) |
Definition at line 476 of file server/connection.cpp.
◆ sendResponse() [1/2]
| void Connection::sendResponse | ( | qint64 | tag, |
| const Protocol::CommandPtr & | response ) |
Definition at line 457 of file server/connection.cpp.
◆ sendResponse() [2/2]
|
inline |
Definition at line 138 of file connection.h.
◆ sessionId()
| QByteArray Connection::sessionId | ( | ) | const |
Definition at line 398 of file server/connection.cpp.
◆ setContext()
| void Connection::setContext | ( | const CommandContext & | context | ) |
Definition at line 336 of file server/connection.cpp.
◆ setSessionId()
| void Connection::setSessionId | ( | const QByteArray & | id | ) |
Definition at line 385 of file server/connection.cpp.
◆ setState()
| void Connection::setState | ( | ConnectionState | state | ) |
Definition at line 367 of file server/connection.cpp.
◆ slotConnectionIdle
|
protectedslot |
Definition at line 133 of file server/connection.cpp.
◆ slotSendHello
|
protectedslot |
Definition at line 104 of file server/connection.cpp.
◆ slotSocketDisconnected
|
protectedslot |
Definition at line 149 of file server/connection.cpp.
◆ storageBackend()
|
virtual |
Definition at line 116 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.
Member Data Documentation
◆ m_akonadi
|
protected |
Definition at line 104 of file connection.h.
◆ m_backend
|
mutableprotected |
Definition at line 111 of file connection.h.
◆ m_connectionClosing
|
protected |
Definition at line 123 of file connection.h.
◆ m_connectionState
|
protected |
Definition at line 109 of file connection.h.
◆ m_context
|
protected |
Definition at line 116 of file connection.h.
◆ m_currentHandler
|
protected |
Definition at line 106 of file connection.h.
◆ m_executionsByHandler
Definition at line 121 of file connection.h.
◆ m_identifier
|
protected |
Definition at line 113 of file connection.h.
◆ m_idleTimer
|
protected |
Definition at line 107 of file connection.h.
◆ m_sessionId
|
protected |
Definition at line 114 of file connection.h.
◆ m_socket
|
protected |
Definition at line 105 of file connection.h.
◆ m_socketDescriptor
|
protected |
Definition at line 103 of file connection.h.
◆ m_statusMessageQueue
|
protected |
Definition at line 112 of file connection.h.
◆ m_time
|
protected |
Definition at line 118 of file connection.h.
◆ m_totalTime
|
protected |
Definition at line 119 of file connection.h.
◆ m_totalTimeByHandler
Definition at line 120 of file connection.h.
◆ m_verifyCacheOnRetrieval
|
protected |
Definition at line 115 of file connection.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:53:10 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.