QContactTag Class ReferenceThe QContactTag class contains a tag associated with a contact. More... #include <QContactTag> Inherits QContactDetail. Public Functions
Static Public Members
Detailed DescriptionThe QContactTag class contains a tag associated with a contact. Typically the tags associated with a contact will be distinct, although this is usually only enforced when the contact is saved in the manager. Here is an example of retrieving all the tags for a contact: QSet<QString> tags; foreach(const QContactTag& tag, contact.details<QContactTag>()) { tags.insert(tag.tag()); } Here is an example of checking for a specific tag value: if (contact.details<QContactTag>(QContactTag::FieldTag, "MyTag").count() > 0) {
// Do something with it
}
This leaf-class has been part of the default schema since version 1.0 of the Qt Mobility project. Member Function Documentation
|