author | tille <tille> | 2003-05-30 15:06:17 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-30 15:06:17 (UTC) |
commit | 8699d02f6c152afed9490e7e7a4315044261e6e8 (patch) (unidiff) | |
tree | d2ee2ba401c7a9db0e33beaf0617a1456fe01d50 /noncore/settings/networksettings/ppp/modemcmds.cpp | |
parent | d8cec07fe5e54a68afe4feca574f9f4d2433e0c1 (diff) | |
download | opie-8699d02f6c152afed9490e7e7a4315044261e6e8.zip opie-8699d02f6c152afed9490e7e7a4315044261e6e8.tar.gz opie-8699d02f6c152afed9490e7e7a4315044261e6e8.tar.bz2 |
modem and pppdata is now member of interfaceppp
Diffstat (limited to 'noncore/settings/networksettings/ppp/modemcmds.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/modemcmds.cpp | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/noncore/settings/networksettings/ppp/modemcmds.cpp b/noncore/settings/networksettings/ppp/modemcmds.cpp index 65032e8..1d9db6e 100644 --- a/noncore/settings/networksettings/ppp/modemcmds.cpp +++ b/noncore/settings/networksettings/ppp/modemcmds.cpp | |||
@@ -42,4 +42,4 @@ | |||
42 | 42 | ||
43 | ModemCommands::ModemCommands(QWidget *parent, const char *name) | 43 | ModemCommands::ModemCommands(PPPData *pd, QWidget *parent, const char *name) |
44 | : QDialog(parent, name, true ) //, i18n("Edit Modem Commands") , Ok|Cancel) | 44 | : QDialog(parent, name, true ), _pppdata(pd) |
45 | { | 45 | { |
@@ -242,36 +242,36 @@ ModemCommands::ModemCommands(QWidget *parent, const char *name) | |||
242 | //set stuff from gpppdata | 242 | //set stuff from gpppdata |
243 | preinitslider->setValue(PPPData::data()->modemPreInitDelay()); | 243 | preinitslider->setValue(_pppdata->modemPreInitDelay()); |
244 | lpreinitslider->setNum(PPPData::data()->modemPreInitDelay()); | 244 | lpreinitslider->setNum(_pppdata->modemPreInitDelay()); |
245 | for(int i = 0; i < PPPData::NumInitStrings; i++) | 245 | for(int i = 0; i < PPPData::NumInitStrings; i++) |
246 | initstr[i]->setText(PPPData::data()->modemInitStr(i)); | 246 | initstr[i]->setText(_pppdata->modemInitStr(i)); |
247 | initslider->setValue(PPPData::data()->modemInitDelay()); | 247 | initslider->setValue(_pppdata->modemInitDelay()); |
248 | linitslider->setNum(PPPData::data()->modemInitDelay()); | 248 | linitslider->setNum(_pppdata->modemInitDelay()); |
249 | initresp->setText(PPPData::data()->modemInitResp()); | 249 | initresp->setText(_pppdata->modemInitResp()); |
250 | 250 | ||
251 | durationslider->setValue(PPPData::data()->modemToneDuration()); | 251 | durationslider->setValue(_pppdata->modemToneDuration()); |
252 | ldurationslider->setNum(PPPData::data()->modemToneDuration()); | 252 | ldurationslider->setNum(_pppdata->modemToneDuration()); |
253 | 253 | ||
254 | nodetectdialtone->setText(PPPData::data()->modemNoDialToneDetectionStr()); | 254 | nodetectdialtone->setText(_pppdata->modemNoDialToneDetectionStr()); |
255 | dialstr->setText(PPPData::data()->modemDialStr()); | 255 | dialstr->setText(_pppdata->modemDialStr()); |
256 | connectresp->setText(PPPData::data()->modemConnectResp()); | 256 | connectresp->setText(_pppdata->modemConnectResp()); |
257 | busyresp->setText(PPPData::data()->modemBusyResp()); | 257 | busyresp->setText(_pppdata->modemBusyResp()); |
258 | nocarrierresp->setText(PPPData::data()->modemNoCarrierResp()); | 258 | nocarrierresp->setText(_pppdata->modemNoCarrierResp()); |
259 | nodialtoneresp->setText(PPPData::data()->modemNoDialtoneResp()); | 259 | nodialtoneresp->setText(_pppdata->modemNoDialtoneResp()); |
260 | 260 | ||
261 | escapestr->setText(PPPData::data()->modemEscapeStr()); | 261 | escapestr->setText(_pppdata->modemEscapeStr()); |
262 | escaperesp->setText(PPPData::data()->modemEscapeResp()); | 262 | escaperesp->setText(_pppdata->modemEscapeResp()); |
263 | 263 | ||
264 | hangupstr->setText(PPPData::data()->modemHangupStr()); | 264 | hangupstr->setText(_pppdata->modemHangupStr()); |
265 | hangupresp->setText(PPPData::data()->modemHangupResp()); | 265 | hangupresp->setText(_pppdata->modemHangupResp()); |
266 | 266 | ||
267 | answerstr->setText(PPPData::data()->modemAnswerStr()); | 267 | answerstr->setText(_pppdata->modemAnswerStr()); |
268 | ringresp->setText(PPPData::data()->modemRingResp()); | 268 | ringresp->setText(_pppdata->modemRingResp()); |
269 | answerresp->setText(PPPData::data()->modemAnswerResp()); | 269 | answerresp->setText(_pppdata->modemAnswerResp()); |
270 | 270 | ||
271 | slider->setValue(PPPData::data()->modemEscapeGuardTime()); | 271 | slider->setValue(_pppdata->modemEscapeGuardTime()); |
272 | lslider->setNum(PPPData::data()->modemEscapeGuardTime()); | 272 | lslider->setNum(_pppdata->modemEscapeGuardTime()); |
273 | 273 | ||
274 | volume_off->setText(PPPData::data()->volumeOff()); | 274 | volume_off->setText(_pppdata->volumeOff()); |
275 | volume_medium->setText(PPPData::data()->volumeMedium()); | 275 | volume_medium->setText(_pppdata->volumeMedium()); |
276 | volume_high->setText(PPPData::data()->volumeHigh()); | 276 | volume_high->setText(_pppdata->volumeHigh()); |
277 | } | 277 | } |
@@ -280,31 +280,31 @@ ModemCommands::ModemCommands(QWidget *parent, const char *name) | |||
280 | void ModemCommands::slotOk() { | 280 | void ModemCommands::slotOk() { |
281 | PPPData::data()->setModemPreInitDelay(lpreinitslider->text().toInt()); | 281 | _pppdata->setModemPreInitDelay(lpreinitslider->text().toInt()); |
282 | for(int i = 0; i < PPPData::NumInitStrings; i++) | 282 | for(int i = 0; i < PPPData::NumInitStrings; i++) |
283 | PPPData::data()->setModemInitStr(i, initstr[i]->text()); | 283 | _pppdata->setModemInitStr(i, initstr[i]->text()); |
284 | PPPData::data()->setModemInitResp(initresp->text()); | 284 | _pppdata->setModemInitResp(initresp->text()); |
285 | PPPData::data()->setModemInitDelay(linitslider->text().toInt()); | 285 | _pppdata->setModemInitDelay(linitslider->text().toInt()); |
286 | 286 | ||
287 | PPPData::data()->setModemToneDuration(ldurationslider->text().toInt()); | 287 | _pppdata->setModemToneDuration(ldurationslider->text().toInt()); |
288 | PPPData::data()->setModemNoDialToneDetectionStr(nodetectdialtone->text()); | 288 | _pppdata->setModemNoDialToneDetectionStr(nodetectdialtone->text()); |
289 | PPPData::data()->setModemDialStr(dialstr->text()); | 289 | _pppdata->setModemDialStr(dialstr->text()); |
290 | PPPData::data()->setModemConnectResp(connectresp->text()); | 290 | _pppdata->setModemConnectResp(connectresp->text()); |
291 | PPPData::data()->setModemBusyResp(busyresp->text()); | 291 | _pppdata->setModemBusyResp(busyresp->text()); |
292 | PPPData::data()->setModemNoCarrierResp(nocarrierresp->text()); | 292 | _pppdata->setModemNoCarrierResp(nocarrierresp->text()); |
293 | PPPData::data()->setModemNoDialtoneResp(nodialtoneresp->text()); | 293 | _pppdata->setModemNoDialtoneResp(nodialtoneresp->text()); |
294 | 294 | ||
295 | PPPData::data()->setModemEscapeStr(escapestr->text()); | 295 | _pppdata->setModemEscapeStr(escapestr->text()); |
296 | PPPData::data()->setModemEscapeResp(escaperesp->text()); | 296 | _pppdata->setModemEscapeResp(escaperesp->text()); |
297 | PPPData::data()->setModemEscapeGuardTime(lslider->text().toInt()); | 297 | _pppdata->setModemEscapeGuardTime(lslider->text().toInt()); |
298 | PPPData::data()->setModemHangupStr(hangupstr->text()); | 298 | _pppdata->setModemHangupStr(hangupstr->text()); |
299 | PPPData::data()->setModemHangupResp(hangupresp->text()); | 299 | _pppdata->setModemHangupResp(hangupresp->text()); |
300 | 300 | ||
301 | PPPData::data()->setModemAnswerStr(answerstr->text()); | 301 | _pppdata->setModemAnswerStr(answerstr->text()); |
302 | PPPData::data()->setModemRingResp(ringresp->text()); | 302 | _pppdata->setModemRingResp(ringresp->text()); |
303 | PPPData::data()->setModemAnswerResp(answerresp->text()); | 303 | _pppdata->setModemAnswerResp(answerresp->text()); |
304 | 304 | ||
305 | PPPData::data()->setVolumeHigh(volume_high->text()); | 305 | _pppdata->setVolumeHigh(volume_high->text()); |
306 | PPPData::data()->setVolumeMedium(volume_medium->text()); | 306 | _pppdata->setVolumeMedium(volume_medium->text()); |
307 | PPPData::data()->setVolumeOff(volume_off->text()); | 307 | _pppdata->setVolumeOff(volume_off->text()); |
308 | 308 | ||
309 | PPPData::data()->save(); | 309 | _pppdata->save(); |
310 | accept(); | 310 | accept(); |