-rw-r--r-- | noncore/settings/networksettings2/ppp/ppprun.h | 37 | ||||
-rw-r--r-- | noncore/settings/networksettings2/vpn/vpnGUI.cpp | 76 | ||||
-rw-r--r-- | noncore/settings/networksettings2/vpn/vpnGUI.h | 43 | ||||
-rw-r--r-- | noncore/settings/networksettings2/vpn/vpnGUI.ui | 131 |
4 files changed, 168 insertions, 119 deletions
diff --git a/noncore/settings/networksettings2/ppp/ppprun.h b/noncore/settings/networksettings2/ppp/ppprun.h new file mode 100644 index 0000000..76a05be --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/ppprun.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef PPPRUN_H | ||
2 | #define PPPRUN_H | ||
3 | |||
4 | #include <qregexp.h> | ||
5 | #include <asconnection.h> | ||
6 | #include "pppdata.h" | ||
7 | |||
8 | class PPPRun : public AsConnection { | ||
9 | |||
10 | public : | ||
11 | |||
12 | PPPRun( ANetNodeInstance * NNI, | ||
13 | PPPData & Data ) : | ||
14 | AsConnection( NNI ), | ||
15 | Pat( "eth[0-9]" ) | ||
16 | { D = &Data; } | ||
17 | |||
18 | protected : | ||
19 | |||
20 | void detectState( NodeCollection * NC ); | ||
21 | bool setState( NodeCollection * NC, Action_t A ); | ||
22 | bool canSetState( State_t S, Action_t A ) | ||
23 | { return connection()->findNext( netNode() )->runtime()->canSetState( S,A ); } | ||
24 | |||
25 | bool handlesInterface( const QString & I ); | ||
26 | |||
27 | private : | ||
28 | |||
29 | bool isMyPPPDRunning( void ); | ||
30 | bool isMyPPPUp( void ); | ||
31 | |||
32 | PPPData_t * D; | ||
33 | QRegExp Pat; | ||
34 | |||
35 | }; | ||
36 | |||
37 | #endif | ||
diff --git a/noncore/settings/networksettings2/vpn/vpnGUI.cpp b/noncore/settings/networksettings2/vpn/vpnGUI.cpp deleted file mode 100644 index 708c92b..0000000 --- a/noncore/settings/networksettings2/vpn/vpnGUI.cpp +++ b/dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'vpnGUI.ui' | ||
3 | ** | ||
4 | ** Created: Tue Mar 30 02:42:53 2004 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #include "vpnGUI.h" | ||
10 | |||
11 | #include <qcheckbox.h> | ||
12 | #include <qlabel.h> | ||
13 | #include <qlineedit.h> | ||
14 | #include <qmultilineedit.h> | ||
15 | #include <qpushbutton.h> | ||
16 | #include <qlayout.h> | ||
17 | #include <qvariant.h> | ||
18 | #include <qtooltip.h> | ||
19 | #include <qwhatsthis.h> | ||
20 | |||
21 | /* | ||
22 | * Constructs a VPNGUI which is a child of 'parent', with the | ||
23 | * name 'name' and widget flags set to 'f' | ||
24 | */ | ||
25 | VPNGUI::VPNGUI( QWidget* parent, const char* name, WFlags fl ) | ||
26 | : QWidget( parent, name, fl ) | ||
27 | { | ||
28 | if ( !name ) | ||
29 | setName( "VPN_FRM" ); | ||
30 | resize( 283, 199 ); | ||
31 | setCaption( tr( "VPN" ) ); | ||
32 | VPN_FRMLayout = new QVBoxLayout( this ); | ||
33 | VPN_FRMLayout->setSpacing( 2 ); | ||
34 | VPN_FRMLayout->setMargin( 2 ); | ||
35 | |||
36 | Layout4 = new QHBoxLayout; | ||
37 | Layout4->setSpacing( 6 ); | ||
38 | Layout4->setMargin( 0 ); | ||
39 | |||
40 | TextLabel4 = new QLabel( this, "TextLabel4" ); | ||
41 | TextLabel4->setText( tr( "Name" ) ); | ||
42 | Layout4->addWidget( TextLabel4 ); | ||
43 | |||
44 | Name_LE = new QLineEdit( this, "Name_LE" ); | ||
45 | Layout4->addWidget( Name_LE ); | ||
46 | VPN_FRMLayout->addLayout( Layout4 ); | ||
47 | |||
48 | TextLabel3 = new QLabel( this, "TextLabel3" ); | ||
49 | TextLabel3->setText( tr( "Description" ) ); | ||
50 | VPN_FRMLayout->addWidget( TextLabel3 ); | ||
51 | |||
52 | Description_LE = new QMultiLineEdit( this, "Description_LE" ); | ||
53 | VPN_FRMLayout->addWidget( Description_LE ); | ||
54 | |||
55 | Layout5 = new QHBoxLayout; | ||
56 | Layout5->setSpacing( 6 ); | ||
57 | Layout5->setMargin( 0 ); | ||
58 | |||
59 | Automatic_CB = new QCheckBox( this, "Automatic_CB" ); | ||
60 | Automatic_CB->setText( tr( "Start automatically" ) ); | ||
61 | Layout5->addWidget( Automatic_CB ); | ||
62 | |||
63 | Confirm_CB = new QCheckBox( this, "Confirm_CB" ); | ||
64 | Confirm_CB->setText( tr( "Confirm before start" ) ); | ||
65 | Layout5->addWidget( Confirm_CB ); | ||
66 | VPN_FRMLayout->addLayout( Layout5 ); | ||
67 | } | ||
68 | |||
69 | /* | ||
70 | * Destroys the object and frees any allocated resources | ||
71 | */ | ||
72 | VPNGUI::~VPNGUI() | ||
73 | { | ||
74 | // no need to delete child widgets, Qt does it all for us | ||
75 | } | ||
76 | |||
diff --git a/noncore/settings/networksettings2/vpn/vpnGUI.h b/noncore/settings/networksettings2/vpn/vpnGUI.h deleted file mode 100644 index fcc3e54..0000000 --- a/noncore/settings/networksettings2/vpn/vpnGUI.h +++ b/dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form interface generated from reading ui file 'vpnGUI.ui' | ||
3 | ** | ||
4 | ** Created: Tue Mar 30 02:42:50 2004 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #ifndef VPN_FRM_H | ||
10 | #define VPN_FRM_H | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qwidget.h> | ||
14 | class QVBoxLayout; | ||
15 | class QHBoxLayout; | ||
16 | class QGridLayout; | ||
17 | class QCheckBox; | ||
18 | class QLabel; | ||
19 | class QLineEdit; | ||
20 | class QMultiLineEdit; | ||
21 | |||
22 | class VPNGUI : public QWidget | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | |||
26 | public: | ||
27 | VPNGUI( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | ||
28 | ~VPNGUI(); | ||
29 | |||
30 | QLabel* TextLabel4; | ||
31 | QLineEdit* Name_LE; | ||
32 | QLabel* TextLabel3; | ||
33 | QMultiLineEdit* Description_LE; | ||
34 | QCheckBox* Automatic_CB; | ||
35 | QCheckBox* Confirm_CB; | ||
36 | |||
37 | protected: | ||
38 | QVBoxLayout* VPN_FRMLayout; | ||
39 | QHBoxLayout* Layout4; | ||
40 | QHBoxLayout* Layout5; | ||
41 | }; | ||
42 | |||
43 | #endif // VPN_FRM_H | ||
diff --git a/noncore/settings/networksettings2/vpn/vpnGUI.ui b/noncore/settings/networksettings2/vpn/vpnGUI.ui new file mode 100644 index 0000000..490fc90 --- a/dev/null +++ b/noncore/settings/networksettings2/vpn/vpnGUI.ui | |||
@@ -0,0 +1,131 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>VPNGUI</class> | ||
3 | <widget> | ||
4 | <class>QWidget</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>VPN_FRM</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>283</width> | ||
15 | <height>199</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>VPN</string> | ||
21 | </property> | ||
22 | <property> | ||
23 | <name>layoutMargin</name> | ||
24 | </property> | ||
25 | <property> | ||
26 | <name>layoutSpacing</name> | ||
27 | </property> | ||
28 | <vbox> | ||
29 | <property stdset="1"> | ||
30 | <name>margin</name> | ||
31 | <number>2</number> | ||
32 | </property> | ||
33 | <property stdset="1"> | ||
34 | <name>spacing</name> | ||
35 | <number>2</number> | ||
36 | </property> | ||
37 | <widget> | ||
38 | <class>QLayoutWidget</class> | ||
39 | <property stdset="1"> | ||
40 | <name>name</name> | ||
41 | <cstring>Layout4</cstring> | ||
42 | </property> | ||
43 | <hbox> | ||
44 | <property stdset="1"> | ||
45 | <name>margin</name> | ||
46 | <number>0</number> | ||
47 | </property> | ||
48 | <property stdset="1"> | ||
49 | <name>spacing</name> | ||
50 | <number>6</number> | ||
51 | </property> | ||
52 | <widget> | ||
53 | <class>QLabel</class> | ||
54 | <property stdset="1"> | ||
55 | <name>name</name> | ||
56 | <cstring>TextLabel4</cstring> | ||
57 | </property> | ||
58 | <property stdset="1"> | ||
59 | <name>text</name> | ||
60 | <string>Name</string> | ||
61 | </property> | ||
62 | </widget> | ||
63 | <widget> | ||
64 | <class>QLineEdit</class> | ||
65 | <property stdset="1"> | ||
66 | <name>name</name> | ||
67 | <cstring>Name_LE</cstring> | ||
68 | </property> | ||
69 | </widget> | ||
70 | </hbox> | ||
71 | </widget> | ||
72 | <widget> | ||
73 | <class>QLabel</class> | ||
74 | <property stdset="1"> | ||
75 | <name>name</name> | ||
76 | <cstring>TextLabel3</cstring> | ||
77 | </property> | ||
78 | <property stdset="1"> | ||
79 | <name>text</name> | ||
80 | <string>Description</string> | ||
81 | </property> | ||
82 | </widget> | ||
83 | <widget> | ||
84 | <class>QMultiLineEdit</class> | ||
85 | <property stdset="1"> | ||
86 | <name>name</name> | ||
87 | <cstring>Description_LE</cstring> | ||
88 | </property> | ||
89 | </widget> | ||
90 | <widget> | ||
91 | <class>QLayoutWidget</class> | ||
92 | <property stdset="1"> | ||
93 | <name>name</name> | ||
94 | <cstring>Layout5</cstring> | ||
95 | </property> | ||
96 | <hbox> | ||
97 | <property stdset="1"> | ||
98 | <name>margin</name> | ||
99 | <number>0</number> | ||
100 | </property> | ||
101 | <property stdset="1"> | ||
102 | <name>spacing</name> | ||
103 | <number>6</number> | ||
104 | </property> | ||
105 | <widget> | ||
106 | <class>QCheckBox</class> | ||
107 | <property stdset="1"> | ||
108 | <name>name</name> | ||
109 | <cstring>Automatic_CB</cstring> | ||
110 | </property> | ||
111 | <property stdset="1"> | ||
112 | <name>text</name> | ||
113 | <string>Start automatically</string> | ||
114 | </property> | ||
115 | </widget> | ||
116 | <widget> | ||
117 | <class>QCheckBox</class> | ||
118 | <property stdset="1"> | ||
119 | <name>name</name> | ||
120 | <cstring>Confirm_CB</cstring> | ||
121 | </property> | ||
122 | <property stdset="1"> | ||
123 | <name>text</name> | ||
124 | <string>Confirm before start</string> | ||
125 | </property> | ||
126 | </widget> | ||
127 | </hbox> | ||
128 | </widget> | ||
129 | </vbox> | ||
130 | </widget> | ||
131 | </UI> | ||