summaryrefslogtreecommitdiff
Unidiff
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
@@ -391,193 +391,193 @@ void PPPData::setSpeed(const QString &n) {
391#if 0 391#if 0
392void PPPData::setUseCDLine(const int n) { 392void PPPData::setUseCDLine(const int n) {
393 writeConfig(modemGroup(),USECDLINE_KEY,n); 393 writeConfig(modemGroup(),USECDLINE_KEY,n);
394} 394}
395 395
396 396
397int PPPData::UseCDLine() { 397int PPPData::UseCDLine() {
398 return readNumConfig(modemGroup(),USECDLINE_KEY,0); 398 return readNumConfig(modemGroup(),USECDLINE_KEY,0);
399} 399}
400#endif 400#endif
401 401
402const QString PPPData::modemEscapeStr() { 402const QString PPPData::modemEscapeStr() {
403 return readConfig(modemGroup(),ESCAPESTR_KEY,"+++"); 403 return readConfig(modemGroup(),ESCAPESTR_KEY,"+++");
404} 404}
405 405
406 406
407void PPPData::setModemEscapeStr(const QString &n) { 407void PPPData::setModemEscapeStr(const QString &n) {
408 writeConfig(modemGroup(),ESCAPESTR_KEY,n); 408 writeConfig(modemGroup(),ESCAPESTR_KEY,n);
409} 409}
410 410
411 411
412const QString PPPData::modemEscapeResp() { 412const QString PPPData::modemEscapeResp() {
413 return readConfig(modemGroup(),ESCAPERESP_KEY,"OK"); 413 return readConfig(modemGroup(),ESCAPERESP_KEY,"OK");
414} 414}
415 415
416 416
417void PPPData::setModemEscapeResp(const QString &n) { 417void PPPData::setModemEscapeResp(const QString &n) {
418 writeConfig(modemGroup(),ESCAPERESP_KEY,n); 418 writeConfig(modemGroup(),ESCAPERESP_KEY,n);
419} 419}
420 420
421 421
422int PPPData::modemEscapeGuardTime() { 422int PPPData::modemEscapeGuardTime() {
423 return readNumConfig(modemGroup(),ESCAPEGUARDTIME_KEY,50); 423 return readNumConfig(modemGroup(),ESCAPEGUARDTIME_KEY,50);
424} 424}
425 425
426 426
427void PPPData::setModemEscapeGuardTime(int n) { 427void PPPData::setModemEscapeGuardTime(int n) {
428 writeConfig(modemGroup(),ESCAPEGUARDTIME_KEY,n); 428 writeConfig(modemGroup(),ESCAPEGUARDTIME_KEY,n);
429} 429}
430 430
431 431
432bool PPPData::modemLockFile() { 432bool PPPData::modemLockFile() {
433 return readNumConfig(modemGroup(), LOCKFILE_KEY, 1); 433 return readNumConfig(modemGroup(), LOCKFILE_KEY, 1);
434} 434}
435 435
436 436
437void PPPData::setModemLockFile(bool set) { 437void PPPData::setModemLockFile(bool set) {
438 writeConfig(modemGroup(), LOCKFILE_KEY, set); 438 writeConfig(modemGroup(), LOCKFILE_KEY, 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);
536} 536}
537 537
538 538
539const QString PPPData::modemConnectResp() { 539const QString PPPData::modemConnectResp() {
540 return readConfig(modemGroup(), CONNECTRESP_KEY, "CONNECT"); 540 return readConfig(modemGroup(), CONNECTRESP_KEY, "CONNECT");
541} 541}
542 542
543 543
544void PPPData::setModemConnectResp(const QString &n) { 544void PPPData::setModemConnectResp(const QString &n) {
545 writeConfig(modemGroup(), CONNECTRESP_KEY, n); 545 writeConfig(modemGroup(), CONNECTRESP_KEY, n);
546} 546}
547 547
548 548
549const QString PPPData::modemBusyResp() { 549const QString PPPData::modemBusyResp() {
550 return readConfig(modemGroup(), BUSYRESP_KEY, "BUSY"); 550 return readConfig(modemGroup(), BUSYRESP_KEY, "BUSY");
551} 551}
552 552
553 553
554void PPPData::setModemBusyResp(const QString &n) { 554void PPPData::setModemBusyResp(const QString &n) {
555 writeConfig(modemGroup(), BUSYRESP_KEY, n); 555 writeConfig(modemGroup(), BUSYRESP_KEY, n);
556} 556}
557 557
558 558
559const QString PPPData::modemNoCarrierResp() { 559const QString PPPData::modemNoCarrierResp() {
560 return readConfig(modemGroup(), NOCARRIERRESP_KEY, "NO CARRIER"); 560 return readConfig(modemGroup(), NOCARRIERRESP_KEY, "NO CARRIER");
561} 561}
562 562
563 563
564void PPPData::setModemNoCarrierResp(const QString &n) { 564void PPPData::setModemNoCarrierResp(const QString &n) {
565 writeConfig(modemGroup(), NOCARRIERRESP_KEY, n); 565 writeConfig(modemGroup(), NOCARRIERRESP_KEY, n);
566} 566}
567 567
568 568
569const QString PPPData::modemNoDialtoneResp() { 569const QString PPPData::modemNoDialtoneResp() {
570 return readConfig(modemGroup(), NODIALTONERESP_KEY, "NO DIALTONE"); 570 return readConfig(modemGroup(), NODIALTONERESP_KEY, "NO DIALTONE");
571} 571}
572 572
573 573
574void PPPData::setModemNoDialtoneResp(const QString &n) { 574void PPPData::setModemNoDialtoneResp(const QString &n) {
575 writeConfig(modemGroup(), NODIALTONERESP_KEY, n); 575 writeConfig(modemGroup(), NODIALTONERESP_KEY, n);
576} 576}
577 577
578 578
579const QString PPPData::modemHangupStr() { 579const QString PPPData::modemHangupStr() {
580 return readConfig(modemGroup(), HANGUPSTR_KEY, "+++ATH"); 580 return readConfig(modemGroup(), HANGUPSTR_KEY, "+++ATH");
581} 581}
582 582
583void PPPData::setModemHangupStr(const QString &n) { 583void PPPData::setModemHangupStr(const QString &n) {