Logo Search packages:      
Sourcecode: qtsmbstatus version File versions  Download package

void main_windows::open_dialog_for_login (  )  [private]

Open authentication dialogbox

See also:
login_windows ClientSocket

Definition at line 301 of file main_windows.cpp.

References ClientSocket::connectionToServer(), InfoSMB(), LogForm::on_clearButton_clicked(), SignalErrorAuth(), socketclosed(), and socketconnected().

Referenced by Slot_connect().

{
      debugQt("main_windows::open_dialog_for_login()");
      login_windows * login_passwd = new login_windows(this);
      if (login_passwd->exec()==QDialog::Accepted)
      {
            pushButton_connect->setPixmap( QPixmap(":/icons/connect_creating.png") );
            connect_action->setIcon ( QPixmap(":/icons/connect_creating.png") );
            action_Connect->setIcon ( QPixmap(":/icons/connect_creating.png") );
            host=comboBox_hostaddr->currentText ();

            // new clientsocket
            clientsocket = new ClientSocket(listView,this);
            connect(clientsocket, SIGNAL( SignalConnected() ), this, SLOT(socketconnected() ) );
            connect(clientsocket, SIGNAL( SignalClosed() ), this, SLOT(socketclosed() ) );
            connect(clientsocket, SIGNAL( SignalErrorAuth()), this, SLOT(SignalErrorAuth()));
            connect(clientsocket, SIGNAL( SignalShortMessage(const QString &) ), statusBar(), SLOT(showMessage (const QString & )));
            QTimer *timer = new QTimer(clientsocket);
            connect(timer, SIGNAL(timeout()), this, SLOT(InfoSMB()));
            firstTime=true;
            timer->start(10000);
            // clear form log
            logform->on_clearButton_clicked();
            clientsocket->connectionToServer(username_login, passwd_login);
      }
}


Generated by  Doxygen 1.6.0   Back to index