#include <mainwindowimpl.h>
Public Slots | |
void | about () |
void | onConnected () |
void | onConnectionFailed (QString) |
void | changeLoginsList (QString) |
void | connectDisconnectSSH () |
Public Member Functions | |
MainWindowImpl (QWidget *parent=0, Qt::WFlags f=0) | |
~MainWindowImpl () | |
Public Attributes | |
QMap< QString, QVariant > | _settings |
Myssh | _ssh |
Private Member Functions | |
void | addHostLogin (QString inhost, QString inlogin) |
Private Attributes | |
QString | qlogin |
QString | qpwd |
QString | qhost |
Definition at line 21 of file mainwindowimpl.h.
MainWindowImpl::MainWindowImpl | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | f = 0 | |||
) |
Constructs a MainWindowImpl
parent | parent window | |
f | window flags |
Definition at line 22 of file mainwindowimpl.cpp.
References _settings, _ssh, about(), changeLoginsList(), and connectDisconnectSSH().
MainWindowImpl::~MainWindowImpl | ( | ) |
void MainWindowImpl::addHostLogin | ( | QString | inhost, | |
QString | inlogin | |||
) | [private] |
Add the specified host and login to the settings
inhost | host | |
inlogin | login |
Definition at line 159 of file mainwindowimpl.cpp.
References _settings.
Referenced by onConnected().
void MainWindowImpl::about | ( | ) | [slot] |
Slot called to display the about message
Definition at line 180 of file mainwindowimpl.cpp.
Referenced by MainWindowImpl().
void MainWindowImpl::onConnected | ( | ) | [slot] |
Slot called when the connection is established
Definition at line 99 of file mainwindowimpl.cpp.
References addHostLogin(), qhost, and qlogin.
Referenced by connectDisconnectSSH().
void MainWindowImpl::onConnectionFailed | ( | QString | err | ) | [slot] |
Slot called when the attempt to connect has failed
err | the error message |
Definition at line 117 of file mainwindowimpl.cpp.
References qhost.
Referenced by connectDisconnectSSH().
void MainWindowImpl::changeLoginsList | ( | QString | inhost | ) | [slot] |
Slot called to check if we need to had this host to the settings
inhost | host to check |
Definition at line 132 of file mainwindowimpl.cpp.
References _settings, and qlogin.
Referenced by MainWindowImpl().
void MainWindowImpl::connectDisconnectSSH | ( | ) | [slot] |
Connect or Disconnect to/from an SSH host
Definition at line 69 of file mainwindowimpl.cpp.
References _ssh, Myssh::disconnect_ssh(), Myssh::isConnected(), onConnected(), onConnectionFailed(), qhost, qlogin, and qpwd.
Referenced by MainWindowImpl().
QString MainWindowImpl::qlogin [private] |
Definition at line 27 of file mainwindowimpl.h.
Referenced by changeLoginsList(), connectDisconnectSSH(), and onConnected().
QString MainWindowImpl::qpwd [private] |
QString MainWindowImpl::qhost [private] |
Definition at line 29 of file mainwindowimpl.h.
Referenced by connectDisconnectSSH(), onConnected(), and onConnectionFailed().
QMap<QString, QVariant> MainWindowImpl::_settings |
Definition at line 31 of file mainwindowimpl.h.
Referenced by addHostLogin(), changeLoginsList(), MainWindowImpl(), and ~MainWindowImpl().
Definition at line 32 of file mainwindowimpl.h.
Referenced by connectDisconnectSSH(), and MainWindowImpl().