blob: d9ee3ff55a8e9ae1f16422312bea9d4a655900ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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");
}
|