summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/pppimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/pppimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppimp.cpp33
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,6 +1,18 @@
1
2#include <qcombobox.h>
3#include <qpushbutton.h>
4
1#include "pppimp.h" 5#include "pppimp.h"
6#include "devices.h"
7#include "modem.h"
8#include "modeminfo.h"
9//#include "pppdata.h"
10
2 11
3PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { 12PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) {
4 13
14 for(int i = 0; devices[i]; i++)
15 ComboBoxDevice->insertItem(devices[i]);
16 connect(PushButtonQuery, SIGNAL(clicked()), SLOT(queryModem()));
5} 17}
6 18
@@ -8,5 +20,5 @@ PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal,
8 * Open up the peers file and read any set settings 20 * Open up the peers file and read any set settings
9 * @param peer the peer file to edit. 21 * @param peer the peer file to edit.
10 */ 22 */
11void PPPConfigureImp::setPeer(const QString &newPeer){ 23void PPPConfigureImp::setPeer(const QString &newPeer){
12 peer = newPeer; 24 peer = newPeer;
@@ -15,5 +27,5 @@ void PPPConfigureImp::setPeer(const QString &newPeer){
15/** 27/**
16 * Save the settings for the current peer. 28 * Save the settings for the current peer.
17 */ 29 */
18void PPPConfigureImp::accept(){ 30void PPPConfigureImp::accept(){
19 // Check to make sure that all of the inputs are valid. 31 // Check to make sure that all of the inputs are valid.
@@ -28,6 +40,6 @@ usepeerdns - automaticly add dns
28crtscts - flow control enabled 40crtscts - flow control enabled
29name <name> - user name (and do secret file) 41name <name> - user name (and do secret file)
30*/ 42*/
31 43
32 // Make sure it is set in interfaces so pon/off can be used. 44 // Make sure it is set in interfaces so pon/off can be used.
33 45
@@ -35,5 +47,14 @@ name <name> - user name (and do secret file)
35 QDialog::accept(); 47 QDialog::accept();
36} 48}
37 49
38// pppconfigureimp.h 50void PPPConfigureImp::queryModem()
51{
52
53 Modem::modem = new Modem();
54 qDebug("setting device");
55// gpppdata.setModemDevice(ComboBoxDevice->currentText());
56 qDebug("open dialog");
57 ModemTransfer mt(this);
58 mt.exec();
59}
39 60