55 //! [0] |
55 //! [0] |
56 class Q_CONTACTS_EXPORT QContactPhoneNumber : public QContactDetail |
56 class Q_CONTACTS_EXPORT QContactPhoneNumber : public QContactDetail |
57 { |
57 { |
58 public: |
58 public: |
59 #ifdef Q_QDOC |
59 #ifdef Q_QDOC |
60 const char* DefinitionName; |
60 static const QLatin1Constant DefinitionName; |
61 const char* FieldNumber; |
61 static const QLatin1Constant FieldNumber; |
62 const char* FieldSubTypes; |
62 static const QLatin1Constant FieldSubTypes; |
63 const char* SubTypeLandline; |
63 static const QLatin1Constant SubTypeLandline; |
64 const char* SubTypeMobile; |
64 static const QLatin1Constant SubTypeMobile; |
65 const char* SubTypeFacsimile; |
65 static const QLatin1Constant SubTypeFax; |
66 const char* SubTypePager; |
66 static const QLatin1Constant SubTypePager; |
67 const char* SubTypeVoice; |
67 static const QLatin1Constant SubTypeVoice; |
68 const char* SubTypeModem; |
68 static const QLatin1Constant SubTypeModem; |
69 const char* SubTypeVideo; |
69 static const QLatin1Constant SubTypeVideo; |
70 const char* SubTypeCar; |
70 static const QLatin1Constant SubTypeCar; |
71 const char* SubTypeBulletinBoardSystem; |
71 static const QLatin1Constant SubTypeBulletinBoardSystem; |
72 const char* SubTypeMessagingCapable; |
72 static const QLatin1Constant SubTypeMessagingCapable; |
73 const char* SubTypeAssistant; |
73 static const QLatin1Constant SubTypeAssistant; |
74 const char* SubTypeDtmfMenu; |
74 static const QLatin1Constant SubTypeDtmfMenu; |
75 #else |
75 #else |
76 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactPhoneNumber, "PhoneNumber") |
76 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactPhoneNumber, "PhoneNumber") |
77 Q_DECLARE_LATIN1_LITERAL(FieldNumber, "PhoneNumber"); |
77 Q_DECLARE_LATIN1_CONSTANT(FieldNumber, "PhoneNumber"); |
78 Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); |
78 Q_DECLARE_LATIN1_CONSTANT(FieldSubTypes, "SubTypes"); |
79 Q_DECLARE_LATIN1_LITERAL(SubTypeLandline, "Landline"); |
79 Q_DECLARE_LATIN1_CONSTANT(SubTypeLandline, "Landline"); |
80 Q_DECLARE_LATIN1_LITERAL(SubTypeMobile, "Mobile"); |
80 Q_DECLARE_LATIN1_CONSTANT(SubTypeMobile, "Mobile"); |
81 Q_DECLARE_LATIN1_LITERAL(SubTypeFacsimile, "Facsimile"); |
81 Q_DECLARE_LATIN1_CONSTANT(SubTypeFax, "Fax"); |
82 Q_DECLARE_LATIN1_LITERAL(SubTypePager, "Pager"); |
82 Q_DECLARE_LATIN1_CONSTANT(SubTypePager, "Pager"); |
83 Q_DECLARE_LATIN1_LITERAL(SubTypeVoice, "Voice"); |
83 Q_DECLARE_LATIN1_CONSTANT(SubTypeVoice, "Voice"); |
84 Q_DECLARE_LATIN1_LITERAL(SubTypeModem, "Modem"); |
84 Q_DECLARE_LATIN1_CONSTANT(SubTypeModem, "Modem"); |
85 Q_DECLARE_LATIN1_LITERAL(SubTypeVideo, "Video"); |
85 Q_DECLARE_LATIN1_CONSTANT(SubTypeVideo, "Video"); |
86 Q_DECLARE_LATIN1_LITERAL(SubTypeCar, "Car"); |
86 Q_DECLARE_LATIN1_CONSTANT(SubTypeCar, "Car"); |
87 Q_DECLARE_LATIN1_LITERAL(SubTypeBulletinBoardSystem, "BulletinBoardSystem"); |
87 Q_DECLARE_LATIN1_CONSTANT(SubTypeBulletinBoardSystem, "BulletinBoardSystem"); |
88 Q_DECLARE_LATIN1_LITERAL(SubTypeMessagingCapable, "MessagingCapable"); |
88 Q_DECLARE_LATIN1_CONSTANT(SubTypeMessagingCapable, "MessagingCapable"); |
89 Q_DECLARE_LATIN1_LITERAL(SubTypeAssistant, "Assistant"); |
89 Q_DECLARE_LATIN1_CONSTANT(SubTypeAssistant, "Assistant"); |
90 Q_DECLARE_LATIN1_LITERAL(SubTypeDtmfMenu, "DtmfMenu"); |
90 Q_DECLARE_LATIN1_CONSTANT(SubTypeDtmfMenu, "DtmfMenu"); |
91 #endif |
91 #endif |
92 |
92 |
93 void setNumber(const QString& number) {setValue(FieldNumber, number);} |
93 void setNumber(const QString& number) {setValue(FieldNumber, number);} |
94 QString number() const {return value(FieldNumber);} |
94 QString number() const {return value(FieldNumber);} |
95 |
95 |