Diffstat (limited to 'noncore/settings/networksettings2/activatevpn.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/activatevpn.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/settings/networksettings2/activatevpn.cpp b/noncore/settings/networksettings2/activatevpn.cpp index 768a031..35a881b 100644 --- a/noncore/settings/networksettings2/activatevpn.cpp +++ b/noncore/settings/networksettings2/activatevpn.cpp @@ -1,48 +1,48 @@ #include <qlistview.h> #include <qheader.h> #include <resources.h> #include "activatevpn.h" class MyCheckListItem : public QCheckListItem { public : - MyCheckListItem( NodeCollection * N, QListView * V ); + MyCheckListItem( NetworkSetup * N, QListView * V ); - NodeCollection * NC; + NetworkSetup * NC; }; -MyCheckListItem::MyCheckListItem( NodeCollection * N, QListView * V ): +MyCheckListItem::MyCheckListItem( NetworkSetup * N, QListView * V ): QCheckListItem( V, N->name() ) { NC = N; } ActivateVPN::ActivateVPN( const QString & I ) : ActivateVPNGUI( 0, 0, TRUE ), NSD() { QCheckListItem * CI; VPN_LV->clear(); VPN_LV->header()->hide(); - // find all connections that want to be triggered by this interface - for( QDictIterator<NodeCollection> it(NSResources->connections()); + // find all NetworkSetups that want to be triggered by this interface + for( QDictIterator<NetworkSetup> it(NSResources->networkSetups()); it.current(); ++it ) { if( it.current()->triggeredBy( I ) ) { CI = new MyCheckListItem( it.current(), VPN_LV ); } } } ActivateVPN::~ActivateVPN( void ) { } void ActivateVPN::SLOT_ChangedVPNSetting( QListViewItem * I ) { MyCheckListItem * MI = (MyCheckListItem *)I; printf( "%s : %d\n", MI->text(0).latin1(), MI->isOn() ); } |