summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--examples/networksettings/examplemodule.cpp4
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
@@ -21,55 +21,55 @@ VirtualModule::VirtualModule() {
21// One can do this by calling setHandledInterfaceNames 21// One can do this by calling setHandledInterfaceNames
22// setHandledInterfaceNames(); 22// setHandledInterfaceNames();
23} 23}
24 24
25VirtualModule::~VirtualModule() { 25VirtualModule::~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 */
34bool VirtualModule::isOwner( Interface* iface ) { 34bool 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
39QWidget* VirtualModule::configure( Interface* ) { 39QWidget* 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
44QWidget* VirtualModule::information( Interface* iface ) { 44QWidget* VirtualModule::information( Interface* iface ) {
45 return new InterfaceInformationImp(0, "Interface info", iface ); 45 return new InterfaceInformationImp(0, "Interface info", iface );
46} 46}
47 47
48QList<Interface> VirtualModule::getInterfaces() { 48QList<Interface> VirtualModule::getInterfaces() {
49 return m_interfaces; 49 return m_interfaces;
50} 50}
51 51
52void VirtualModule::possibleNewInterfaces( QMap<QString, QString>& map) { 52void 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
58Interface* VirtualModule::addNewInterface( const QString& ) { 58Interface* 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
72bool VirtualModule::remove( Interface* ) { 72bool 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}