author | dwmw2 <dwmw2> | 2003-06-07 17:07:43 (UTC) |
---|---|---|
committer | dwmw2 <dwmw2> | 2003-06-07 17:07:43 (UTC) |
commit | 9ae55ad05f06d1bff20ea0e0fae59781b503a79b (patch) (side-by-side diff) | |
tree | b197565219d69cadecca357a978a9319eeb52220 | |
parent | b293babbe1e640705163a95e192461d140f590eb (diff) | |
download | opie-9ae55ad05f06d1bff20ea0e0fae59781b503a79b.zip opie-9ae55ad05f06d1bff20ea0e0fae59781b503a79b.tar.gz opie-9ae55ad05f06d1bff20ea0e0fae59781b503a79b.tar.bz2 |
set/use interface status
-rw-r--r-- | noncore/settings/networksettings/ppp/connect.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/connect.cpp b/noncore/settings/networksettings/ppp/connect.cpp index 6905d79..2400d7b 100644 --- a/noncore/settings/networksettings/ppp/connect.cpp +++ b/noncore/settings/networksettings/ppp/connect.cpp @@ -100,32 +100,35 @@ ConnectWidget::ConnectWidget(InterfacePPP *ifp, QWidget *parent, const char *nam QVBoxLayout *tl = new QVBoxLayout(this, 8, 10); QString tit = i18n("Connecting to: "); setCaption(tit); QHBoxLayout *l0 = new QHBoxLayout(10); tl->addLayout(l0); l0->addSpacing(10); messg = new QLabel(this, "messg"); messg->setFrameStyle(QFrame::Panel|QFrame::Sunken); messg->setAlignment(AlignCenter); messg->setText(i18n("Unable to create modem lock file.")); messg->setMinimumHeight(messg->sizeHint().height() + 5); // int messw = (messg->sizeHint().width() * 12) / 10; // messw = QMAX(messw,280); // messg->setMinimumWidth(messw); + if (_ifaceppp->getStatus()) + messg->setText(i18n("Online")); + else messg->setText(i18n("Offline")); l0->addSpacing(10); l0->addWidget(messg); l0->addSpacing(10); QHBoxLayout *l1 = new QHBoxLayout(10); tl->addLayout(l1); l1->addStretch(1); debug = new QPushButton(i18n("Log"), this); debug->setToggleButton(true); debug->setEnabled( false ); // FIXME: disable the log button connect(debug, SIGNAL(clicked()), SIGNAL(toggleDebugWindow())); cancel = new QPushButton(i18n("Cancel"), this); cancel->setFocus(); @@ -1119,32 +1122,35 @@ void ConnectWidget::if_waiting_slot() { qApp->flushX(); execute_command(_ifaceppp->data()->command_on_connect()); messg->setText(i18n("Done")); } // remove the authentication file _ifaceppp->modem()->removeSecret(AUTH_PAP); _ifaceppp->modem()->removeSecret(AUTH_CHAP); emit debugMessage(i18n("Done")); set_con_speed_string(); // p_kppp->con_win->setConnectionSpeed(p_kppp->con_speed); this->hide(); messg->setText(""); + _ifaceppp->setStatus( true ); + // emit _ifaceppp->updateInterface(_ifaceppp); + // prepare the con_win so as to have the right size for // accounting / non-accounting mode // if(p_kppp->acct != 0) // p_kppp->con_win->accounting(p_kppp->acct->running()); // else // p_kppp->con_win->accounting(false); // if (_ifaceppp->data()->get_dock_into_panel()) { // // DockWidget::dock_widget->show(); // // DockWidget::dock_widget->take_stats(); // // this->hide(); // } // else { // // p_kppp->con_win->show(); // if(_ifaceppp->data()->get_iconify_on_connect()) { |