summaryrefslogtreecommitdiff
path: root/examples/networksettings/exampleiface.cpp
Side-by-side diff
Diffstat (limited to 'examples/networksettings/exampleiface.cpp') (more/less context) (show whitespace changes)
-rw-r--r--examples/networksettings/exampleiface.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/networksettings/exampleiface.cpp b/examples/networksettings/exampleiface.cpp
index 5267a9c..8012bb2 100644
--- a/examples/networksettings/exampleiface.cpp
+++ b/examples/networksettings/exampleiface.cpp
@@ -1,32 +1,35 @@
#include "exampleiface.h"
+#include <opie2/odebug.h>
+using namespace Opie::Core;
+
VirtualInterface::VirtualInterface( QObject* parent,
const char* name,
bool status )
: Interface(parent, name, status )
{
}
VirtualInterface::~VirtualInterface() {
}
bool VirtualInterface::refresh() {
/* we do VPN over ppp
* so replace the interfaceName with
* something actual existing
* I take wlan0 in my case
*/
QString old = getInterfaceName();
- qWarning("Interface name was " + old );
+ odebug << "Interface name was " << old << oendl;
setInterfaceName( "wlan0" );
bool b =Interface::refresh();
setInterfaceName( old );
/* new and old interface name */
emit updateInterface(this);
return b;
}
void VirtualInterface::start() {