qtmobility/src/contacts/details/qcontactfamily.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    54 /* Leaf class */
    54 /* Leaf class */
    55 class Q_CONTACTS_EXPORT QContactFamily : public QContactDetail
    55 class Q_CONTACTS_EXPORT QContactFamily : public QContactDetail
    56 {
    56 {
    57 public:
    57 public:
    58 #ifdef Q_QDOC
    58 #ifdef Q_QDOC
    59     const char* DefinitionName;
    59     static const QLatin1Constant DefinitionName;
    60     const char* FieldSpouse;
    60     static const QLatin1Constant FieldSpouse;
    61     const char* FieldChildren;
    61     static const QLatin1Constant FieldChildren;
    62 #else
    62 #else
    63     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactFamily, "Family")
    63     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactFamily, "Family")
    64     Q_DECLARE_LATIN1_LITERAL(FieldSpouse, "Spouse");
    64     Q_DECLARE_LATIN1_CONSTANT(FieldSpouse, "Spouse");
    65     Q_DECLARE_LATIN1_LITERAL(FieldChildren, "Children");
    65     Q_DECLARE_LATIN1_CONSTANT(FieldChildren, "Children");
    66 #endif
    66 #endif
    67 
    67 
    68     void setSpouse(const QString& spouseName) {setValue(FieldSpouse, spouseName);}
    68     void setSpouse(const QString& spouseName) {setValue(FieldSpouse, spouseName);}
    69     QString spouse() const {return value(FieldSpouse);}
    69     QString spouse() const {return value(FieldSpouse);}
    70     void setChildren(const QStringList& childrenNames) {setValue(FieldChildren, childrenNames);}
    70     void setChildren(const QStringList& childrenNames) {setValue(FieldChildren, childrenNames);}