Diffstat (limited to 'noncore/settings/networksettings/ppp/pppimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.cpp | 33 |
1 files changed, 27 insertions, 6 deletions
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,2 +1,11 @@ + +#include <qcombobox.h> +#include <qpushbutton.h> + #include "pppimp.h" +#include "devices.h" +#include "modem.h" +#include "modeminfo.h" +//#include "pppdata.h" + @@ -4,2 +13,5 @@ PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, + for(int i = 0; devices[i]; i++) + ComboBoxDevice->insertItem(devices[i]); + connect(PushButtonQuery, SIGNAL(clicked()), SLOT(queryModem())); } @@ -9,3 +21,3 @@ PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, * @param peer the peer file to edit. - */ + */ void PPPConfigureImp::setPeer(const QString &newPeer){ @@ -16,3 +28,3 @@ void PPPConfigureImp::setPeer(const QString &newPeer){ * Save the settings for the current peer. - */ + */ void PPPConfigureImp::accept(){ @@ -29,4 +41,4 @@ crtscts - flow control enabled name <name> - user name (and do secret file) -*/ - +*/ + // Make sure it is set in interfaces so pon/off can be used. @@ -36,4 +48,13 @@ name <name> - user name (and do secret file) } - -// pppconfigureimp.h + +void PPPConfigureImp::queryModem() +{ + + Modem::modem = new Modem(); + qDebug("setting device"); +// gpppdata.setModemDevice(ComboBoxDevice->currentText()); + qDebug("open dialog"); + ModemTransfer mt(this); + mt.exec(); +} |