Diffstat (limited to 'noncore/settings/networksettings/ppp/edit.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/edit.h | 20 |
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 | |||
@@ -46,13 +46,14 @@ | |||
46 | #include "kpppconfig.h" | 46 | #include "kpppconfig.h" |
47 | #include "pppdargs.h" | 47 | #include "pppdargs.h" |
48 | 48 | ||
49 | class IPLineEdit; | 49 | class IPLineEdit; |
50 | class PPPData; | ||
50 | 51 | ||
51 | class DialWidget : public QWidget { | 52 | class DialWidget : public QWidget { |
52 | Q_OBJECT | 53 | Q_OBJECT |
53 | public: | 54 | public: |
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 | ||
57 | public slots: | 58 | public slots: |
58 | bool save(); | 59 | bool save(); |
@@ -75,8 +76,9 @@ private: | |||
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 | ///////////////////////////////////////////////////////////////////////////// |
@@ -86,9 +88,9 @@ private: | |||
86 | ///////////////////////////////////////////////////////////////////////////// | 88 | ///////////////////////////////////////////////////////////////////////////// |
87 | class ExecWidget : public QWidget { | 89 | class ExecWidget : public QWidget { |
88 | Q_OBJECT | 90 | Q_OBJECT |
89 | public: | 91 | public: |
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 | ||
92 | public slots: | 94 | public slots: |
93 | bool save(); | 95 | bool save(); |
94 | 96 | ||
@@ -103,15 +105,16 @@ private: | |||
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 | ||
110 | class IPWidget : public QWidget { | 113 | class IPWidget : public QWidget { |
111 | Q_OBJECT | 114 | Q_OBJECT |
112 | public: | 115 | public: |
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 | ||
116 | public slots: | 119 | public slots: |
117 | void save(); | 120 | void save(); |
@@ -133,15 +136,16 @@ private: | |||
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 | ||
140 | class DNSWidget : public QWidget { | 144 | class DNSWidget : public QWidget { |
141 | Q_OBJECT | 145 | Q_OBJECT |
142 | public: | 146 | public: |
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 | ||
146 | public slots: | 150 | public slots: |
147 | void save(); | 151 | void save(); |
@@ -165,15 +169,16 @@ private: | |||
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 | ||
172 | class GatewayWidget : public QWidget { | 177 | class GatewayWidget : public QWidget { |
173 | Q_OBJECT | 178 | Q_OBJECT |
174 | public: | 179 | public: |
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 | ||
178 | public slots: | 183 | public slots: |
179 | void save(); | 184 | void save(); |
@@ -189,15 +194,16 @@ private: | |||
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 | ||
196 | class ScriptWidget : public QWidget { | 202 | class ScriptWidget : public QWidget { |
197 | Q_OBJECT | 203 | Q_OBJECT |
198 | public: | 204 | public: |
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 | ||
202 | public slots: | 208 | public slots: |
203 | void save(); | 209 | void save(); |
@@ -224,8 +230,9 @@ private: | |||
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 | ///////////////////////////////////////////////////////////////////////////// |
@@ -244,8 +251,9 @@ private slots: | |||
244 | void textChanged(const QString &); | 251 | void textChanged(const QString &); |
245 | 252 | ||
246 | private: | 253 | private: |
247 | QLineEdit *le; | 254 | QLineEdit *le; |
255 | |||
248 | }; | 256 | }; |
249 | 257 | ||
250 | 258 | ||
251 | #endif | 259 | #endif |