author | benmeyer <benmeyer> | 2002-11-11 21:30:17 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-11-11 21:30:17 (UTC) |
commit | 503bb111313dfb62ee6341069a75dad56bbd47bf (patch) (unidiff) | |
tree | 7f074af4b78685829a6bf796e920f3cd686c9e4f | |
parent | b11baff926843bfa4fa3177dc919be8754fb6d4d (diff) | |
download | opie-503bb111313dfb62ee6341069a75dad56bbd47bf.zip opie-503bb111313dfb62ee6341069a75dad56bbd47bf.tar.gz opie-503bb111313dfb62ee6341069a75dad56bbd47bf.tar.bz2 |
Initial framing
-rw-r--r-- | noncore/net/networksetup/ppp/pppimp.cpp | 35 | ||||
-rw-r--r-- | noncore/net/networksetup/ppp/pppimp.h | 12 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.cpp | 35 | ||||
-rw-r--r-- | noncore/settings/networksettings/ppp/pppimp.h | 12 |
4 files changed, 90 insertions, 4 deletions
diff --git a/noncore/net/networksetup/ppp/pppimp.cpp b/noncore/net/networksetup/ppp/pppimp.cpp index e3a7481..d3094fc 100644 --- a/noncore/net/networksetup/ppp/pppimp.cpp +++ b/noncore/net/networksetup/ppp/pppimp.cpp | |||
@@ -1,4 +1,39 @@ | |||
1 | #include "pppimp.h" | 1 | #include "pppimp.h" |
2 | 2 | ||
3 | PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { | ||
4 | |||
5 | } | ||
6 | |||
7 | /** | ||
8 | * Open up the peers file and read any set settings | ||
9 | * @param peer the peer file to edit. | ||
10 | */ | ||
11 | void PPPConfigureImp::setPeer(const QString &newPeer){ | ||
12 | peer = newPeer; | ||
13 | } | ||
14 | |||
15 | /** | ||
16 | * Save the settings for the current peer. | ||
17 | */ | ||
18 | void PPPConfigureImp::accept(){ | ||
19 | // Check to make sure that all of the inputs are valid. | ||
20 | |||
21 | // Save settings. | ||
22 | /** | ||
23 | /dev/modem or just modem | ||
24 | <speed> any | ||
25 | defaultroute - automaticly add route | ||
26 | noipdefault - get an ip from the server | ||
27 | usepeerdns - automaticly add dns | ||
28 | crtscts - flow control enabled | ||
29 | name <name> - user name (and do secret file) | ||
30 | */ | ||
31 | |||
32 | // Make sure it is set in interfaces so pon/off can be used. | ||
33 | |||
34 | // Close out the dialog | ||
35 | QDialog::accept(); | ||
36 | } | ||
37 | |||
3 | // pppconfigureimp.h | 38 | // pppconfigureimp.h |
4 | 39 | ||
diff --git a/noncore/net/networksetup/ppp/pppimp.h b/noncore/net/networksetup/ppp/pppimp.h index 60d29b5..1bc1fad 100644 --- a/noncore/net/networksetup/ppp/pppimp.h +++ b/noncore/net/networksetup/ppp/pppimp.h | |||
@@ -5,10 +5,18 @@ | |||
5 | 5 | ||
6 | class PPPConfigureImp : public PPP { | 6 | class PPPConfigureImp : public PPP { |
7 | 7 | ||
8 | Q_OBJECT | ||
9 | |||
8 | public: | 10 | public: |
9 | PPPConfigureImp(); | 11 | PPPConfigureImp(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); |
10 | ~PPPConfigureImp(); | 12 | void setPeer(const QString &peer); |
11 | 13 | ||
14 | protected: | ||
15 | void accept(); | ||
16 | |||
17 | private: | ||
18 | QString peer; | ||
19 | |||
12 | }; | 20 | }; |
13 | 21 | ||
14 | #endif | 22 | #endif |
diff --git a/noncore/settings/networksettings/ppp/pppimp.cpp b/noncore/settings/networksettings/ppp/pppimp.cpp index e3a7481..d3094fc 100644 --- a/noncore/settings/networksettings/ppp/pppimp.cpp +++ b/noncore/settings/networksettings/ppp/pppimp.cpp | |||
@@ -1,4 +1,39 @@ | |||
1 | #include "pppimp.h" | 1 | #include "pppimp.h" |
2 | 2 | ||
3 | PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { | ||
4 | |||
5 | } | ||
6 | |||
7 | /** | ||
8 | * Open up the peers file and read any set settings | ||
9 | * @param peer the peer file to edit. | ||
10 | */ | ||
11 | void PPPConfigureImp::setPeer(const QString &newPeer){ | ||
12 | peer = newPeer; | ||
13 | } | ||
14 | |||
15 | /** | ||
16 | * Save the settings for the current peer. | ||
17 | */ | ||
18 | void PPPConfigureImp::accept(){ | ||
19 | // Check to make sure that all of the inputs are valid. | ||
20 | |||
21 | // Save settings. | ||
22 | /** | ||
23 | /dev/modem or just modem | ||
24 | <speed> any | ||
25 | defaultroute - automaticly add route | ||
26 | noipdefault - get an ip from the server | ||
27 | usepeerdns - automaticly add dns | ||
28 | crtscts - flow control enabled | ||
29 | name <name> - user name (and do secret file) | ||
30 | */ | ||
31 | |||
32 | // Make sure it is set in interfaces so pon/off can be used. | ||
33 | |||
34 | // Close out the dialog | ||
35 | QDialog::accept(); | ||
36 | } | ||
37 | |||
3 | // pppconfigureimp.h | 38 | // pppconfigureimp.h |
4 | 39 | ||
diff --git a/noncore/settings/networksettings/ppp/pppimp.h b/noncore/settings/networksettings/ppp/pppimp.h index 60d29b5..1bc1fad 100644 --- a/noncore/settings/networksettings/ppp/pppimp.h +++ b/noncore/settings/networksettings/ppp/pppimp.h | |||
@@ -5,10 +5,18 @@ | |||
5 | 5 | ||
6 | class PPPConfigureImp : public PPP { | 6 | class PPPConfigureImp : public PPP { |
7 | 7 | ||
8 | Q_OBJECT | ||
9 | |||
8 | public: | 10 | public: |
9 | PPPConfigureImp(); | 11 | PPPConfigureImp(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); |
10 | ~PPPConfigureImp(); | 12 | void setPeer(const QString &peer); |
11 | 13 | ||
14 | protected: | ||
15 | void accept(); | ||
16 | |||
17 | private: | ||
18 | QString peer; | ||
19 | |||
12 | }; | 20 | }; |
13 | 21 | ||
14 | #endif | 22 | #endif |