author | mickeyl <mickeyl> | 2004-04-24 16:44:28 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-24 16:44:28 (UTC) |
commit | 77c2cf85d5cabcc754a1cb5ab76674b263a914ee (patch) (unidiff) | |
tree | 643d13dbfa934a3017ccb6a27703fd7268d51035 | |
parent | 629ced22fc26892442be433403a9cfa9f662f08a (diff) | |
download | opie-77c2cf85d5cabcc754a1cb5ab76674b263a914ee.zip opie-77c2cf85d5cabcc754a1cb5ab76674b263a914ee.tar.gz opie-77c2cf85d5cabcc754a1cb5ab76674b263a914ee.tar.bz2 |
gcc 3.4 fixlet
-rw-r--r-- | examples/networksettings/examplemodule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/networksettings/examplemodule.cpp b/examples/networksettings/examplemodule.cpp index 703e6bd..1f64613 100644 --- a/examples/networksettings/examplemodule.cpp +++ b/examples/networksettings/examplemodule.cpp | |||
@@ -5,71 +5,71 @@ | |||
5 | #include <opie2/odebug.h> | 5 | #include <opie2/odebug.h> |
6 | using namespace Opie::Core; | 6 | using namespace Opie::Core; |
7 | 7 | ||
8 | #include <interfaces/interfaceinformationimp.h> | 8 | #include <interfaces/interfaceinformationimp.h> |
9 | 9 | ||
10 | #include <qwidget.h> | 10 | #include <qwidget.h> |
11 | 11 | ||
12 | VirtualModule::VirtualModule() { | 12 | VirtualModule::VirtualModule() { |
13 | Interface* iface = new VirtualInterface( 0 ); | 13 | Interface* iface = new VirtualInterface( 0 ); |
14 | iface->setHardwareName( "vpn" ); | 14 | iface->setHardwareName( "vpn" ); |
15 | iface->setInterfaceName( "Test VPN" ); | 15 | iface->setInterfaceName( "Test VPN" ); |
16 | m_interfaces.append( iface ); | 16 | m_interfaces.append( iface ); |
17 | 17 | ||
18 | // If we set up VPN via pptp | 18 | // If we set up VPN via pptp |
19 | // and networksettins was closed and now opened | 19 | // and networksettins was closed and now opened |
20 | // we need to hide the ppp device behind us | 20 | // we need to hide the ppp device behind us |
21 | // One can do this by calling setHandledInterfaceNames | 21 | // One can do this by calling setHandledInterfaceNames |
22 | // setHandledInterfaceNames(); | 22 | // setHandledInterfaceNames(); |
23 | } | 23 | } |
24 | 24 | ||
25 | VirtualModule::~VirtualModule() { | 25 | VirtualModule::~VirtualModule() { |
26 | m_interfaces.setAutoDelete( true ); | 26 | m_interfaces.setAutoDelete( true ); |
27 | m_interfaces.clear(); | 27 | m_interfaces.clear(); |
28 | } | 28 | } |
29 | 29 | ||
30 | 30 | ||
31 | /* | 31 | /* |
32 | * We're a VPN module | 32 | * We're a VPN module |
33 | */ | 33 | */ |
34 | bool VirtualModule::isOwner( Interface* iface ) { | 34 | bool VirtualModule::isOwner( Interface* iface ) { |
35 | /* check if it is our device */ | 35 | /* check if it is our device */ |
36 | return m_interfaces.find( iface ) != -1; | 36 | return m_interfaces.find( iface ) != -1; |
37 | } | 37 | } |
38 | 38 | ||
39 | QWidget* VirtualModule::configure( Interface* ) { | 39 | QWidget* VirtualModule::configure( Interface* ) { |
40 | /* We don't have any Config for now */ | 40 | /* We don't have any Config for now */ |
41 | return 0l; | 41 | return 0l; |
42 | } | 42 | } |
43 | 43 | ||
44 | QWidget* VirtualModule::information( Interface* iface ) { | 44 | QWidget* VirtualModule::information( Interface* iface ) { |
45 | return new InterfaceInformationImp(0, "Interface info", iface ); | 45 | return new InterfaceInformationImp(0, "Interface info", iface ); |
46 | } | 46 | } |
47 | 47 | ||
48 | QList<Interface> VirtualModule::getInterfaces() { | 48 | QList<Interface> VirtualModule::getInterfaces() { |
49 | return m_interfaces; | 49 | return m_interfaces; |
50 | } | 50 | } |
51 | 51 | ||
52 | void VirtualModule::possibleNewInterfaces( QMap<QString, QString>& map) { | 52 | void VirtualModule::possibleNewInterfaces( QMap<QString, QString>& map) { |
53 | map.insert( QObject::tr("VPN PPTP"), | 53 | map.insert( ::QObject::tr("VPN PPTP"), |
54 | QObject::tr("Add new Point to Point Tunnel Protocol connection" ) ); | 54 | ::QObject::tr("Add new Point to Point Tunnel Protocol connection" ) ); |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | Interface* VirtualModule::addNewInterface( const QString& ) { | 58 | Interface* VirtualModule::addNewInterface( const QString& ) { |
59 | /* check the str if we support more interfaces */ | 59 | /* check the str if we support more interfaces */ |
60 | /* | 60 | /* |
61 | Interface* iface = new VirtualInterface( 0 ); | 61 | Interface* iface = new VirtualInterface( 0 ); |
62 | iface->setModuleOwner( this ); | 62 | iface->setModuleOwner( this ); |
63 | return iface;*/ | 63 | return iface;*/ |
64 | 64 | ||
65 | // if we would support saving interfaces we could add | 65 | // if we would support saving interfaces we could add |
66 | // them here | 66 | // them here |
67 | 67 | ||
68 | return 0; | 68 | return 0; |
69 | } | 69 | } |
70 | 70 | ||
71 | 71 | ||
72 | bool VirtualModule::remove( Interface* ) { | 72 | bool VirtualModule::remove( Interface* ) { |
73 | /* we do not support removing our interface */ | 73 | /* we do not support removing our interface */ |
74 | return false; | 74 | return false; |
75 | } | 75 | } |