From 60d9f66d2b31c659ac652c15423ecaca89a5f312 Mon Sep 17 00:00:00 2001 From: tille Date: Tue, 03 Jun 2003 14:08:04 +0000 Subject: authentication (except when passwd not stored) and minor things --- (limited to 'noncore/settings/networksettings/ppp/interfaceppp.cpp') diff --git a/noncore/settings/networksettings/ppp/interfaceppp.cpp b/noncore/settings/networksettings/ppp/interfaceppp.cpp index dc24824..98bb4da 100644 --- a/noncore/settings/networksettings/ppp/interfaceppp.cpp +++ b/noncore/settings/networksettings/ppp/interfaceppp.cpp @@ -45,12 +45,10 @@ bool InterfacePPP::refresh() void InterfacePPP::start() { qDebug("InterfacePPP::start"); - if (data()->storedPassword() != "" ){ - data()->setPassword(data()->storedPassword()); - }else{ - //FIXME: + if (data()->password().isEmpty() ){ +//FIXME: ask for password qDebug("using dummy password"); - data()->setPassword( "dummy" ); + QMessageBox::critical( 0, "no password", "you should be prompted for a password, but you are not! ;-)"); } @@ -96,7 +94,7 @@ void InterfacePPP::start() if(data()->authMethod() == AUTH_PAP || data()->authMethod() == AUTH_CHAP || data()->authMethod() == AUTH_PAPCHAP ) { - if(false){ //ID_Edit->text().isEmpty()) { + if(false){ //FIXME: ID_Edit->text().isEmpty()) { QMessageBox::warning(0,tr("Error"), i18n("You have selected the authentication method PAP or CHAP. This requires that you supply a username and a password!")); // FIXME: return; @@ -120,13 +118,9 @@ void InterfacePPP::start() return; } -// this->hide(); - - QString tit = i18n("Connecting to: %1").arg(data()->accname()); -// con->setCaption(tit); - -// con->show(); - + // SEGFAULTS: +// setStatus( true ); +// emit updateInterface((Interface*) this); emit begin_connect(); @@ -139,3 +133,8 @@ void InterfacePPP::stop() } +void InterfacePPP::save() +{ + data()->save(); + emit updateInterface((Interface*) this); +} -- cgit v0.9.0.2