MainWindowImpl Class Reference

#include <mainwindowimpl.h>

Collaboration diagram for MainWindowImpl:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

The Main window

Definition at line 21 of file mainwindowimpl.h.


Constructor & Destructor Documentation

MainWindowImpl::MainWindowImpl ( QWidget *  parent = 0,
Qt::WFlags  f = 0 
)

Constructs a MainWindowImpl

Parameters:
parent parent window
f window flags

Definition at line 22 of file mainwindowimpl.cpp.

References _settings, _ssh, about(), changeLoginsList(), and connectDisconnectSSH().

MainWindowImpl::~MainWindowImpl (  ) 

Destroy this MainWindowImpl

Definition at line 59 of file mainwindowimpl.cpp.

References _settings.


Member Function Documentation

void MainWindowImpl::addHostLogin ( QString  inhost,
QString  inlogin 
) [private]

Add the specified host and login to the settings

Parameters:
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

Parameters:
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

Parameters:
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().


Member Data Documentation

QString MainWindowImpl::qlogin [private]

Definition at line 27 of file mainwindowimpl.h.

Referenced by changeLoginsList(), connectDisconnectSSH(), and onConnected().

QString MainWindowImpl::qpwd [private]

Definition at line 28 of file mainwindowimpl.h.

Referenced by connectDisconnectSSH().

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().

Myssh MainWindowImpl::_ssh

Definition at line 32 of file mainwindowimpl.h.

Referenced by connectDisconnectSSH(), and MainWindowImpl().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:09 2009 for QCJM by  doxygen 1.5.4