qtmobility/src/contacts/details/qcontactaddress.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 QContactAddress : public QContactDetail
    55 class Q_CONTACTS_EXPORT QContactAddress : 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* FieldStreet;
    60     static const QLatin1Constant FieldStreet;
    61     const char* FieldLocality;
    61     static const QLatin1Constant FieldLocality;
    62     const char* FieldRegion;
    62     static const QLatin1Constant FieldRegion;
    63     const char* FieldPostcode;
    63     static const QLatin1Constant FieldPostcode;
    64     const char* FieldCountry;
    64     static const QLatin1Constant FieldCountry;
    65     const char* FieldSubTypes;
    65     static const QLatin1Constant FieldSubTypes;
    66     const char* FieldPostOfficeBox;
    66     static const QLatin1Constant FieldPostOfficeBox;
    67     const char* SubTypeParcel;
    67     static const QLatin1Constant SubTypeParcel;
    68     const char* SubTypePostal;
    68     static const QLatin1Constant SubTypePostal;
    69     const char* SubTypeDomestic;
    69     static const QLatin1Constant SubTypeDomestic;
    70     const char* SubTypeInternational;
    70     static const QLatin1Constant SubTypeInternational;
    71 #else
    71 #else
    72     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAddress, "StreetAddress")
    72     Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactAddress, "Address")
    73     Q_DECLARE_LATIN1_LITERAL(FieldStreet, "Street");
    73     Q_DECLARE_LATIN1_CONSTANT(FieldStreet, "Street");
    74     Q_DECLARE_LATIN1_LITERAL(FieldLocality, "Locality");
    74     Q_DECLARE_LATIN1_CONSTANT(FieldLocality, "Locality");
    75     Q_DECLARE_LATIN1_LITERAL(FieldRegion, "Region");
    75     Q_DECLARE_LATIN1_CONSTANT(FieldRegion, "Region");
    76     Q_DECLARE_LATIN1_LITERAL(FieldPostcode, "Postcode");
    76     Q_DECLARE_LATIN1_CONSTANT(FieldPostcode, "Postcode");
    77     Q_DECLARE_LATIN1_LITERAL(FieldCountry, "Country");
    77     Q_DECLARE_LATIN1_CONSTANT(FieldCountry, "Country");
    78     Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes");
    78     Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes");
    79     Q_DECLARE_LATIN1_LITERAL(FieldPostOfficeBox, "PostOfficeBox");
    79     Q_DECLARE_LATIN1_CONSTANT(FieldPostOfficeBox, "PostOfficeBox");
    80     Q_DECLARE_LATIN1_LITERAL(SubTypeParcel, "Parcel");
    80     Q_DECLARE_LATIN1_CONSTANT(SubTypeParcel, "Parcel");
    81     Q_DECLARE_LATIN1_LITERAL(SubTypePostal, "Postal");
    81     Q_DECLARE_LATIN1_CONSTANT(SubTypePostal, "Postal");
    82     Q_DECLARE_LATIN1_LITERAL(SubTypeDomestic, "Domestic");
    82     Q_DECLARE_LATIN1_CONSTANT(SubTypeDomestic, "Domestic");
    83     Q_DECLARE_LATIN1_LITERAL(SubTypeInternational, "International");
    83     Q_DECLARE_LATIN1_CONSTANT(SubTypeInternational, "International");
    84 #endif
    84 #endif
    85 
    85 
    86     void setStreet(const QString& street) {setValue(FieldStreet, street);}
    86     void setStreet(const QString& street) {setValue(FieldStreet, street);}
    87     QString street() const {return value(FieldStreet);}
    87     QString street() const {return value(FieldStreet);}
    88     void setLocality(const QString& locality) {setValue(FieldLocality, locality);}
    88     void setLocality(const QString& locality) {setValue(FieldLocality, locality);}