-rw-r--r-- | libopie/pim/ocontact.cpp | 18 | ||||
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index 3473baa..e34feeb 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp | |||
@@ -381,309 +381,309 @@ OContact::~OContact() | |||
381 | 381 | ||
382 | /*! \fn QString OContact::nickname() const | 382 | /*! \fn QString OContact::nickname() const |
383 | Returns the nickname of the contact. | 383 | Returns the nickname of the contact. |
384 | */ | 384 | */ |
385 | 385 | ||
386 | /*! \fn QString OContact::children() const | 386 | /*! \fn QString OContact::children() const |
387 | Returns the children of the contact. | 387 | Returns the children of the contact. |
388 | */ | 388 | */ |
389 | 389 | ||
390 | /*! \fn QString OContact::notes() const | 390 | /*! \fn QString OContact::notes() const |
391 | Returns the notes relating to the the contact. | 391 | Returns the notes relating to the the contact. |
392 | */ | 392 | */ |
393 | 393 | ||
394 | /*! \fn QString OContact::groups() const | 394 | /*! \fn QString OContact::groups() const |
395 | \internal | 395 | \internal |
396 | Returns the groups for the contact. | 396 | Returns the groups for the contact. |
397 | */ | 397 | */ |
398 | 398 | ||
399 | /*! \fn QStringList OContact::groupList() const | 399 | /*! \fn QStringList OContact::groupList() const |
400 | \internal | 400 | \internal |
401 | */ | 401 | */ |
402 | 402 | ||
403 | /*! \fn QString OContact::field(int) const | 403 | /*! \fn QString OContact::field(int) const |
404 | \internal | 404 | \internal |
405 | */ | 405 | */ |
406 | 406 | ||
407 | /*! \fn void OContact::saveJournal( journal_action, const QString & = QString::null ) | 407 | /*! \fn void OContact::saveJournal( journal_action, const QString & = QString::null ) |
408 | \internal | 408 | \internal |
409 | */ | 409 | */ |
410 | 410 | ||
411 | /*! \fn void OContact::setUid( int id ) | 411 | /*! \fn void OContact::setUid( int id ) |
412 | \internal | 412 | \internal |
413 | Sets the uid for this record to \a id. | 413 | Sets the uid for this record to \a id. |
414 | */ | 414 | */ |
415 | 415 | ||
416 | /*! \enum OContact::journal_action | 416 | /*! \enum OContact::journal_action |
417 | \internal | 417 | \internal |
418 | */ | 418 | */ |
419 | 419 | ||
420 | /*! | 420 | /*! |
421 | \internal | 421 | \internal |
422 | */ | 422 | */ |
423 | QMap<int, QString> OContact::toMap() const | 423 | QMap<int, QString> OContact::toMap() const |
424 | { | 424 | { |
425 | QMap<int, QString> map = mMap; | 425 | QMap<int, QString> map = mMap; |
426 | QString cats = idsToString( categories() ); | 426 | QString cats = idsToString( categories() ); |
427 | if ( !cats.isEmpty() ) | 427 | if ( !cats.isEmpty() ) |
428 | map.insert( Qtopia::AddressCategory, cats ); | 428 | map.insert( Qtopia::AddressCategory, cats ); |
429 | return map; | 429 | return map; |
430 | } | 430 | } |
431 | 431 | ||
432 | /*! | 432 | /*! |
433 | Returns a rich text formatted QString representing the contents the contact. | 433 | Returns a rich text formatted QString representing the contents the contact. |
434 | */ | 434 | */ |
435 | QString OContact::toRichText() const | 435 | QString OContact::toRichText() const |
436 | { | 436 | { |
437 | QString text; | 437 | QString text; |
438 | QString value, comp, state; | 438 | QString value, comp, state; |
439 | QString str; | 439 | QString str; |
440 | bool marker = false; | 440 | bool marker = false; |
441 | 441 | ||
442 | Config cfg("qpe"); | 442 | Config cfg("qpe"); |
443 | cfg.setGroup("Appearance"); | 443 | cfg.setGroup("Appearance"); |
444 | int addressformat = cfg.readNumEntry( "AddressFormat", Zip_City_State ); | 444 | int addressformat = cfg.readNumEntry( "AddressFormat", Zip_City_State ); |
445 | 445 | ||
446 | // name, jobtitle and company | 446 | // name, jobtitle and company |
447 | if ( !(value = fullName()).isEmpty() ) | 447 | if ( !(value = fullName()).isEmpty() ) |
448 | text += "<b><h3><img src=\"addressbook/AddressBook\"> " + Qtopia::escapeString(value) + "</h3></b>"; | 448 | text += "<b><h3><img src=\"addressbook/AddressBook\"> " + Qtopia::escapeString(value) + "</h3></b>"; |
449 | 449 | ||
450 | if ( !(value = jobTitle()).isEmpty() ) | 450 | if ( !(value = jobTitle()).isEmpty() ) |
451 | text += Qtopia::escapeString(value); | 451 | text += Qtopia::escapeString(value); |
452 | 452 | ||
453 | comp = company(); | 453 | comp = company(); |
454 | if ( !(value = department()).isEmpty() ) { | 454 | if ( !(value = department()).isEmpty() ) { |
455 | text += Qtopia::escapeString(value); | 455 | text += Qtopia::escapeString(value); |
456 | if ( comp ) | 456 | if ( comp ) |
457 | text += ", "; | 457 | text += ", "; |
458 | else | 458 | else |
459 | text += "<br>"; | 459 | text += "<br>"; |
460 | } | 460 | } |
461 | if ( !comp.isEmpty() ) | 461 | if ( !comp.isEmpty() ) |
462 | text += Qtopia::escapeString(comp); | 462 | text += Qtopia::escapeString(comp); |
463 | 463 | ||
464 | text += "<br><hr>"; | 464 | text += "<br><hr>"; |
465 | 465 | ||
466 | // defailt email | 466 | // defailt email |
467 | QString defEmail = defaultEmail(); | 467 | QString defEmail = defaultEmail(); |
468 | if ( !defEmail.isEmpty() ){ | 468 | if ( !defEmail.isEmpty() ){ |
469 | text += "<b><img src=\"addressbook/email\"> " + QObject::tr("Default Email: ") + "</b>" | 469 | text += "<b><img src=\"addressbook/email\"> " + QObject::tr("Default Email: ") + "</b>" |
470 | + Qtopia::escapeString(defEmail); | 470 | + Qtopia::escapeString(defEmail); |
471 | marker = true; | 471 | marker = true; |
472 | } | 472 | } |
473 | 473 | ||
474 | // business address | 474 | // business address |
475 | if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || | 475 | if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || |
476 | !businessZip().isEmpty() || !businessCountry().isEmpty() ) { | 476 | !businessZip().isEmpty() || !businessCountry().isEmpty() ) { |
477 | text += QObject::tr( "<br><br><b>Work Address:</b>" ); | 477 | text += QObject::tr( "<br><b>Work Address:</b>" ); |
478 | marker = true; | 478 | marker = true; |
479 | } | 479 | } |
480 | 480 | ||
481 | if ( !(value = businessStreet()).isEmpty() ){ | 481 | if ( !(value = businessStreet()).isEmpty() ){ |
482 | text += "<br>" + Qtopia::escapeString(value); | 482 | text += "<br>" + Qtopia::escapeString(value); |
483 | marker = true; | 483 | marker = true; |
484 | } | 484 | } |
485 | 485 | ||
486 | switch( addressformat ){ | 486 | switch( addressformat ){ |
487 | case Zip_City_State:{ // Zip_Code City, State | 487 | case Zip_City_State:{ // Zip_Code City, State |
488 | state = businessState(); | 488 | state = businessState(); |
489 | if ( !(value = businessZip()).isEmpty() ){ | 489 | if ( !(value = businessZip()).isEmpty() ){ |
490 | text += "<br>" + Qtopia::escapeString(value) + " "; | 490 | text += "<br>" + Qtopia::escapeString(value) + " "; |
491 | marker = true; | 491 | marker = true; |
492 | 492 | ||
493 | } else | 493 | } |
494 | text += "<br>"; | ||
495 | |||
496 | if ( !(value = businessCity()).isEmpty() ) { | 494 | if ( !(value = businessCity()).isEmpty() ) { |
497 | marker = true; | 495 | marker = true; |
496 | if ( businessZip().isEmpty() && !businessStreet().isEmpty() ) | ||
497 | text += "<br>"; | ||
498 | text += Qtopia::escapeString(value); | 498 | text += Qtopia::escapeString(value); |
499 | if ( state ) | 499 | if ( state ) |
500 | text += ", " + Qtopia::escapeString(state); | 500 | text += ", " + Qtopia::escapeString(state); |
501 | } else if ( !state.isEmpty() ){ | 501 | } else if ( !state.isEmpty() ){ |
502 | text += "<br>" + Qtopia::escapeString(state); | 502 | text += "<br>" + Qtopia::escapeString(state); |
503 | marker = true; | 503 | marker = true; |
504 | } | 504 | } |
505 | break; | 505 | break; |
506 | } | 506 | } |
507 | case City_State_Zip:{ // City, State Zip_Code | 507 | case City_State_Zip:{ // City, State Zip_Code |
508 | state = businessState(); | 508 | state = businessState(); |
509 | if ( !(value = businessCity()).isEmpty() ) { | 509 | if ( !(value = businessCity()).isEmpty() ) { |
510 | marker = true; | 510 | marker = true; |
511 | text += "<br>" + Qtopia::escapeString(value); | 511 | text += "<br>" + Qtopia::escapeString(value); |
512 | if ( state ) | 512 | if ( state ) |
513 | text += ", " + Qtopia::escapeString(state); | 513 | text += ", " + Qtopia::escapeString(state); |
514 | } else if ( !state.isEmpty() ){ | 514 | } else if ( !state.isEmpty() ){ |
515 | text += "<br>" + Qtopia::escapeString(state); | 515 | text += "<br>" + Qtopia::escapeString(state); |
516 | marker = true; | 516 | marker = true; |
517 | } | 517 | } |
518 | if ( !(value = businessZip()).isEmpty() ){ | 518 | if ( !(value = businessZip()).isEmpty() ){ |
519 | text += " " + Qtopia::escapeString(value); | 519 | text += " " + Qtopia::escapeString(value); |
520 | marker = true; | 520 | marker = true; |
521 | } | 521 | } |
522 | break; | 522 | break; |
523 | } | 523 | } |
524 | } | 524 | } |
525 | 525 | ||
526 | if ( !(value = businessCountry()).isEmpty() ){ | 526 | if ( !(value = businessCountry()).isEmpty() ){ |
527 | text += "<br>" + Qtopia::escapeString(value); | 527 | text += "<br>" + Qtopia::escapeString(value); |
528 | marker = true; | 528 | marker = true; |
529 | } | 529 | } |
530 | 530 | ||
531 | // rest of Business data | 531 | // rest of Business data |
532 | str = office(); | 532 | str = office(); |
533 | if ( !str.isEmpty() ){ | 533 | if ( !str.isEmpty() ){ |
534 | text += "<br><b>" + QObject::tr("Office: ") + "</b>" | 534 | text += "<br><b>" + QObject::tr("Office: ") + "</b>" |
535 | + Qtopia::escapeString(str); | 535 | + Qtopia::escapeString(str); |
536 | marker = true; | 536 | marker = true; |
537 | } | 537 | } |
538 | str = businessWebpage(); | 538 | str = businessWebpage(); |
539 | if ( !str.isEmpty() ){ | 539 | if ( !str.isEmpty() ){ |
540 | text += "<br><b><img src=\"addressbook/webpagework\"> " + QObject::tr("Business Web Page: ") + "</b>" | 540 | text += "<br><b><img src=\"addressbook/webpagework\"> " + QObject::tr("Business Web Page: ") + "</b>" |
541 | + Qtopia::escapeString(str); | 541 | + Qtopia::escapeString(str); |
542 | marker = true; | 542 | marker = true; |
543 | } | 543 | } |
544 | str = businessPhone(); | 544 | str = businessPhone(); |
545 | if ( !str.isEmpty() ){ | 545 | if ( !str.isEmpty() ){ |
546 | text += "<br><b><img src=\"addressbook/phonework\"> " + QObject::tr("Business Phone: ") + "</b>" | 546 | text += "<br><b><img src=\"addressbook/phonework\"> " + QObject::tr("Business Phone: ") + "</b>" |
547 | + Qtopia::escapeString(str); | 547 | + Qtopia::escapeString(str); |
548 | marker = true; | 548 | marker = true; |
549 | } | 549 | } |
550 | str = businessFax(); | 550 | str = businessFax(); |
551 | if ( !str.isEmpty() ){ | 551 | if ( !str.isEmpty() ){ |
552 | text += "<br><b><img src=\"addressbook/faxwork\"> " + QObject::tr("Business Fax: ") + "</b>" | 552 | text += "<br><b><img src=\"addressbook/faxwork\"> " + QObject::tr("Business Fax: ") + "</b>" |
553 | + Qtopia::escapeString(str); | 553 | + Qtopia::escapeString(str); |
554 | marker = true; | 554 | marker = true; |
555 | } | 555 | } |
556 | str = businessMobile(); | 556 | str = businessMobile(); |
557 | if ( !str.isEmpty() ){ | 557 | if ( !str.isEmpty() ){ |
558 | text += "<br><b><img src=\"addressbook/mobilework\"> " + QObject::tr("Business Mobile: ") + "</b>" | 558 | text += "<br><b><img src=\"addressbook/mobilework\"> " + QObject::tr("Business Mobile: ") + "</b>" |
559 | + Qtopia::escapeString(str); | 559 | + Qtopia::escapeString(str); |
560 | marker = true; | 560 | marker = true; |
561 | } | 561 | } |
562 | str = businessPager(); | 562 | str = businessPager(); |
563 | if ( !str.isEmpty() ){ | 563 | if ( !str.isEmpty() ){ |
564 | text += "<br><b>" + QObject::tr("Business Pager: ") + "</b>" | 564 | text += "<br><b>" + QObject::tr("Business Pager: ") + "</b>" |
565 | + Qtopia::escapeString(str); | 565 | + Qtopia::escapeString(str); |
566 | marker = true; | 566 | marker = true; |
567 | } | 567 | } |
568 | 568 | ||
569 | text += "<br>"; | 569 | // text += "<br>"; |
570 | 570 | ||
571 | // home address | 571 | // home address |
572 | if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || | 572 | if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || |
573 | !homeZip().isEmpty() || !homeCountry().isEmpty() ) { | 573 | !homeZip().isEmpty() || !homeCountry().isEmpty() ) { |
574 | text += QObject::tr( "<br><br><b>Home Address:</b>" ); | 574 | text += QObject::tr( "<br><b>Home Address:</b>" ); |
575 | marker = true; | 575 | marker = true; |
576 | } | 576 | } |
577 | 577 | ||
578 | if ( !(value = homeStreet()).isEmpty() ){ | 578 | if ( !(value = homeStreet()).isEmpty() ){ |
579 | text += "<br>" + Qtopia::escapeString(value); | 579 | text += "<br>" + Qtopia::escapeString(value); |
580 | marker = true; | 580 | marker = true; |
581 | } | 581 | } |
582 | 582 | ||
583 | switch( addressformat ){ | 583 | switch( addressformat ){ |
584 | case Zip_City_State:{ // Zip_Code City, State | 584 | case Zip_City_State:{ // Zip_Code City, State |
585 | state = homeState(); | 585 | state = homeState(); |
586 | if ( !(value = homeZip()).isEmpty() ){ | 586 | if ( !(value = homeZip()).isEmpty() ){ |
587 | text += "<br>" + Qtopia::escapeString(value) + " "; | 587 | text += "<br>" + Qtopia::escapeString(value) + " "; |
588 | marker = true; | 588 | marker = true; |
589 | } else | 589 | } |
590 | text += "<br>"; | ||
591 | |||
592 | if ( !(value = homeCity()).isEmpty() ) { | 590 | if ( !(value = homeCity()).isEmpty() ) { |
593 | marker = true; | 591 | marker = true; |
592 | if ( homeZip().isEmpty() && !homeStreet().isEmpty() ) | ||
593 | text += "<br>"; | ||
594 | text += Qtopia::escapeString(value); | 594 | text += Qtopia::escapeString(value); |
595 | if ( !state.isEmpty() ) | 595 | if ( !state.isEmpty() ) |
596 | text += ", " + Qtopia::escapeString(state); | 596 | text += ", " + Qtopia::escapeString(state); |
597 | } else if (!state.isEmpty()) { | 597 | } else if (!state.isEmpty()) { |
598 | text += "<br>" + Qtopia::escapeString(state); | 598 | text += "<br>" + Qtopia::escapeString(state); |
599 | marker = true; | 599 | marker = true; |
600 | } | 600 | } |
601 | break; | 601 | break; |
602 | } | 602 | } |
603 | case City_State_Zip:{ // City, State Zip_Code | 603 | case City_State_Zip:{ // City, State Zip_Code |
604 | state = homeState(); | 604 | state = homeState(); |
605 | if ( !(value = homeCity()).isEmpty() ) { | 605 | if ( !(value = homeCity()).isEmpty() ) { |
606 | marker = true; | 606 | marker = true; |
607 | text += "<br>" + Qtopia::escapeString(value); | 607 | text += "<br>" + Qtopia::escapeString(value); |
608 | if ( state ) | 608 | if ( state ) |
609 | text += ", " + Qtopia::escapeString(state); | 609 | text += ", " + Qtopia::escapeString(state); |
610 | } else if ( !state.isEmpty() ){ | 610 | } else if ( !state.isEmpty() ){ |
611 | text += "<br>" + Qtopia::escapeString(state); | 611 | text += "<br>" + Qtopia::escapeString(state); |
612 | marker = true; | 612 | marker = true; |
613 | } | 613 | } |
614 | if ( !(value = homeZip()).isEmpty() ){ | 614 | if ( !(value = homeZip()).isEmpty() ){ |
615 | text += " " + Qtopia::escapeString(value); | 615 | text += " " + Qtopia::escapeString(value); |
616 | marker = true; | 616 | marker = true; |
617 | } | 617 | } |
618 | break; | 618 | break; |
619 | } | 619 | } |
620 | } | 620 | } |
621 | 621 | ||
622 | if ( !(value = homeCountry()).isEmpty() ){ | 622 | if ( !(value = homeCountry()).isEmpty() ){ |
623 | text += "<br>" + Qtopia::escapeString(value); | 623 | text += "<br>" + Qtopia::escapeString(value); |
624 | marker = true; | 624 | marker = true; |
625 | } | 625 | } |
626 | 626 | ||
627 | // rest of Home data | 627 | // rest of Home data |
628 | str = homeWebpage(); | 628 | str = homeWebpage(); |
629 | if ( !str.isEmpty() ){ | 629 | if ( !str.isEmpty() ){ |
630 | text += "<br><b><img src=\"addressbook/webpagehome\"> " + QObject::tr("Home Web Page: ") + "</b>" | 630 | text += "<br><b><img src=\"addressbook/webpagehome\"> " + QObject::tr("Home Web Page: ") + "</b>" |
631 | + Qtopia::escapeString(str); | 631 | + Qtopia::escapeString(str); |
632 | marker = true; | 632 | marker = true; |
633 | } | 633 | } |
634 | str = homePhone(); | 634 | str = homePhone(); |
635 | if ( !str.isEmpty() ){ | 635 | if ( !str.isEmpty() ){ |
636 | text += "<br><b><img src=\"addressbook/phonehome\"> " + QObject::tr("Home Phone: ") + "</b>" | 636 | text += "<br><b><img src=\"addressbook/phonehome\"> " + QObject::tr("Home Phone: ") + "</b>" |
637 | + Qtopia::escapeString(str); | 637 | + Qtopia::escapeString(str); |
638 | marker = true; | 638 | marker = true; |
639 | } | 639 | } |
640 | str = homeFax(); | 640 | str = homeFax(); |
641 | if ( !str.isEmpty() ){ | 641 | if ( !str.isEmpty() ){ |
642 | text += "<br><b><img src=\"addressbook/faxhome\"> " + QObject::tr("Home Fax: ") + "</b>" | 642 | text += "<br><b><img src=\"addressbook/faxhome\"> " + QObject::tr("Home Fax: ") + "</b>" |
643 | + Qtopia::escapeString(str); | 643 | + Qtopia::escapeString(str); |
644 | marker = true; | 644 | marker = true; |
645 | } | 645 | } |
646 | str = homeMobile(); | 646 | str = homeMobile(); |
647 | if ( !str.isEmpty() ){ | 647 | if ( !str.isEmpty() ){ |
648 | text += "<br><b><img src=\"addressbook/mobilehome\"> " + QObject::tr("Home Mobile: ") + "</b>" | 648 | text += "<br><b><img src=\"addressbook/mobilehome\"> " + QObject::tr("Home Mobile: ") + "</b>" |
649 | + Qtopia::escapeString(str); | 649 | + Qtopia::escapeString(str); |
650 | marker = true; | 650 | marker = true; |
651 | } | 651 | } |
652 | 652 | ||
653 | if ( marker ) | 653 | if ( marker ) |
654 | text += "<br><hr>"; | 654 | text += "<br><hr>"; |
655 | 655 | ||
656 | // the rest... | 656 | // the rest... |
657 | str = emails(); | 657 | str = emails(); |
658 | if ( !str.isEmpty() && ( str != defEmail ) ) | 658 | if ( !str.isEmpty() && ( str != defEmail ) ) |
659 | text += "<br><b>" + QObject::tr("All Emails: ") + "</b>" | 659 | text += "<br><b>" + QObject::tr("All Emails: ") + "</b>" |
660 | + Qtopia::escapeString(str); | 660 | + Qtopia::escapeString(str); |
661 | str = profession(); | 661 | str = profession(); |
662 | if ( !str.isEmpty() ) | 662 | if ( !str.isEmpty() ) |
663 | text += "<br><b>" + QObject::tr("Profession: ") + "</b>" | 663 | text += "<br><b>" + QObject::tr("Profession: ") + "</b>" |
664 | + Qtopia::escapeString(str); | 664 | + Qtopia::escapeString(str); |
665 | str = assistant(); | 665 | str = assistant(); |
666 | if ( !str.isEmpty() ) | 666 | if ( !str.isEmpty() ) |
667 | text += "<br><b>" + QObject::tr("Assistant: ") + "</b>" | 667 | text += "<br><b>" + QObject::tr("Assistant: ") + "</b>" |
668 | + Qtopia::escapeString(str); | 668 | + Qtopia::escapeString(str); |
669 | str = manager(); | 669 | str = manager(); |
670 | if ( !str.isEmpty() ) | 670 | if ( !str.isEmpty() ) |
671 | text += "<br><b>" + QObject::tr("Manager: ") + "</b>" | 671 | text += "<br><b>" + QObject::tr("Manager: ") + "</b>" |
672 | + Qtopia::escapeString(str); | 672 | + Qtopia::escapeString(str); |
673 | str = gender(); | 673 | str = gender(); |
674 | if ( !str.isEmpty() && str.toInt() != 0 ) { | 674 | if ( !str.isEmpty() && str.toInt() != 0 ) { |
675 | text += "<br>"; | 675 | text += "<br>"; |
676 | if ( str.toInt() == 1 ) | 676 | if ( str.toInt() == 1 ) |
677 | str = QObject::tr( "Male" ); | 677 | str = QObject::tr( "Male" ); |
678 | else if ( str.toInt() == 2 ) | 678 | else if ( str.toInt() == 2 ) |
679 | str = QObject::tr( "Female" ); | 679 | str = QObject::tr( "Female" ); |
680 | text += "<b>" + QObject::tr("Gender: ") + "</b>" + str; | 680 | text += "<b>" + QObject::tr("Gender: ") + "</b>" + str; |
681 | } | 681 | } |
682 | str = spouse(); | 682 | str = spouse(); |
683 | if ( !str.isEmpty() ) | 683 | if ( !str.isEmpty() ) |
684 | text += "<br><b>" + QObject::tr("Spouse: ") + "</b>" | 684 | text += "<br><b>" + QObject::tr("Spouse: ") + "</b>" |
685 | + Qtopia::escapeString(str); | 685 | + Qtopia::escapeString(str); |
686 | if ( birthday().isValid() ){ | 686 | if ( birthday().isValid() ){ |
687 | str = TimeString::numberDateString( birthday() ); | 687 | str = TimeString::numberDateString( birthday() ); |
688 | text += "<br><b>" + QObject::tr("Birthday: ") + "</b>" | 688 | text += "<br><b>" + QObject::tr("Birthday: ") + "</b>" |
689 | + Qtopia::escapeString(str); | 689 | + Qtopia::escapeString(str); |
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 3473baa..e34feeb 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp | |||
@@ -381,309 +381,309 @@ OContact::~OContact() | |||
381 | 381 | ||
382 | /*! \fn QString OContact::nickname() const | 382 | /*! \fn QString OContact::nickname() const |
383 | Returns the nickname of the contact. | 383 | Returns the nickname of the contact. |
384 | */ | 384 | */ |
385 | 385 | ||
386 | /*! \fn QString OContact::children() const | 386 | /*! \fn QString OContact::children() const |
387 | Returns the children of the contact. | 387 | Returns the children of the contact. |
388 | */ | 388 | */ |
389 | 389 | ||
390 | /*! \fn QString OContact::notes() const | 390 | /*! \fn QString OContact::notes() const |
391 | Returns the notes relating to the the contact. | 391 | Returns the notes relating to the the contact. |
392 | */ | 392 | */ |
393 | 393 | ||
394 | /*! \fn QString OContact::groups() const | 394 | /*! \fn QString OContact::groups() const |
395 | \internal | 395 | \internal |
396 | Returns the groups for the contact. | 396 | Returns the groups for the contact. |
397 | */ | 397 | */ |
398 | 398 | ||
399 | /*! \fn QStringList OContact::groupList() const | 399 | /*! \fn QStringList OContact::groupList() const |
400 | \internal | 400 | \internal |
401 | */ | 401 | */ |
402 | 402 | ||
403 | /*! \fn QString OContact::field(int) const | 403 | /*! \fn QString OContact::field(int) const |
404 | \internal | 404 | \internal |
405 | */ | 405 | */ |
406 | 406 | ||
407 | /*! \fn void OContact::saveJournal( journal_action, const QString & = QString::null ) | 407 | /*! \fn void OContact::saveJournal( journal_action, const QString & = QString::null ) |
408 | \internal | 408 | \internal |
409 | */ | 409 | */ |
410 | 410 | ||
411 | /*! \fn void OContact::setUid( int id ) | 411 | /*! \fn void OContact::setUid( int id ) |
412 | \internal | 412 | \internal |
413 | Sets the uid for this record to \a id. | 413 | Sets the uid for this record to \a id. |
414 | */ | 414 | */ |
415 | 415 | ||
416 | /*! \enum OContact::journal_action | 416 | /*! \enum OContact::journal_action |
417 | \internal | 417 | \internal |
418 | */ | 418 | */ |
419 | 419 | ||
420 | /*! | 420 | /*! |
421 | \internal | 421 | \internal |
422 | */ | 422 | */ |
423 | QMap<int, QString> OContact::toMap() const | 423 | QMap<int, QString> OContact::toMap() const |
424 | { | 424 | { |
425 | QMap<int, QString> map = mMap; | 425 | QMap<int, QString> map = mMap; |
426 | QString cats = idsToString( categories() ); | 426 | QString cats = idsToString( categories() ); |
427 | if ( !cats.isEmpty() ) | 427 | if ( !cats.isEmpty() ) |
428 | map.insert( Qtopia::AddressCategory, cats ); | 428 | map.insert( Qtopia::AddressCategory, cats ); |
429 | return map; | 429 | return map; |
430 | } | 430 | } |
431 | 431 | ||
432 | /*! | 432 | /*! |
433 | Returns a rich text formatted QString representing the contents the contact. | 433 | Returns a rich text formatted QString representing the contents the contact. |
434 | */ | 434 | */ |
435 | QString OContact::toRichText() const | 435 | QString OContact::toRichText() const |
436 | { | 436 | { |
437 | QString text; | 437 | QString text; |
438 | QString value, comp, state; | 438 | QString value, comp, state; |
439 | QString str; | 439 | QString str; |
440 | bool marker = false; | 440 | bool marker = false; |
441 | 441 | ||
442 | Config cfg("qpe"); | 442 | Config cfg("qpe"); |
443 | cfg.setGroup("Appearance"); | 443 | cfg.setGroup("Appearance"); |
444 | int addressformat = cfg.readNumEntry( "AddressFormat", Zip_City_State ); | 444 | int addressformat = cfg.readNumEntry( "AddressFormat", Zip_City_State ); |
445 | 445 | ||
446 | // name, jobtitle and company | 446 | // name, jobtitle and company |
447 | if ( !(value = fullName()).isEmpty() ) | 447 | if ( !(value = fullName()).isEmpty() ) |
448 | text += "<b><h3><img src=\"addressbook/AddressBook\"> " + Qtopia::escapeString(value) + "</h3></b>"; | 448 | text += "<b><h3><img src=\"addressbook/AddressBook\"> " + Qtopia::escapeString(value) + "</h3></b>"; |
449 | 449 | ||
450 | if ( !(value = jobTitle()).isEmpty() ) | 450 | if ( !(value = jobTitle()).isEmpty() ) |
451 | text += Qtopia::escapeString(value); | 451 | text += Qtopia::escapeString(value); |
452 | 452 | ||
453 | comp = company(); | 453 | comp = company(); |
454 | if ( !(value = department()).isEmpty() ) { | 454 | if ( !(value = department()).isEmpty() ) { |
455 | text += Qtopia::escapeString(value); | 455 | text += Qtopia::escapeString(value); |
456 | if ( comp ) | 456 | if ( comp ) |
457 | text += ", "; | 457 | text += ", "; |
458 | else | 458 | else |
459 | text += "<br>"; | 459 | text += "<br>"; |
460 | } | 460 | } |
461 | if ( !comp.isEmpty() ) | 461 | if ( !comp.isEmpty() ) |
462 | text += Qtopia::escapeString(comp); | 462 | text += Qtopia::escapeString(comp); |
463 | 463 | ||
464 | text += "<br><hr>"; | 464 | text += "<br><hr>"; |
465 | 465 | ||
466 | // defailt email | 466 | // defailt email |
467 | QString defEmail = defaultEmail(); | 467 | QString defEmail = defaultEmail(); |
468 | if ( !defEmail.isEmpty() ){ | 468 | if ( !defEmail.isEmpty() ){ |
469 | text += "<b><img src=\"addressbook/email\"> " + QObject::tr("Default Email: ") + "</b>" | 469 | text += "<b><img src=\"addressbook/email\"> " + QObject::tr("Default Email: ") + "</b>" |
470 | + Qtopia::escapeString(defEmail); | 470 | + Qtopia::escapeString(defEmail); |
471 | marker = true; | 471 | marker = true; |
472 | } | 472 | } |
473 | 473 | ||
474 | // business address | 474 | // business address |
475 | if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || | 475 | if ( !businessStreet().isEmpty() || !businessCity().isEmpty() || |
476 | !businessZip().isEmpty() || !businessCountry().isEmpty() ) { | 476 | !businessZip().isEmpty() || !businessCountry().isEmpty() ) { |
477 | text += QObject::tr( "<br><br><b>Work Address:</b>" ); | 477 | text += QObject::tr( "<br><b>Work Address:</b>" ); |
478 | marker = true; | 478 | marker = true; |
479 | } | 479 | } |
480 | 480 | ||
481 | if ( !(value = businessStreet()).isEmpty() ){ | 481 | if ( !(value = businessStreet()).isEmpty() ){ |
482 | text += "<br>" + Qtopia::escapeString(value); | 482 | text += "<br>" + Qtopia::escapeString(value); |
483 | marker = true; | 483 | marker = true; |
484 | } | 484 | } |
485 | 485 | ||
486 | switch( addressformat ){ | 486 | switch( addressformat ){ |
487 | case Zip_City_State:{ // Zip_Code City, State | 487 | case Zip_City_State:{ // Zip_Code City, State |
488 | state = businessState(); | 488 | state = businessState(); |
489 | if ( !(value = businessZip()).isEmpty() ){ | 489 | if ( !(value = businessZip()).isEmpty() ){ |
490 | text += "<br>" + Qtopia::escapeString(value) + " "; | 490 | text += "<br>" + Qtopia::escapeString(value) + " "; |
491 | marker = true; | 491 | marker = true; |
492 | 492 | ||
493 | } else | 493 | } |
494 | text += "<br>"; | ||
495 | |||
496 | if ( !(value = businessCity()).isEmpty() ) { | 494 | if ( !(value = businessCity()).isEmpty() ) { |
497 | marker = true; | 495 | marker = true; |
496 | if ( businessZip().isEmpty() && !businessStreet().isEmpty() ) | ||
497 | text += "<br>"; | ||
498 | text += Qtopia::escapeString(value); | 498 | text += Qtopia::escapeString(value); |
499 | if ( state ) | 499 | if ( state ) |
500 | text += ", " + Qtopia::escapeString(state); | 500 | text += ", " + Qtopia::escapeString(state); |
501 | } else if ( !state.isEmpty() ){ | 501 | } else if ( !state.isEmpty() ){ |
502 | text += "<br>" + Qtopia::escapeString(state); | 502 | text += "<br>" + Qtopia::escapeString(state); |
503 | marker = true; | 503 | marker = true; |
504 | } | 504 | } |
505 | break; | 505 | break; |
506 | } | 506 | } |
507 | case City_State_Zip:{ // City, State Zip_Code | 507 | case City_State_Zip:{ // City, State Zip_Code |
508 | state = businessState(); | 508 | state = businessState(); |
509 | if ( !(value = businessCity()).isEmpty() ) { | 509 | if ( !(value = businessCity()).isEmpty() ) { |
510 | marker = true; | 510 | marker = true; |
511 | text += "<br>" + Qtopia::escapeString(value); | 511 | text += "<br>" + Qtopia::escapeString(value); |
512 | if ( state ) | 512 | if ( state ) |
513 | text += ", " + Qtopia::escapeString(state); | 513 | text += ", " + Qtopia::escapeString(state); |
514 | } else if ( !state.isEmpty() ){ | 514 | } else if ( !state.isEmpty() ){ |
515 | text += "<br>" + Qtopia::escapeString(state); | 515 | text += "<br>" + Qtopia::escapeString(state); |
516 | marker = true; | 516 | marker = true; |
517 | } | 517 | } |
518 | if ( !(value = businessZip()).isEmpty() ){ | 518 | if ( !(value = businessZip()).isEmpty() ){ |
519 | text += " " + Qtopia::escapeString(value); | 519 | text += " " + Qtopia::escapeString(value); |
520 | marker = true; | 520 | marker = true; |
521 | } | 521 | } |
522 | break; | 522 | break; |
523 | } | 523 | } |
524 | } | 524 | } |
525 | 525 | ||
526 | if ( !(value = businessCountry()).isEmpty() ){ | 526 | if ( !(value = businessCountry()).isEmpty() ){ |
527 | text += "<br>" + Qtopia::escapeString(value); | 527 | text += "<br>" + Qtopia::escapeString(value); |
528 | marker = true; | 528 | marker = true; |
529 | } | 529 | } |
530 | 530 | ||
531 | // rest of Business data | 531 | // rest of Business data |
532 | str = office(); | 532 | str = office(); |
533 | if ( !str.isEmpty() ){ | 533 | if ( !str.isEmpty() ){ |
534 | text += "<br><b>" + QObject::tr("Office: ") + "</b>" | 534 | text += "<br><b>" + QObject::tr("Office: ") + "</b>" |
535 | + Qtopia::escapeString(str); | 535 | + Qtopia::escapeString(str); |
536 | marker = true; | 536 | marker = true; |
537 | } | 537 | } |
538 | str = businessWebpage(); | 538 | str = businessWebpage(); |
539 | if ( !str.isEmpty() ){ | 539 | if ( !str.isEmpty() ){ |
540 | text += "<br><b><img src=\"addressbook/webpagework\"> " + QObject::tr("Business Web Page: ") + "</b>" | 540 | text += "<br><b><img src=\"addressbook/webpagework\"> " + QObject::tr("Business Web Page: ") + "</b>" |
541 | + Qtopia::escapeString(str); | 541 | + Qtopia::escapeString(str); |
542 | marker = true; | 542 | marker = true; |
543 | } | 543 | } |
544 | str = businessPhone(); | 544 | str = businessPhone(); |
545 | if ( !str.isEmpty() ){ | 545 | if ( !str.isEmpty() ){ |
546 | text += "<br><b><img src=\"addressbook/phonework\"> " + QObject::tr("Business Phone: ") + "</b>" | 546 | text += "<br><b><img src=\"addressbook/phonework\"> " + QObject::tr("Business Phone: ") + "</b>" |
547 | + Qtopia::escapeString(str); | 547 | + Qtopia::escapeString(str); |
548 | marker = true; | 548 | marker = true; |
549 | } | 549 | } |
550 | str = businessFax(); | 550 | str = businessFax(); |
551 | if ( !str.isEmpty() ){ | 551 | if ( !str.isEmpty() ){ |
552 | text += "<br><b><img src=\"addressbook/faxwork\"> " + QObject::tr("Business Fax: ") + "</b>" | 552 | text += "<br><b><img src=\"addressbook/faxwork\"> " + QObject::tr("Business Fax: ") + "</b>" |
553 | + Qtopia::escapeString(str); | 553 | + Qtopia::escapeString(str); |
554 | marker = true; | 554 | marker = true; |
555 | } | 555 | } |
556 | str = businessMobile(); | 556 | str = businessMobile(); |
557 | if ( !str.isEmpty() ){ | 557 | if ( !str.isEmpty() ){ |
558 | text += "<br><b><img src=\"addressbook/mobilework\"> " + QObject::tr("Business Mobile: ") + "</b>" | 558 | text += "<br><b><img src=\"addressbook/mobilework\"> " + QObject::tr("Business Mobile: ") + "</b>" |
559 | + Qtopia::escapeString(str); | 559 | + Qtopia::escapeString(str); |
560 | marker = true; | 560 | marker = true; |
561 | } | 561 | } |
562 | str = businessPager(); | 562 | str = businessPager(); |
563 | if ( !str.isEmpty() ){ | 563 | if ( !str.isEmpty() ){ |
564 | text += "<br><b>" + QObject::tr("Business Pager: ") + "</b>" | 564 | text += "<br><b>" + QObject::tr("Business Pager: ") + "</b>" |
565 | + Qtopia::escapeString(str); | 565 | + Qtopia::escapeString(str); |
566 | marker = true; | 566 | marker = true; |
567 | } | 567 | } |
568 | 568 | ||
569 | text += "<br>"; | 569 | // text += "<br>"; |
570 | 570 | ||
571 | // home address | 571 | // home address |
572 | if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || | 572 | if ( !homeStreet().isEmpty() || !homeCity().isEmpty() || |
573 | !homeZip().isEmpty() || !homeCountry().isEmpty() ) { | 573 | !homeZip().isEmpty() || !homeCountry().isEmpty() ) { |
574 | text += QObject::tr( "<br><br><b>Home Address:</b>" ); | 574 | text += QObject::tr( "<br><b>Home Address:</b>" ); |
575 | marker = true; | 575 | marker = true; |
576 | } | 576 | } |
577 | 577 | ||
578 | if ( !(value = homeStreet()).isEmpty() ){ | 578 | if ( !(value = homeStreet()).isEmpty() ){ |
579 | text += "<br>" + Qtopia::escapeString(value); | 579 | text += "<br>" + Qtopia::escapeString(value); |
580 | marker = true; | 580 | marker = true; |
581 | } | 581 | } |
582 | 582 | ||
583 | switch( addressformat ){ | 583 | switch( addressformat ){ |
584 | case Zip_City_State:{ // Zip_Code City, State | 584 | case Zip_City_State:{ // Zip_Code City, State |
585 | state = homeState(); | 585 | state = homeState(); |
586 | if ( !(value = homeZip()).isEmpty() ){ | 586 | if ( !(value = homeZip()).isEmpty() ){ |
587 | text += "<br>" + Qtopia::escapeString(value) + " "; | 587 | text += "<br>" + Qtopia::escapeString(value) + " "; |
588 | marker = true; | 588 | marker = true; |
589 | } else | 589 | } |
590 | text += "<br>"; | ||
591 | |||
592 | if ( !(value = homeCity()).isEmpty() ) { | 590 | if ( !(value = homeCity()).isEmpty() ) { |
593 | marker = true; | 591 | marker = true; |
592 | if ( homeZip().isEmpty() && !homeStreet().isEmpty() ) | ||
593 | text += "<br>"; | ||
594 | text += Qtopia::escapeString(value); | 594 | text += Qtopia::escapeString(value); |
595 | if ( !state.isEmpty() ) | 595 | if ( !state.isEmpty() ) |
596 | text += ", " + Qtopia::escapeString(state); | 596 | text += ", " + Qtopia::escapeString(state); |
597 | } else if (!state.isEmpty()) { | 597 | } else if (!state.isEmpty()) { |
598 | text += "<br>" + Qtopia::escapeString(state); | 598 | text += "<br>" + Qtopia::escapeString(state); |
599 | marker = true; | 599 | marker = true; |
600 | } | 600 | } |
601 | break; | 601 | break; |
602 | } | 602 | } |
603 | case City_State_Zip:{ // City, State Zip_Code | 603 | case City_State_Zip:{ // City, State Zip_Code |
604 | state = homeState(); | 604 | state = homeState(); |
605 | if ( !(value = homeCity()).isEmpty() ) { | 605 | if ( !(value = homeCity()).isEmpty() ) { |
606 | marker = true; | 606 | marker = true; |
607 | text += "<br>" + Qtopia::escapeString(value); | 607 | text += "<br>" + Qtopia::escapeString(value); |
608 | if ( state ) | 608 | if ( state ) |
609 | text += ", " + Qtopia::escapeString(state); | 609 | text += ", " + Qtopia::escapeString(state); |
610 | } else if ( !state.isEmpty() ){ | 610 | } else if ( !state.isEmpty() ){ |
611 | text += "<br>" + Qtopia::escapeString(state); | 611 | text += "<br>" + Qtopia::escapeString(state); |
612 | marker = true; | 612 | marker = true; |
613 | } | 613 | } |
614 | if ( !(value = homeZip()).isEmpty() ){ | 614 | if ( !(value = homeZip()).isEmpty() ){ |
615 | text += " " + Qtopia::escapeString(value); | 615 | text += " " + Qtopia::escapeString(value); |
616 | marker = true; | 616 | marker = true; |
617 | } | 617 | } |
618 | break; | 618 | break; |
619 | } | 619 | } |
620 | } | 620 | } |
621 | 621 | ||
622 | if ( !(value = homeCountry()).isEmpty() ){ | 622 | if ( !(value = homeCountry()).isEmpty() ){ |
623 | text += "<br>" + Qtopia::escapeString(value); | 623 | text += "<br>" + Qtopia::escapeString(value); |
624 | marker = true; | 624 | marker = true; |
625 | } | 625 | } |
626 | 626 | ||
627 | // rest of Home data | 627 | // rest of Home data |
628 | str = homeWebpage(); | 628 | str = homeWebpage(); |
629 | if ( !str.isEmpty() ){ | 629 | if ( !str.isEmpty() ){ |
630 | text += "<br><b><img src=\"addressbook/webpagehome\"> " + QObject::tr("Home Web Page: ") + "</b>" | 630 | text += "<br><b><img src=\"addressbook/webpagehome\"> " + QObject::tr("Home Web Page: ") + "</b>" |
631 | + Qtopia::escapeString(str); | 631 | + Qtopia::escapeString(str); |
632 | marker = true; | 632 | marker = true; |
633 | } | 633 | } |
634 | str = homePhone(); | 634 | str = homePhone(); |
635 | if ( !str.isEmpty() ){ | 635 | if ( !str.isEmpty() ){ |
636 | text += "<br><b><img src=\"addressbook/phonehome\"> " + QObject::tr("Home Phone: ") + "</b>" | 636 | text += "<br><b><img src=\"addressbook/phonehome\"> " + QObject::tr("Home Phone: ") + "</b>" |
637 | + Qtopia::escapeString(str); | 637 | + Qtopia::escapeString(str); |
638 | marker = true; | 638 | marker = true; |
639 | } | 639 | } |
640 | str = homeFax(); | 640 | str = homeFax(); |
641 | if ( !str.isEmpty() ){ | 641 | if ( !str.isEmpty() ){ |
642 | text += "<br><b><img src=\"addressbook/faxhome\"> " + QObject::tr("Home Fax: ") + "</b>" | 642 | text += "<br><b><img src=\"addressbook/faxhome\"> " + QObject::tr("Home Fax: ") + "</b>" |
643 | + Qtopia::escapeString(str); | 643 | + Qtopia::escapeString(str); |
644 | marker = true; | 644 | marker = true; |
645 | } | 645 | } |
646 | str = homeMobile(); | 646 | str = homeMobile(); |
647 | if ( !str.isEmpty() ){ | 647 | if ( !str.isEmpty() ){ |
648 | text += "<br><b><img src=\"addressbook/mobilehome\"> " + QObject::tr("Home Mobile: ") + "</b>" | 648 | text += "<br><b><img src=\"addressbook/mobilehome\"> " + QObject::tr("Home Mobile: ") + "</b>" |
649 | + Qtopia::escapeString(str); | 649 | + Qtopia::escapeString(str); |
650 | marker = true; | 650 | marker = true; |
651 | } | 651 | } |
652 | 652 | ||
653 | if ( marker ) | 653 | if ( marker ) |
654 | text += "<br><hr>"; | 654 | text += "<br><hr>"; |
655 | 655 | ||
656 | // the rest... | 656 | // the rest... |
657 | str = emails(); | 657 | str = emails(); |
658 | if ( !str.isEmpty() && ( str != defEmail ) ) | 658 | if ( !str.isEmpty() && ( str != defEmail ) ) |
659 | text += "<br><b>" + QObject::tr("All Emails: ") + "</b>" | 659 | text += "<br><b>" + QObject::tr("All Emails: ") + "</b>" |
660 | + Qtopia::escapeString(str); | 660 | + Qtopia::escapeString(str); |
661 | str = profession(); | 661 | str = profession(); |
662 | if ( !str.isEmpty() ) | 662 | if ( !str.isEmpty() ) |
663 | text += "<br><b>" + QObject::tr("Profession: ") + "</b>" | 663 | text += "<br><b>" + QObject::tr("Profession: ") + "</b>" |
664 | + Qtopia::escapeString(str); | 664 | + Qtopia::escapeString(str); |
665 | str = assistant(); | 665 | str = assistant(); |
666 | if ( !str.isEmpty() ) | 666 | if ( !str.isEmpty() ) |
667 | text += "<br><b>" + QObject::tr("Assistant: ") + "</b>" | 667 | text += "<br><b>" + QObject::tr("Assistant: ") + "</b>" |
668 | + Qtopia::escapeString(str); | 668 | + Qtopia::escapeString(str); |
669 | str = manager(); | 669 | str = manager(); |
670 | if ( !str.isEmpty() ) | 670 | if ( !str.isEmpty() ) |
671 | text += "<br><b>" + QObject::tr("Manager: ") + "</b>" | 671 | text += "<br><b>" + QObject::tr("Manager: ") + "</b>" |
672 | + Qtopia::escapeString(str); | 672 | + Qtopia::escapeString(str); |
673 | str = gender(); | 673 | str = gender(); |
674 | if ( !str.isEmpty() && str.toInt() != 0 ) { | 674 | if ( !str.isEmpty() && str.toInt() != 0 ) { |
675 | text += "<br>"; | 675 | text += "<br>"; |
676 | if ( str.toInt() == 1 ) | 676 | if ( str.toInt() == 1 ) |
677 | str = QObject::tr( "Male" ); | 677 | str = QObject::tr( "Male" ); |
678 | else if ( str.toInt() == 2 ) | 678 | else if ( str.toInt() == 2 ) |
679 | str = QObject::tr( "Female" ); | 679 | str = QObject::tr( "Female" ); |
680 | text += "<b>" + QObject::tr("Gender: ") + "</b>" + str; | 680 | text += "<b>" + QObject::tr("Gender: ") + "</b>" + str; |
681 | } | 681 | } |
682 | str = spouse(); | 682 | str = spouse(); |
683 | if ( !str.isEmpty() ) | 683 | if ( !str.isEmpty() ) |
684 | text += "<br><b>" + QObject::tr("Spouse: ") + "</b>" | 684 | text += "<br><b>" + QObject::tr("Spouse: ") + "</b>" |
685 | + Qtopia::escapeString(str); | 685 | + Qtopia::escapeString(str); |
686 | if ( birthday().isValid() ){ | 686 | if ( birthday().isValid() ){ |
687 | str = TimeString::numberDateString( birthday() ); | 687 | str = TimeString::numberDateString( birthday() ); |
688 | text += "<br><b>" + QObject::tr("Birthday: ") + "</b>" | 688 | text += "<br><b>" + QObject::tr("Birthday: ") + "</b>" |
689 | + Qtopia::escapeString(str); | 689 | + Qtopia::escapeString(str); |