Diffstat (limited to 'noncore/settings/networksettings2/ppp/PPPedit.cpp') (more/less context) (ignore 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 @@ +#include <qwidgetstack.h> + +#include "PPPIPedit.h" +#include "PPPDNSedit.h" +#include "PPPAuthedit.h" +#include "PPPedit.h" + +PPPEdit::PPPEdit( QWidget * Parent ) : PPPGUI( Parent ){ + + Auth = new PPPAuthEdit( Options_WS ); + IP = new PPPIPEdit( Options_WS ); + DNS = new PPPDNSEdit( Options_WS ); + Options_WS->addWidget( Auth, 0 ); + Options_WS->addWidget( IP, 1 ); + Options_WS->addWidget( DNS, 2 ); + + Options_WS->raiseWidget( 0 ); +} + +QString PPPEdit::acceptable( void ) { + QString S; + S = Auth->acceptable(); + if( S.isEmpty() ) { + S = IP->acceptable(); + if( S.isEmpty() ) { + S = DNS->acceptable(); + } + } + return S; +} + +bool PPPEdit::commit( PPPData_t & Data ) { + bool SM ; + SM = Auth->commit( Data ); + SM |= IP->commit( Data ); + SM |= DNS->commit( Data ); + return SM; +} + +void PPPEdit::showData( PPPData_t & Data ) { + Auth->showData( Data ) ; + IP->showData( Data ); + DNS->showData( Data ); +} + +void PPPEdit::SLOT_SelectTopic( int v ) { + Options_WS->raiseWidget( v ); +} |