Diffstat (limited to 'noncore/settings/networksettings/ppp/interfaceppp.cpp') (more/less context) (show 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 @@ | |||
1 | #include "interfaceppp.h" | ||
2 | #include "modem.h" | ||
3 | #include "pppdata.h" | ||
4 | |||
5 | InterfacePPP::InterfacePPP(QObject *parent, const char *name, bool status) | ||
6 | : Interface(parent, name, status), | ||
7 | _modem(0), | ||
8 | _pppdata(0) | ||
9 | { | ||
10 | qDebug("InterfacePPP::InterfacePPP("); | ||
11 | } | ||
12 | |||
13 | PPPData* InterfacePPP::data() | ||
14 | { | ||
15 | if (!_pppdata){ | ||
16 | _pppdata = new PPPData(); | ||
17 | _pppdata->setModemDevice( getInterfaceName() ); | ||
18 | _pppdata->setAccount( getHardwareName() ); | ||
19 | } | ||
20 | return _pppdata; | ||
21 | } | ||
22 | |||
23 | Modem* InterfacePPP::modem() | ||
24 | { | ||
25 | if (!_modem){ | ||
26 | _modem = new Modem( data() ); | ||
27 | } | ||
28 | return _modem; | ||
29 | } | ||
30 | |||
31 | bool InterfacePPP::refresh() | ||
32 | { | ||
33 | qDebug("InterfacePPP::refresh()"); | ||
34 | return false; | ||
35 | } | ||
36 | |||
37 | void InterfacePPP::start() | ||
38 | { | ||
39 | qDebug("InterfacePPP::start"); | ||
40 | |||
41 | } | ||
42 | |||
43 | void InterfacePPP::stop() | ||
44 | { | ||
45 | qDebug("InterfacePPP::stop"); | ||
46 | |||
47 | } | ||
48 | |||