39 typedef QPair<LocalizedString, QVariant>
InfoField;
48 Q_DECLARE_PRIVATE(Contact)
49 Q_PROPERTY(QStringList tags READ tags WRITE setTags NOTIFY tagsChanged)
50 Q_PROPERTY(
bool inList READ isInList WRITE setInList NOTIFY inListChanged)
57 Contact(Account *account);
58 Contact(ContactPrivate &d, Account *account);
68 virtual QStringList tags()
const;
74 virtual void setTags(
const QStringList &tags) = 0;
80 virtual bool isInList()
const = 0;
86 virtual void setInList(
bool inList) = 0;
90 void addToList() { setInList(
true); }
94 void removeFromList() { setInList(
false); }
95 virtual ChatUnit *upperUnit();
99 void tagsChanged(
const QStringList ¤t,
const QStringList &previous);
100 void inListChanged(
bool inList);
102 friend class MetaContact;
108 Q_CLASSINFO(
"Service",
"ContactComparator")
110 virtual
int compare(Contact *a, Contact *b) = 0;