36 QObject *parent =
nullptr);
41 virtual bool open(OpenMode mode)
override;
42 virtual void close()
override;
44 virtual QString GetDetails()
override;
66 const QString& szMessage,
67 QMessageBox::StandardButtons buttons,
68 QMessageBox::StandardButton& nRet,
70 QString checkBoxContext = QString());
92 virtual qint64 readData(
char *data, qint64 maxlen)
override;
93 virtual qint64 writeData(
const char *data, qint64 len)
override;
96 int verifyKnownhost(ssh_session session);
100 const QString szPassword,
101 const QString szPassphrase,
102 const int nMethod = SSH_AUTH_METHOD_PASSWORD);
103 int authenticationPublicKey(
105 const QString szUser,
106 const QString szPublicKeyFile,
107 const QString szPrivateKeyFile,
108 const QString szPassphrase);
109 int forward(ssh_session session);
111 static void cb_log(ssh_session session,
117 ssh_session m_Session;
118 ssh_channel m_Channel;
121 ssh_pcap_file m_pcapFile;
122 QSharedPointer<CParameterChannelSSH> m_Parameter;
124 QSocketNotifier* m_pSocketRead;
125 QSocketNotifier* m_pSocketWrite;
126 QSocketNotifier* m_pSocketException;
void sigBlockShowMessageBox(const QString &szTitle, const QString &szMessage, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton &nRet, bool &checkBox, QString checkBoxContext=QString())
Block background threads and display message dialogs in foreground threads (QMessageBox)
void sigBlockShowWidget(const QString &className, int &nRet, void *pContext)
Blocks the background thread and displays the window in the foreground thread.