Diffstat (limited to 'noncore/settings/networksettings/ppp/interfaceppp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/interfaceppp.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/ppp/interfaceppp.cpp b/noncore/settings/networksettings/ppp/interfaceppp.cpp new file mode 100644 index 0000000..d9ee3ff --- a/dev/null +++ b/noncore/settings/networksettings/ppp/interfaceppp.cpp @@ -0,0 +1,48 @@ +#include "interfaceppp.h" +#include "modem.h" +#include "pppdata.h" + +InterfacePPP::InterfacePPP(QObject *parent, const char *name, bool status) + : Interface(parent, name, status), + _modem(0), + _pppdata(0) +{ + qDebug("InterfacePPP::InterfacePPP("); +} + +PPPData* InterfacePPP::data() +{ + if (!_pppdata){ + _pppdata = new PPPData(); + _pppdata->setModemDevice( getInterfaceName() ); + _pppdata->setAccount( getHardwareName() ); + } + return _pppdata; +} + +Modem* InterfacePPP::modem() +{ + if (!_modem){ + _modem = new Modem( data() ); + } + return _modem; +} + +bool InterfacePPP::refresh() +{ + qDebug("InterfacePPP::refresh()"); + return false; +} + +void InterfacePPP::start() +{ + qDebug("InterfacePPP::start"); + +} + +void InterfacePPP::stop() +{ + qDebug("InterfacePPP::stop"); + +} + |