summaryrefslogtreecommitdiff
authorwimpie <wimpie>2004-08-13 13:36:42 (UTC)
committer wimpie <wimpie>2004-08-13 13:36:42 (UTC)
commitf555ae2e285e3cfd4be08629963c5e60812cb570 (patch) (unidiff)
treedb3b3645c88e29f58202d534db9af304acfcbaec
parent9225b5ae87d6134d9878737eba570f0d3e2553e1 (diff)
downloadopie-f555ae2e285e3cfd4be08629963c5e60812cb570.zip
opie-f555ae2e285e3cfd4be08629963c5e60812cb570.tar.gz
opie-f555ae2e285e3cfd4be08629963c5e60812cb570.tar.bz2
need this files too ;-(
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/activatevpn.cpp53
-rw-r--r--noncore/settings/networksettings2/activatevpn.h20
2 files changed, 73 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/activatevpn.cpp b/noncore/settings/networksettings2/activatevpn.cpp
new file mode 100644
index 0000000..2bdef0a
--- a/dev/null
+++ b/noncore/settings/networksettings2/activatevpn.cpp
@@ -0,0 +1,53 @@
1#include <qlistview.h>
2#include <qheader.h>
3#include <resources.h>
4#include "activatevpn.h"
5
6class MyCheckListItem : public QCheckListItem {
7
8public :
9
10 MyCheckListItem( NodeCollection * N, QListView * V );
11
12 NodeCollection * NC;
13
14};
15
16MyCheckListItem::MyCheckListItem( NodeCollection * N, QListView * V ):
17 QCheckListItem( V, N->name() ) {
18 NC = N;
19}
20
21ActivateVPN::ActivateVPN( void ) :
22 ActivateVPNGUI( 0, 0, TRUE ), NSD() {
23
24 QCheckListItem * CI;
25 printf( "%d\n", __LINE__ );
26 VPN_LV->clear();
27 VPN_LV->header()->hide();
28 printf( "%d\n", __LINE__ );
29
30 for( QDictIterator<NodeCollection> it(NSResources->connections());
31 it.current();
32 ++it ) {
33 printf( "%d\n", __LINE__ );
34 if( it.current()->triggeredBy( "vpn" ) ) {
35 printf( "%d\n", __LINE__ );
36 CI = new MyCheckListItem( it.current(), VPN_LV );
37 printf( "%d\n", __LINE__ );
38 }
39 printf( "%d\n", __LINE__ );
40 }
41}
42
43ActivateVPN::~ActivateVPN( void ) {
44}
45
46void ActivateVPN::SLOT_ChangedVPNSetting( QListViewItem * I ) {
47
48 MyCheckListItem * MI = (MyCheckListItem *)I;
49
50 printf( "%s : %d\n",
51 MI->text(0).latin1(),
52 MI->isOn() );
53}
diff --git a/noncore/settings/networksettings2/activatevpn.h b/noncore/settings/networksettings2/activatevpn.h
new file mode 100644
index 0000000..5794757
--- a/dev/null
+++ b/noncore/settings/networksettings2/activatevpn.h
@@ -0,0 +1,20 @@
1#include "activatevpnGUI.h"
2#include "nsdata.h"
3
4class ActivateVPN : public ActivateVPNGUI {
5
6 Q_OBJECT
7
8public :
9
10 ActivateVPN( void );
11 ~ActivateVPN( void );
12
13public slots :
14
15 void SLOT_ChangedVPNSetting( QListViewItem * );
16
17private :
18
19 NetworkSettingsData NSD;
20};