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,39 +1,60 @@ | |||
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 | ||
3 | PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { | 12 | PPPConfigureImp::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 | ||
7 | /** | 19 | /** |
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 | */ |
11 | void PPPConfigureImp::setPeer(const QString &newPeer){ | 23 | void PPPConfigureImp::setPeer(const QString &newPeer){ |
12 | peer = newPeer; | 24 | peer = newPeer; |
13 | } | 25 | } |
14 | 26 | ||
15 | /** | 27 | /** |
16 | * Save the settings for the current peer. | 28 | * Save the settings for the current peer. |
17 | */ | 29 | */ |
18 | void PPPConfigureImp::accept(){ | 30 | void 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. |
20 | 32 | ||
21 | // Save settings. | 33 | // Save settings. |
22 | /** | 34 | /** |
23 | /dev/modem or just modem | 35 | /dev/modem or just modem |
24 | <speed> any | 36 | <speed> any |
25 | defaultroute - automaticly add route | 37 | defaultroute - automaticly add route |
26 | noipdefault - get an ip from the server | 38 | noipdefault - get an ip from the server |
27 | usepeerdns - automaticly add dns | 39 | usepeerdns - automaticly add dns |
28 | crtscts - flow control enabled | 40 | crtscts - flow control enabled |
29 | name <name> - user name (and do secret file) | 41 | name <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 | ||
34 | // Close out the dialog | 46 | // Close out the dialog |
35 | QDialog::accept(); | 47 | QDialog::accept(); |
36 | } | 48 | } |
37 | 49 | ||
38 | // pppconfigureimp.h | 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 | } | ||
39 | 60 | ||