Changeset View
Changeset View
Standalone View
Standalone View
src/sessionthread_p.h
Show All 38 Lines | |||||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | explicit SessionThread(const QString &hostName, quint16 port, Session *session); | 41 | explicit SessionThread(const QString &hostName, quint16 port, Session *session); | ||
42 | ~SessionThread() override; | 42 | ~SessionThread() override; | ||
43 | 43 | | |||
44 | QString hostName() const; | 44 | QString hostName() const; | ||
45 | quint16 port() const; | 45 | quint16 port() const; | ||
46 | 46 | | |||
47 | void setUseNetworkProxy(bool useProxy); | ||||
48 | | ||||
47 | void handleSslErrorResponse(bool ignoreError); | 49 | void handleSslErrorResponse(bool ignoreError); | ||
48 | 50 | | |||
49 | public Q_SLOTS: | 51 | public Q_SLOTS: | ||
50 | void reconnect(); | 52 | void reconnect(); | ||
51 | void closeSocket(); | 53 | void closeSocket(); | ||
52 | void startSsl(KTcpSocket::SslVersion version); | 54 | void startSsl(KTcpSocket::SslVersion version); | ||
53 | void sendData(const QByteArray &payload); | 55 | void sendData(const QByteArray &payload); | ||
54 | 56 | | |||
Show All 18 Lines | 72 | private: | |||
73 | KTcpSocket *m_socket = nullptr; | 75 | KTcpSocket *m_socket = nullptr; | ||
74 | QMutex m_mutex; | 76 | QMutex m_mutex; | ||
75 | QQueue<QByteArray> m_dataQueue; | 77 | QQueue<QByteArray> m_dataQueue; | ||
76 | QFile *m_logFile = nullptr; | 78 | QFile *m_logFile = nullptr; | ||
77 | 79 | | |||
78 | Session *m_parentSession = nullptr; | 80 | Session *m_parentSession = nullptr; | ||
79 | QString m_hostName; | 81 | QString m_hostName; | ||
80 | quint16 m_port; | 82 | quint16 m_port; | ||
83 | bool m_useProxy; | ||||
81 | }; | 84 | }; | ||
82 | 85 | | |||
83 | } | 86 | } | ||
84 | 87 | | |||
85 | #endif // KSMTP_SESSIONTHREAD_H | 88 | #endif // KSMTP_SESSIONTHREAD_H |