-rw-r--r-- | kabc/addressee.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kabc/addressee.h b/kabc/addressee.h index ee98e03..393d1cc 100644 --- a/kabc/addressee.h +++ b/kabc/addressee.h | |||
@@ -699,119 +699,125 @@ class Addressee | |||
699 | 699 | ||
700 | /** | 700 | /** |
701 | Return list of all addresses. | 701 | Return list of all addresses. |
702 | */ | 702 | */ |
703 | Address::List addresses() const; | 703 | Address::List addresses() const; |
704 | 704 | ||
705 | /** | 705 | /** |
706 | Return list of addresses with a special type. | 706 | Return list of addresses with a special type. |
707 | */ | 707 | */ |
708 | Address::List addresses( int type ) const; | 708 | Address::List addresses( int type ) const; |
709 | 709 | ||
710 | /** | 710 | /** |
711 | Return address with the given id. | 711 | Return address with the given id. |
712 | */ | 712 | */ |
713 | Address findAddress( const QString &id ) const; | 713 | Address findAddress( const QString &id ) const; |
714 | 714 | ||
715 | /** | 715 | /** |
716 | Insert category. If the category already exists it is not duplicated. | 716 | Insert category. If the category already exists it is not duplicated. |
717 | */ | 717 | */ |
718 | void insertCategory( const QString & ); | 718 | void insertCategory( const QString & ); |
719 | 719 | ||
720 | /** | 720 | /** |
721 | Remove category. | 721 | Remove category. |
722 | */ | 722 | */ |
723 | void removeCategory( const QString & ); | 723 | void removeCategory( const QString & ); |
724 | 724 | ||
725 | /** | 725 | /** |
726 | Return, if addressee has the given category. | 726 | Return, if addressee has the given category. |
727 | */ | 727 | */ |
728 | bool hasCategory( const QString & ) const; | 728 | bool hasCategory( const QString & ) const; |
729 | 729 | ||
730 | /** | 730 | /** |
731 | Set categories to given value. | 731 | Set categories to given value. |
732 | */ | 732 | */ |
733 | void setCategories( const QStringList & ); | 733 | void setCategories( const QStringList & ); |
734 | 734 | ||
735 | /** | 735 | /** |
736 | Return list of all set categories. | 736 | Return list of all set categories. |
737 | */ | 737 | */ |
738 | QStringList categories() const; | 738 | QStringList categories() const; |
739 | 739 | ||
740 | /** | 740 | /** |
741 | Insert custom entry. The entry is identified by the name of the inserting | 741 | Insert custom entry. The entry is identified by the name of the inserting |
742 | application and a unique name. If an entry with the given app and name | 742 | application and a unique name. If an entry with the given app and name |
743 | already exists its value is replaced with the new given value. | 743 | already exists its value is replaced with the new given value. |
744 | */ | 744 | */ |
745 | void insertCustom( const QString &app, const QString &name, | 745 | void insertCustom( const QString &app, const QString &name, |
746 | const QString &value ); | 746 | const QString &value ); |
747 | 747 | ||
748 | /** | 748 | /** |
749 | Remove custom entry. | 749 | Remove custom entry. |
750 | */ | 750 | */ |
751 | void removeCustom( const QString &app, const QString &name ); | 751 | void removeCustom( const QString &app, const QString &name ); |
752 | 752 | ||
753 | /** | 753 | /** |
754 | Return value of custom entry, identified by app and entry name. | 754 | Return value of custom entry, identified by app and entry name. |
755 | */ | 755 | */ |
756 | QString custom( const QString &app, const QString &name ) const; | 756 | QString custom( const QString &app, const QString &name ) const; |
757 | 757 | ||
758 | /** | 758 | /** |
759 | Set all custom entries. | 759 | Set all custom entries. |
760 | */ | 760 | */ |
761 | void setCustoms( const QStringList & ); | 761 | void setCustoms( const QStringList & ); |
762 | 762 | ||
763 | /** | 763 | /** |
764 | Return list of all custom entries. | 764 | Return list of all custom entries. |
765 | */ | 765 | */ |
766 | QStringList customs() const; | 766 | QStringList customs() const; |
767 | 767 | ||
768 | /** | 768 | /** |
769 | Parse full email address. The result is given back in fullName and email. | 769 | Parse full email address. The result is given back in fullName and email. |
770 | */ | 770 | */ |
771 | static void parseEmailAddress( const QString &rawEmail, QString &fullName, | 771 | static void parseEmailAddress( const QString &rawEmail, QString &fullName, |
772 | QString &email ); | 772 | QString &email ); |
773 | 773 | ||
774 | /** | 774 | /** |
775 | Debug output. | 775 | Debug output. |
776 | */ | 776 | */ |
777 | void dump() const; | 777 | void dump() const; |
778 | 778 | ||
779 | /** | 779 | /** |
780 | Returns string representation of the addressee. | 780 | Returns string representation of the addressee. |
781 | */ | 781 | */ |
782 | QString asString() const; | 782 | QString asString() const; |
783 | 783 | ||
784 | /** | 784 | /** |
785 | Set resource where the addressee is from. | 785 | Set resource where the addressee is from. |
786 | */ | 786 | */ |
787 | void setResource( Resource *resource ); | 787 | void setResource( Resource *resource ); |
788 | 788 | ||
789 | /** | 789 | /** |
790 | Return pointer to resource. | 790 | Return pointer to resource. |
791 | */ | 791 | */ |
792 | Resource *resource() const; | 792 | Resource *resource() const; |
793 | 793 | ||
794 | /** | 794 | /** |
795 | Return resourcelabel. | ||
796 | */ | ||
797 | //US | ||
798 | static QString resourceLabel(); | ||
799 | |||
800 | /** | ||
795 | Mark addressee as changed. | 801 | Mark addressee as changed. |
796 | */ | 802 | */ |
797 | void setChanged( bool value ); | 803 | void setChanged( bool value ); |
798 | 804 | ||
799 | /** | 805 | /** |
800 | Return whether the addressee is changed. | 806 | Return whether the addressee is changed. |
801 | */ | 807 | */ |
802 | bool changed() const; | 808 | bool changed() const; |
803 | 809 | ||
804 | private: | 810 | private: |
805 | Addressee copy(); | 811 | Addressee copy(); |
806 | void detach(); | 812 | void detach(); |
807 | 813 | ||
808 | struct AddresseeData; | 814 | struct AddresseeData; |
809 | mutable KSharedPtr<AddresseeData> mData; | 815 | mutable KSharedPtr<AddresseeData> mData; |
810 | }; | 816 | }; |
811 | 817 | ||
812 | QDataStream &operator<<( QDataStream &, const Addressee & ); | 818 | QDataStream &operator<<( QDataStream &, const Addressee & ); |
813 | QDataStream &operator>>( QDataStream &, Addressee & ); | 819 | QDataStream &operator>>( QDataStream &, Addressee & ); |
814 | 820 | ||
815 | } | 821 | } |
816 | 822 | ||
817 | #endif | 823 | #endif |