From 503bb111313dfb62ee6341069a75dad56bbd47bf Mon Sep 17 00:00:00 2001 From: benmeyer Date: Mon, 11 Nov 2002 21:30:17 +0000 Subject: Initial framing --- (limited to 'noncore') 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 @@ #include "pppimp.h" +PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { + +} + +/** + * Open up the peers file and read any set settings + * @param peer the peer file to edit. + */ +void PPPConfigureImp::setPeer(const QString &newPeer){ + peer = newPeer; +} + +/** + * Save the settings for the current peer. + */ +void PPPConfigureImp::accept(){ + // Check to make sure that all of the inputs are valid. + + // Save settings. +/** +/dev/modem or just modem + any +defaultroute - automaticly add route +noipdefault - get an ip from the server +usepeerdns - automaticly add dns +crtscts - flow control enabled +name - user name (and do secret file) +*/ + + // Make sure it is set in interfaces so pon/off can be used. + + // Close out the dialog + QDialog::accept(); +} + // pppconfigureimp.h 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 @@ class PPPConfigureImp : public PPP { +Q_OBJECT + public: - PPPConfigureImp(); - ~PPPConfigureImp(); + PPPConfigureImp(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); + void setPeer(const QString &peer); +protected: + void accept(); + +private: + QString peer; + }; #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 @@ #include "pppimp.h" +PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal, WFlags fl) : PPP(parent, name, modal, fl) { + +} + +/** + * Open up the peers file and read any set settings + * @param peer the peer file to edit. + */ +void PPPConfigureImp::setPeer(const QString &newPeer){ + peer = newPeer; +} + +/** + * Save the settings for the current peer. + */ +void PPPConfigureImp::accept(){ + // Check to make sure that all of the inputs are valid. + + // Save settings. +/** +/dev/modem or just modem + any +defaultroute - automaticly add route +noipdefault - get an ip from the server +usepeerdns - automaticly add dns +crtscts - flow control enabled +name - user name (and do secret file) +*/ + + // Make sure it is set in interfaces so pon/off can be used. + + // Close out the dialog + QDialog::accept(); +} + // pppconfigureimp.h 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 @@ class PPPConfigureImp : public PPP { +Q_OBJECT + public: - PPPConfigureImp(); - ~PPPConfigureImp(); + PPPConfigureImp(QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0); + void setPeer(const QString &peer); +protected: + void accept(); + +private: + QString peer; + }; #endif -- cgit v0.9.0.2