Changeset View
Changeset View
Standalone View
Standalone View
src/server/connection.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 90 | protected Q_SLOTS: | |||
---|---|---|---|---|---|
95 | void slotSendHello(); | 95 | void slotSendHello(); | ||
96 | 96 | | |||
97 | protected: | 97 | protected: | ||
98 | Connection(QObject *parent = nullptr); // used for testing | 98 | Connection(QObject *parent = nullptr); // used for testing | ||
99 | 99 | | |||
100 | void init() override; | 100 | void init() override; | ||
101 | void quit() override; | 101 | void quit() override; | ||
102 | 102 | | |||
103 | Handler *findHandlerForCommand(Protocol::Command::Type cmd); | 103 | std::unique_ptr<Handler> findHandlerForCommand(Protocol::Command::Type cmd); | ||
104 | 104 | | |||
105 | qint64 currentTag() const; | 105 | qint64 currentTag() const; | ||
106 | 106 | | |||
107 | protected: | 107 | protected: | ||
108 | quintptr m_socketDescriptor = {}; | 108 | quintptr m_socketDescriptor = {}; | ||
109 | QLocalSocket *m_socket = nullptr; | 109 | QLocalSocket *m_socket = nullptr; | ||
110 | std::unique_ptr<Handler> m_currentHandler; | 110 | std::unique_ptr<Handler> m_currentHandler; | ||
111 | ConnectionState m_connectionState = NonAuthenticated; | 111 | ConnectionState m_connectionState = NonAuthenticated; | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |