summaryrefslogtreecommitdiff
authortille <tille>2003-06-06 13:38:57 (UTC)
committer tille <tille>2003-06-06 13:38:57 (UTC)
commit225486a1c3714b4b0c0e60286df13d8ede029768 (patch) (unidiff)
treea49c0faa1d439308ebb60181e1cd5afd5479d092
parentd3e9154252841f3adcfbd9868e263475fc698ebb (diff)
downloadopie-225486a1c3714b4b0c0e60286df13d8ede029768.zip
opie-225486a1c3714b4b0c0e60286df13d8ede029768.tar.gz
opie-225486a1c3714b4b0c0e60286df13d8ede029768.tar.bz2
more arm fixes..
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppdata.cpp2
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
442int PPPData::modemTimeout() { 442int PPPData::modemTimeout() {
443 return readNumConfig(modemGroup(), TIMEOUT_KEY, MODEM_TIMEOUT); 443 return readNumConfig(modemGroup(), TIMEOUT_KEY, MODEM_TIMEOUT);
444} 444}
445 445
446 446
447void PPPData::setModemTimeout(int n) { 447void PPPData::setModemTimeout(int n) {
448 writeConfig(modemGroup(), TIMEOUT_KEY, n); 448 writeConfig(modemGroup(), TIMEOUT_KEY, n);
449} 449}
450 450
451 451
452int PPPData::modemToneDuration() { 452int PPPData::modemToneDuration() {
453 return readNumConfig(modemGroup(), TONEDURATION_KEY,MODEM_TONEDURATION); 453 return readNumConfig(modemGroup(), TONEDURATION_KEY,MODEM_TONEDURATION);
454} 454}
455 455
456 456
457void PPPData::setModemToneDuration(int n) { 457void PPPData::setModemToneDuration(int n) {
458 writeConfig(modemGroup(), TONEDURATION_KEY, n); 458 writeConfig(modemGroup(), TONEDURATION_KEY, n);
459} 459}
460 460
461 461
462int PPPData::busyWait() { 462int PPPData::busyWait() {
463 return readNumConfig(modemGroup(), BUSYWAIT_KEY, BUSY_WAIT); 463 return readNumConfig(modemGroup(), BUSYWAIT_KEY, BUSY_WAIT);
464} 464}
465 465
466 466
467void PPPData::setbusyWait(int n) { 467void 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.
476const QString PPPData::modemInitStr(int i) { 476const 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
485void PPPData::setModemInitStr(int i, const QString &n) { 485void 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
492const QString PPPData::modemInitResp() { 492const QString PPPData::modemInitResp() {
493 return readConfig(modemGroup(), INITRESP_KEY, "OK"); 493 return readConfig(modemGroup(), INITRESP_KEY, "OK");
494} 494}
495 495
496 496
497void PPPData::setModemInitResp(const QString &n) { 497void PPPData::setModemInitResp(const QString &n) {
498 writeConfig(modemGroup(), INITRESP_KEY, n); 498 writeConfig(modemGroup(), INITRESP_KEY, n);
499} 499}
500 500
501 501
502int PPPData::modemPreInitDelay() { 502int PPPData::modemPreInitDelay() {
503 return readNumConfig(modemGroup(), PREINITDELAY_KEY, 50); 503 return readNumConfig(modemGroup(), PREINITDELAY_KEY, 50);
504} 504}
505 505
506 506
507void PPPData::setModemPreInitDelay(int n) { 507void PPPData::setModemPreInitDelay(int n) {
508 writeConfig(modemGroup(), PREINITDELAY_KEY, n); 508 writeConfig(modemGroup(), PREINITDELAY_KEY, n);
509} 509}
510 510
511 511
512int PPPData::modemInitDelay() { 512int PPPData::modemInitDelay() {
513 return readNumConfig(modemGroup(), INITDELAY_KEY, 50); 513 return readNumConfig(modemGroup(), INITDELAY_KEY, 50);
514} 514}
515 515
516 516
517void PPPData::setModemInitDelay(int n) { 517void PPPData::setModemInitDelay(int n) {
518 writeConfig(modemGroup(), INITDELAY_KEY, n); 518 writeConfig(modemGroup(), INITDELAY_KEY, n);
519} 519}
520 520
521QString PPPData::modemNoDialToneDetectionStr() { 521QString PPPData::modemNoDialToneDetectionStr() {
522 return readConfig(modemGroup(), NODTDETECT_KEY, "ATX3"); 522 return readConfig(modemGroup(), NODTDETECT_KEY, "ATX3");
523} 523}
524 524
525void PPPData::setModemNoDialToneDetectionStr(const QString &n) { 525void PPPData::setModemNoDialToneDetectionStr(const QString &n) {
526 writeConfig(modemGroup(), NODTDETECT_KEY, n); 526 writeConfig(modemGroup(), NODTDETECT_KEY, n);
527} 527}
528 528
529const QString PPPData::modemDialStr() { 529const QString PPPData::modemDialStr() {
530 return readConfig(modemGroup(), DIALSTR_KEY, "ATDT"); 530 return readConfig(modemGroup(), DIALSTR_KEY, "ATDT");
531} 531}
532 532
533 533
534void PPPData::setModemDialStr(const QString &n) { 534void PPPData::setModemDialStr(const QString &n) {
535 writeConfig(modemGroup(), DIALSTR_KEY, n); 535 writeConfig(modemGroup(), DIALSTR_KEY, n);