Changeset View
Changeset View
Standalone View
Standalone View
src/kmanagesieve/sessionthread_p.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | void sendData(const QByteArray &data); | 48 | void sendData(const QByteArray &data); | ||
49 | 49 | | |||
50 | void startAuthentication(); | 50 | void startAuthentication(); | ||
51 | void continueAuthentication(const Response &response, const QByteArray &data); | 51 | void continueAuthentication(const Response &response, const QByteArray &data); | ||
52 | 52 | | |||
53 | void startSsl(); | 53 | void startSsl(); | ||
54 | 54 | | |||
55 | enum { AuthenticationError = 1500 }; // "extend" KTcpSocket::Error | ||||
56 | | ||||
55 | Q_SIGNALS: | 57 | Q_SIGNALS: | ||
56 | void responseReceived(const KManageSieve::Response &response, const QByteArray &data); | 58 | void responseReceived(const KManageSieve::Response &response, const QByteArray &data); | ||
57 | void error(const QString &error); | 59 | void error(int errorCode, const QString &error); | ||
58 | void authenticationDone(); | 60 | void authenticationDone(); | ||
59 | void sslDone(); | 61 | void sslDone(); | ||
60 | void sslError(const KSslErrorUiData &data); | 62 | void sslError(const KSslErrorUiData &data); | ||
61 | 63 | | |||
62 | void socketConnected(); | 64 | void socketConnected(); | ||
63 | void socketDisconnected(); | 65 | void socketDisconnected(); | ||
64 | 66 | | |||
65 | private Q_SLOTS: | 67 | private Q_SLOTS: | ||
Show All 10 Lines | |||||
76 | void slotSocketError(); | 78 | void slotSocketError(); | ||
77 | void slotSslTimeout(); | 79 | void slotSslTimeout(); | ||
78 | void slotEncryptedDone(); | 80 | void slotEncryptedDone(); | ||
79 | 81 | | |||
80 | private: | 82 | private: | ||
81 | bool saslInteract(void *in); | 83 | bool saslInteract(void *in); | ||
82 | bool saslClientStep(const QByteArray &challenge); | 84 | bool saslClientStep(const QByteArray &challenge); | ||
83 | void sslResult(bool encrypted); | 85 | void sslResult(bool encrypted); | ||
86 | void handleSaslAuthError(); | ||||
84 | 87 | | |||
85 | private: | 88 | private: | ||
86 | Q_DISABLE_COPY(SessionThread) | 89 | Q_DISABLE_COPY(SessionThread) | ||
87 | Session *m_session = nullptr; | 90 | Session *m_session = nullptr; | ||
88 | KTcpSocket *m_socket = nullptr; | 91 | KTcpSocket *m_socket = nullptr; | ||
89 | 92 | | |||
90 | QUrl m_url; | 93 | QUrl m_url; | ||
91 | 94 | | |||
Show All 12 Lines |