Diffstat (limited to 'noncore/settings/networksettings2/ppp/PPPedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/ppp/PPPedit.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/ppp/PPPedit.cpp b/noncore/settings/networksettings2/ppp/PPPedit.cpp new file mode 100644 index 0000000..eb4fdbf --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPedit.cpp | |||
@@ -0,0 +1,48 @@ | |||
1 | #include <qwidgetstack.h> | ||
2 | |||
3 | #include "PPPIPedit.h" | ||
4 | #include "PPPDNSedit.h" | ||
5 | #include "PPPAuthedit.h" | ||
6 | #include "PPPedit.h" | ||
7 | |||
8 | PPPEdit::PPPEdit( QWidget * Parent ) : PPPGUI( Parent ){ | ||
9 | |||
10 | Auth = new PPPAuthEdit( Options_WS ); | ||
11 | IP = new PPPIPEdit( Options_WS ); | ||
12 | DNS = new PPPDNSEdit( Options_WS ); | ||
13 | Options_WS->addWidget( Auth, 0 ); | ||
14 | Options_WS->addWidget( IP, 1 ); | ||
15 | Options_WS->addWidget( DNS, 2 ); | ||
16 | |||
17 | Options_WS->raiseWidget( 0 ); | ||
18 | } | ||
19 | |||
20 | QString PPPEdit::acceptable( void ) { | ||
21 | QString S; | ||
22 | S = Auth->acceptable(); | ||
23 | if( S.isEmpty() ) { | ||
24 | S = IP->acceptable(); | ||
25 | if( S.isEmpty() ) { | ||
26 | S = DNS->acceptable(); | ||
27 | } | ||
28 | } | ||
29 | return S; | ||
30 | } | ||
31 | |||
32 | bool PPPEdit::commit( PPPData_t & Data ) { | ||
33 | bool SM ; | ||
34 | SM = Auth->commit( Data ); | ||
35 | SM |= IP->commit( Data ); | ||
36 | SM |= DNS->commit( Data ); | ||
37 | return SM; | ||
38 | } | ||
39 | |||
40 | void PPPEdit::showData( PPPData_t & Data ) { | ||
41 | Auth->showData( Data ) ; | ||
42 | IP->showData( Data ); | ||
43 | DNS->showData( Data ); | ||
44 | } | ||
45 | |||
46 | void PPPEdit::SLOT_SelectTopic( int v ) { | ||
47 | Options_WS->raiseWidget( v ); | ||
48 | } | ||