author | mickeyl <mickeyl> | 2004-04-05 13:49:07 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-05 13:49:07 (UTC) |
commit | f44b1d4abe82cfb74db68bffcaf240f6f6134708 (patch) (unidiff) | |
tree | c150abb3cbc842fd930d3ab7543a0b34ec3145ad /examples/networksettings/examplemodule.cpp | |
parent | 997a521a3ee84f614e2781a663911096ffb4a91a (diff) | |
download | opie-f44b1d4abe82cfb74db68bffcaf240f6f6134708.zip opie-f44b1d4abe82cfb74db68bffcaf240f6f6134708.tar.gz opie-f44b1d4abe82cfb74db68bffcaf240f6f6134708.tar.bz2 |
use opie debugging
Diffstat (limited to 'examples/networksettings/examplemodule.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | examples/networksettings/examplemodule.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/networksettings/examplemodule.cpp b/examples/networksettings/examplemodule.cpp index d7fd718..703e6bd 100644 --- a/examples/networksettings/examplemodule.cpp +++ b/examples/networksettings/examplemodule.cpp | |||
@@ -1,18 +1,22 @@ | |||
1 | #include <qwidget.h> | 1 | #include "exampleiface.h" |
2 | #include "examplemodule.h" | ||
3 | |||
4 | /* OPIE */ | ||
5 | #include <opie2/odebug.h> | ||
6 | using namespace Opie::Core; | ||
2 | 7 | ||
3 | #include <interfaces/interfaceinformationimp.h> | 8 | #include <interfaces/interfaceinformationimp.h> |
4 | 9 | ||
5 | #include "exampleiface.h" | 10 | #include <qwidget.h> |
6 | #include "examplemodule.h" | ||
7 | 11 | ||
8 | VirtualModule::VirtualModule() { | 12 | VirtualModule::VirtualModule() { |
9 | Interface* iface = new VirtualInterface( 0 ); | 13 | Interface* iface = new VirtualInterface( 0 ); |
10 | iface->setHardwareName( "vpn" ); | 14 | iface->setHardwareName( "vpn" ); |
11 | iface->setInterfaceName( "Test VPN" ); | 15 | iface->setInterfaceName( "Test VPN" ); |
12 | m_interfaces.append( iface ); | 16 | m_interfaces.append( iface ); |
13 | 17 | ||
14 | // If we set up VPN via pptp | 18 | // If we set up VPN via pptp |
15 | // and networksettins was closed and now opened | 19 | // and networksettins was closed and now opened |
16 | // we need to hide the ppp device behind us | 20 | // we need to hide the ppp device behind us |
17 | // One can do this by calling setHandledInterfaceNames | 21 | // One can do this by calling setHandledInterfaceNames |
18 | // setHandledInterfaceNames(); | 22 | // setHandledInterfaceNames(); |