summaryrefslogtreecommitdiff
path: root/examples/networksettings/examplemodule.cpp
Unidiff
Diffstat (limited to 'examples/networksettings/examplemodule.cpp') (more/less context) (show whitespace changes)
-rw-r--r--examples/networksettings/examplemodule.cpp10
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>
6using 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
8VirtualModule::VirtualModule() { 12VirtualModule::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();