From 273857932d4d4af9bf78bfca92f2986163e5f4f6 Mon Sep 17 00:00:00 2001 From: tille Date: Thu, 22 May 2003 15:08:21 +0000 Subject: finds the modem of my laptop now, thanks to the kppp team --- (limited to 'noncore/settings/networksettings/ppp/pppimp.cpp') diff --git a/noncore/settings/networksettings/ppp/pppimp.cpp b/noncore/settings/networksettings/ppp/pppimp.cpp index d3094fc..6588bbc 100644 --- a/noncore/settings/networksettings/ppp/pppimp.cpp +++ b/noncore/settings/networksettings/ppp/pppimp.cpp @@ -1,20 +1,32 @@ + +#include +#include + #include "pppimp.h" +#include "devices.h" +#include "modem.h" +#include "modeminfo.h" +//#include "pppdata.h" + PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { + for(int i = 0; devices[i]; i++) + ComboBoxDevice->insertItem(devices[i]); + connect(PushButtonQuery, SIGNAL(clicked()), SLOT(queryModem())); } /** * Open up the peers file and read any set settings * @param peer the peer file to edit. - */ + */ void PPPConfigureImp::setPeer(const QString &newPeer){ peer = newPeer; } /** * Save the settings for the current peer. - */ + */ void PPPConfigureImp::accept(){ // Check to make sure that all of the inputs are valid. @@ -27,13 +39,22 @@ noipdefault - get an ip from the server usepeerdns - automaticly add dns crtscts - flow control enabled name - user name (and do secret file) -*/ - +*/ + // Make sure it is set in interfaces so pon/off can be used. // Close out the dialog QDialog::accept(); } - -// pppconfigureimp.h + +void PPPConfigureImp::queryModem() +{ + + Modem::modem = new Modem(); + qDebug("setting device"); +// gpppdata.setModemDevice(ComboBoxDevice->currentText()); + qDebug("open dialog"); + ModemTransfer mt(this); + mt.exec(); +} -- cgit v0.9.0.2