Diffstat (limited to 'examples/networksettings/examplemodule.cpp') (more/less context) (ignore 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,30 +1,34 @@ -#include <qwidget.h> +#include "exampleiface.h" +#include "examplemodule.h" + +/* OPIE */ +#include <opie2/odebug.h> +using namespace Opie::Core; #include <interfaces/interfaceinformationimp.h> -#include "exampleiface.h" -#include "examplemodule.h" +#include <qwidget.h> VirtualModule::VirtualModule() { Interface* iface = new VirtualInterface( 0 ); iface->setHardwareName( "vpn" ); iface->setInterfaceName( "Test VPN" ); m_interfaces.append( iface ); // If we set up VPN via pptp // and networksettins was closed and now opened // we need to hide the ppp device behind us // One can do this by calling setHandledInterfaceNames // setHandledInterfaceNames(); } VirtualModule::~VirtualModule() { m_interfaces.setAutoDelete( true ); m_interfaces.clear(); } /* * We're a VPN module */ bool VirtualModule::isOwner( Interface* iface ) { |