Changeset View
Changeset View
Standalone View
Standalone View
vnc/vncsshtunnelthread.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
49 | 49 | | |||
50 | enum PasswordRequestFlags { | 50 | enum PasswordRequestFlags { | ||
51 | NoFlags, | 51 | NoFlags, | ||
52 | IgnoreWallet | 52 | IgnoreWallet | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | QString password() const; | 55 | QString password() const; | ||
56 | void setPassword(const QString &password, PasswordOrigin origin); | 56 | void setPassword(const QString &password, PasswordOrigin origin); | ||
57 | void userCanceledPasswordRequest(); | ||||
57 | 58 | | |||
58 | void run() override; | 59 | void run() override; | ||
59 | 60 | | |||
60 | Q_SIGNALS: | 61 | Q_SIGNALS: | ||
61 | void passwordRequest(PasswordRequestFlags flags); | 62 | void passwordRequest(PasswordRequestFlags flags); | ||
62 | void listenReady(); | 63 | void listenReady(); | ||
63 | void errorMessage(const QString &message); | 64 | void errorMessage(const QString &message); | ||
64 | 65 | | |||
65 | private: | 66 | private: | ||
66 | QByteArray m_host; | 67 | QByteArray m_host; | ||
67 | int m_vncPort; | 68 | int m_vncPort; | ||
68 | int m_tunnelPort; | 69 | int m_tunnelPort; | ||
69 | int m_sshPort; | 70 | int m_sshPort; | ||
70 | QByteArray m_sshUserName; | 71 | QByteArray m_sshUserName; | ||
71 | bool m_loopback; | 72 | bool m_loopback; | ||
72 | QString m_password; | 73 | QString m_password; | ||
73 | PasswordOrigin m_passwordOrigin; | 74 | PasswordOrigin m_passwordOrigin; | ||
75 | bool m_passwordRequestCanceledByUser; | ||||
74 | 76 | | |||
75 | std::atomic_bool m_stop_thread; | 77 | std::atomic_bool m_stop_thread; | ||
76 | }; | 78 | }; | ||
77 | 79 | | |||
78 | #endif | 80 | #endif |