summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/PPPedit.cpp
authorwimpie <wimpie>2004-04-02 18:29:49 (UTC)
committer wimpie <wimpie>2004-04-02 18:29:49 (UTC)
commit5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (patch) (unidiff)
treef55aebd4314ab878bc39b6b08b8323a8ef78d803 /noncore/settings/networksettings2/ppp/PPPedit.cpp
parent7c8922b37b5bb7696c0ff2cbc999e2936b9b509f (diff)
downloadopie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.zip
opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.gz
opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.bz2
First import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/ppp/PPPedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/ppp/PPPedit.cpp48
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
8PPPEdit::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
20QString 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
32bool 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
40void PPPEdit::showData( PPPData_t & Data ) {
41 Auth->showData( Data ) ;
42 IP->showData( Data );
43 DNS->showData( Data );
44}
45
46void PPPEdit::SLOT_SelectTopic( int v ) {
47 Options_WS->raiseWidget( v );
48}