author | tille <tille> | 2003-06-06 13:38:57 (UTC) |
---|---|---|
committer | tille <tille> | 2003-06-06 13:38:57 (UTC) |
commit | 225486a1c3714b4b0c0e60286df13d8ede029768 (patch) (unidiff) | |
tree | a49c0faa1d439308ebb60181e1cd5afd5479d092 | |
parent | d3e9154252841f3adcfbd9868e263475fc698ebb (diff) | |
download | opie-225486a1c3714b4b0c0e60286df13d8ede029768.zip opie-225486a1c3714b4b0c0e60286df13d8ede029768.tar.gz opie-225486a1c3714b4b0c0e60286df13d8ede029768.tar.bz2 |
more arm fixes..
-rw-r--r-- | noncore/settings/networksettings/ppp/pppdata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/ppp/pppdata.cpp b/noncore/settings/networksettings/ppp/pppdata.cpp index 8f066ff..8f45e54 100644 --- a/noncore/settings/networksettings/ppp/pppdata.cpp +++ b/noncore/settings/networksettings/ppp/pppdata.cpp | |||
@@ -439,97 +439,97 @@ void PPPData::setModemLockFile(bool set) { | |||
439 | } | 439 | } |
440 | 440 | ||
441 | 441 | ||
442 | int PPPData::modemTimeout() { | 442 | int PPPData::modemTimeout() { |
443 | return readNumConfig(modemGroup(), TIMEOUT_KEY, MODEM_TIMEOUT); | 443 | return readNumConfig(modemGroup(), TIMEOUT_KEY, MODEM_TIMEOUT); |
444 | } | 444 | } |
445 | 445 | ||
446 | 446 | ||
447 | void PPPData::setModemTimeout(int n) { | 447 | void PPPData::setModemTimeout(int n) { |
448 | writeConfig(modemGroup(), TIMEOUT_KEY, n); | 448 | writeConfig(modemGroup(), TIMEOUT_KEY, n); |
449 | } | 449 | } |
450 | 450 | ||
451 | 451 | ||
452 | int PPPData::modemToneDuration() { | 452 | int PPPData::modemToneDuration() { |
453 | return readNumConfig(modemGroup(), TONEDURATION_KEY,MODEM_TONEDURATION); | 453 | return readNumConfig(modemGroup(), TONEDURATION_KEY,MODEM_TONEDURATION); |
454 | } | 454 | } |
455 | 455 | ||
456 | 456 | ||
457 | void PPPData::setModemToneDuration(int n) { | 457 | void PPPData::setModemToneDuration(int n) { |
458 | writeConfig(modemGroup(), TONEDURATION_KEY, n); | 458 | writeConfig(modemGroup(), TONEDURATION_KEY, n); |
459 | } | 459 | } |
460 | 460 | ||
461 | 461 | ||
462 | int PPPData::busyWait() { | 462 | int PPPData::busyWait() { |
463 | return readNumConfig(modemGroup(), BUSYWAIT_KEY, BUSY_WAIT); | 463 | return readNumConfig(modemGroup(), BUSYWAIT_KEY, BUSY_WAIT); |
464 | } | 464 | } |
465 | 465 | ||
466 | 466 | ||
467 | void PPPData::setbusyWait(int n) { | 467 | void PPPData::setbusyWait(int n) { |
468 | writeConfig(modemGroup(), BUSYWAIT_KEY, n); | 468 | writeConfig(modemGroup(), BUSYWAIT_KEY, n); |
469 | } | 469 | } |
470 | 470 | ||
471 | 471 | ||
472 | // | 472 | // |
473 | //Advanced "Modem" dialog | 473 | //Advanced "Modem" dialog |
474 | // | 474 | // |
475 | // defaults: InitString=ATZ, InitString1="" etc. | 475 | // defaults: InitString=ATZ, InitString1="" etc. |
476 | const QString PPPData::modemInitStr(int i) { | 476 | const QString PPPData::modemInitStr(int i) { |
477 | assert(i >= 0 && i < NumInitStrings); | 477 | assert(i >= 0 && i < NumInitStrings); |
478 | if(i == 0) | 478 | if(i == 0) |
479 | return readConfig(modemGroup(), INITSTR_KEY, "ATZ"); | 479 | return readConfig(modemGroup(), INITSTR_KEY, "ATZ"); |
480 | else | 480 | else |
481 | return readConfig(modemGroup(), INITSTR_KEY + QString::number(i), ""); | 481 | return readConfig(modemGroup(), INITSTR_KEY + QString::number(i), ""); |
482 | } | 482 | } |
483 | 483 | ||
484 | 484 | ||
485 | void PPPData::setModemInitStr(int i, const QString &n) { | 485 | void PPPData::setModemInitStr(int i, const QString &n) { |
486 | assert(i >= 0 && i < NumInitStrings); | 486 | assert(i >= 0 && i < NumInitStrings); |
487 | QString k = INITSTR_KEY + (i > 0 ? QString::number(i) : ""); | 487 | QString k = INITSTR_KEY + (i > 0 ? QString::number(i) : QString("")); |
488 | writeConfig(modemGroup(), k, n); | 488 | writeConfig(modemGroup(), k, n); |
489 | } | 489 | } |
490 | 490 | ||
491 | 491 | ||
492 | const QString PPPData::modemInitResp() { | 492 | const QString PPPData::modemInitResp() { |
493 | return readConfig(modemGroup(), INITRESP_KEY, "OK"); | 493 | return readConfig(modemGroup(), INITRESP_KEY, "OK"); |
494 | } | 494 | } |
495 | 495 | ||
496 | 496 | ||
497 | void PPPData::setModemInitResp(const QString &n) { | 497 | void PPPData::setModemInitResp(const QString &n) { |
498 | writeConfig(modemGroup(), INITRESP_KEY, n); | 498 | writeConfig(modemGroup(), INITRESP_KEY, n); |
499 | } | 499 | } |
500 | 500 | ||
501 | 501 | ||
502 | int PPPData::modemPreInitDelay() { | 502 | int PPPData::modemPreInitDelay() { |
503 | return readNumConfig(modemGroup(), PREINITDELAY_KEY, 50); | 503 | return readNumConfig(modemGroup(), PREINITDELAY_KEY, 50); |
504 | } | 504 | } |
505 | 505 | ||
506 | 506 | ||
507 | void PPPData::setModemPreInitDelay(int n) { | 507 | void PPPData::setModemPreInitDelay(int n) { |
508 | writeConfig(modemGroup(), PREINITDELAY_KEY, n); | 508 | writeConfig(modemGroup(), PREINITDELAY_KEY, n); |
509 | } | 509 | } |
510 | 510 | ||
511 | 511 | ||
512 | int PPPData::modemInitDelay() { | 512 | int PPPData::modemInitDelay() { |
513 | return readNumConfig(modemGroup(), INITDELAY_KEY, 50); | 513 | return readNumConfig(modemGroup(), INITDELAY_KEY, 50); |
514 | } | 514 | } |
515 | 515 | ||
516 | 516 | ||
517 | void PPPData::setModemInitDelay(int n) { | 517 | void PPPData::setModemInitDelay(int n) { |
518 | writeConfig(modemGroup(), INITDELAY_KEY, n); | 518 | writeConfig(modemGroup(), INITDELAY_KEY, n); |
519 | } | 519 | } |
520 | 520 | ||
521 | QString PPPData::modemNoDialToneDetectionStr() { | 521 | QString PPPData::modemNoDialToneDetectionStr() { |
522 | return readConfig(modemGroup(), NODTDETECT_KEY, "ATX3"); | 522 | return readConfig(modemGroup(), NODTDETECT_KEY, "ATX3"); |
523 | } | 523 | } |
524 | 524 | ||
525 | void PPPData::setModemNoDialToneDetectionStr(const QString &n) { | 525 | void PPPData::setModemNoDialToneDetectionStr(const QString &n) { |
526 | writeConfig(modemGroup(), NODTDETECT_KEY, n); | 526 | writeConfig(modemGroup(), NODTDETECT_KEY, n); |
527 | } | 527 | } |
528 | 528 | ||
529 | const QString PPPData::modemDialStr() { | 529 | const QString PPPData::modemDialStr() { |
530 | return readConfig(modemGroup(), DIALSTR_KEY, "ATDT"); | 530 | return readConfig(modemGroup(), DIALSTR_KEY, "ATDT"); |
531 | } | 531 | } |
532 | 532 | ||
533 | 533 | ||
534 | void PPPData::setModemDialStr(const QString &n) { | 534 | void PPPData::setModemDialStr(const QString &n) { |
535 | writeConfig(modemGroup(), DIALSTR_KEY, n); | 535 | writeConfig(modemGroup(), DIALSTR_KEY, n); |