summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/edit.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/edit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/edit.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/settings/networksettings/ppp/edit.h b/noncore/settings/networksettings/ppp/edit.h
index cd0161f..2cc0fed 100644
--- a/noncore/settings/networksettings/ppp/edit.h
+++ b/noncore/settings/networksettings/ppp/edit.h
@@ -44,17 +44,18 @@
44//#include <kdialogbase.h> 44//#include <kdialogbase.h>
45#include "scriptedit.h" 45#include "scriptedit.h"
46#include "kpppconfig.h" 46#include "kpppconfig.h"
47#include "pppdargs.h" 47#include "pppdargs.h"
48 48
49class IPLineEdit; 49class IPLineEdit;
50class PPPData;
50 51
51class DialWidget : public QWidget { 52class DialWidget : public QWidget {
52 Q_OBJECT 53 Q_OBJECT
53public: 54public:
54 DialWidget( QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 55 DialWidget( PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
55 ~DialWidget() {} 56 ~DialWidget() {}
56 57
57public slots: 58public slots:
58 bool save(); 59 bool save();
59 void pppdargsbutton(); 60 void pppdargsbutton();
60 void numbersChanged(); 61 void numbersChanged();
@@ -73,24 +74,25 @@ private:
73 QLabel *auth_l; 74 QLabel *auth_l;
74 QCheckBox *store_password; 75 QCheckBox *store_password;
75 76
76 // for the phonenumber selection 77 // for the phonenumber selection
77 QPushButton *add, *del, *up, *down; 78 QPushButton *add, *del, *up, *down;
78 QListBox *numbers; 79 QListBox *numbers;
80 PPPData *_pppdata;
79}; 81};
80 82
81 83
82///////////////////////////////////////////////////////////////////////////// 84/////////////////////////////////////////////////////////////////////////////
83// 85//
84// tab-window to select what to execute when 86// tab-window to select what to execute when
85// 87//
86///////////////////////////////////////////////////////////////////////////// 88/////////////////////////////////////////////////////////////////////////////
87class ExecWidget : public QWidget { 89class ExecWidget : public QWidget {
88 Q_OBJECT 90 Q_OBJECT
89public: 91public:
90 ExecWidget(QWidget *parent=0, bool isnewaccount=true, const char *name=0); 92 ExecWidget(PPPData*, QWidget *parent=0, bool isnewaccount=true, const char *name=0);
91 93
92public slots: 94public slots:
93 bool save(); 95 bool save();
94 96
95private: 97private:
96 QLineEdit *before_connect; 98 QLineEdit *before_connect;
@@ -101,19 +103,20 @@ private:
101 103
102 QLineEdit *predisconnect; 104 QLineEdit *predisconnect;
103 QLabel *predisconnect_label; 105 QLabel *predisconnect_label;
104 106
105 QLineEdit *discommand; 107 QLineEdit *discommand;
106 QLabel *discommand_label; 108 QLabel *discommand_label;
109 PPPData *_pppdata;
107}; 110};
108 111
109 112
110class IPWidget : public QWidget { 113class IPWidget : public QWidget {
111 Q_OBJECT 114 Q_OBJECT
112public: 115public:
113 IPWidget( QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 116 IPWidget(PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
114 ~IPWidget() {} 117 ~IPWidget() {}
115 118
116public slots: 119public slots:
117 void save(); 120 void save();
118 121
119protected slots: 122protected slots:
@@ -131,19 +134,20 @@ private:
131 QRadioButton *staticadd_rb; 134 QRadioButton *staticadd_rb;
132 135
133 IPLineEdit *ipaddress_l; 136 IPLineEdit *ipaddress_l;
134 IPLineEdit *subnetmask_l; 137 IPLineEdit *subnetmask_l;
135 138
136 QCheckBox *autoname; 139 QCheckBox *autoname;
140 PPPData *_pppdata;
137}; 141};
138 142
139 143
140class DNSWidget : public QWidget { 144class DNSWidget : public QWidget {
141 Q_OBJECT 145 Q_OBJECT
142public: 146public:
143 DNSWidget( QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 147 DNSWidget( PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
144 ~DNSWidget() {} 148 ~DNSWidget() {}
145 149
146public slots: 150public slots:
147 void save(); 151 void save();
148 152
149protected slots: 153protected slots:
@@ -163,19 +167,20 @@ private:
163 QPushButton *add; 167 QPushButton *add;
164 QPushButton *remove; 168 QPushButton *remove;
165 QListBox *dnsservers; 169 QListBox *dnsservers;
166 QLineEdit *dnsdomain; 170 QLineEdit *dnsdomain;
167 QLabel *dnsdomain_label; 171 QLabel *dnsdomain_label;
168 QCheckBox *exdnsdisabled_toggle; 172 QCheckBox *exdnsdisabled_toggle;
173 PPPData *_pppdata;
169}; 174};
170 175
171 176
172class GatewayWidget : public QWidget { 177class GatewayWidget : public QWidget {
173 Q_OBJECT 178 Q_OBJECT
174public: 179public:
175 GatewayWidget( QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 180 GatewayWidget(PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
176 ~GatewayWidget() {} 181 ~GatewayWidget() {}
177 182
178public slots: 183public slots:
179 void save(); 184 void save();
180 185
181private slots: 186private slots:
@@ -187,19 +192,20 @@ private:
187 QGroupBox *box1; 192 QGroupBox *box1;
188 QButtonGroup *rb; 193 QButtonGroup *rb;
189 QRadioButton *defaultgateway; 194 QRadioButton *defaultgateway;
190 QRadioButton *staticgateway; 195 QRadioButton *staticgateway;
191 IPLineEdit *gatewayaddr; 196 IPLineEdit *gatewayaddr;
192 QCheckBox *defaultroute; 197 QCheckBox *defaultroute;
198 PPPData *_pppdata;
193}; 199};
194 200
195 201
196class ScriptWidget : public QWidget { 202class ScriptWidget : public QWidget {
197 Q_OBJECT 203 Q_OBJECT
198public: 204public:
199 ScriptWidget( QWidget *parent=0, bool isnewaccount = true, const char *name=0 ); 205 ScriptWidget(PPPData*, QWidget *parent=0, bool isnewaccount = true, const char *name=0 );
200 ~ScriptWidget() {} 206 ~ScriptWidget() {}
201 207
202public slots: 208public slots:
203 void save(); 209 void save();
204 bool check(); 210 bool check();
205 211
@@ -222,12 +228,13 @@ private:
222 QPushButton *add; 228 QPushButton *add;
223 QPushButton *remove; 229 QPushButton *remove;
224 QPushButton *insert; 230 QPushButton *insert;
225 QListBox *sl, *stl; 231 QListBox *sl, *stl;
226 232
227 QScrollBar *slb; 233 QScrollBar *slb;
234 PPPData *_pppdata;
228}; 235};
229 236
230 237
231///////////////////////////////////////////////////////////////////////////// 238/////////////////////////////////////////////////////////////////////////////
232// 239//
233// Used to specify a new phone number 240// Used to specify a new phone number
@@ -242,10 +249,11 @@ public:
242 249
243private slots: 250private slots:
244 void textChanged(const QString &); 251 void textChanged(const QString &);
245 252
246private: 253private:
247 QLineEdit *le; 254 QLineEdit *le;
255
248}; 256};
249 257
250 258
251#endif 259#endif