Diffstat (limited to 'noncore/settings/networksettings/ppp/pppimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/noncore/settings/networksettings/ppp/pppimp.cpp b/noncore/settings/networksettings/ppp/pppimp.cpp deleted file mode 100644 index 6588bbc..0000000 --- a/noncore/settings/networksettings/ppp/pppimp.cpp +++ b/dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | |||
2 | #include <qcombobox.h> | ||
3 | #include <qpushbutton.h> | ||
4 | |||
5 | #include "pppimp.h" | ||
6 | #include "devices.h" | ||
7 | #include "modem.h" | ||
8 | #include "modeminfo.h" | ||
9 | //#include "pppdata.h" | ||
10 | |||
11 | |||
12 | PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { | ||
13 | |||
14 | for(int i = 0; devices[i]; i++) | ||
15 | ComboBoxDevice->insertItem(devices[i]); | ||
16 | connect(PushButtonQuery, SIGNAL(clicked()), SLOT(queryModem())); | ||
17 | } | ||
18 | |||
19 | /** | ||
20 | * Open up the peers file and read any set settings | ||
21 | * @param peer the peer file to edit. | ||
22 | */ | ||
23 | void PPPConfigureImp::setPeer(const QString &newPeer){ | ||
24 | peer = newPeer; | ||
25 | } | ||
26 | |||
27 | /** | ||
28 | * Save the settings for the current peer. | ||
29 | */ | ||
30 | void PPPConfigureImp::accept(){ | ||
31 | // Check to make sure that all of the inputs are valid. | ||
32 | |||
33 | // Save settings. | ||
34 | /** | ||
35 | /dev/modem or just modem | ||
36 | <speed> any | ||
37 | defaultroute - automaticly add route | ||
38 | noipdefault - get an ip from the server | ||
39 | usepeerdns - automaticly add dns | ||
40 | crtscts - flow control enabled | ||
41 | name <name> - user name (and do secret file) | ||
42 | */ | ||
43 | |||
44 | // Make sure it is set in interfaces so pon/off can be used. | ||
45 | |||
46 | // Close out the dialog | ||
47 | QDialog::accept(); | ||
48 | } | ||
49 | |||
50 | void 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 | } | ||
60 | |||