1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef QCONTACTPHONENUMBER_H |
|
21 #define QCONTACTPHONENUMBER_H |
|
22 |
|
23 #include <QString> |
|
24 |
|
25 #include "qcontactdetail.h" |
|
26 #include "qcontact.h" |
|
27 #include <qtcontactsglobal.h> |
|
28 |
|
29 |
|
30 /* Leaf class */ |
|
31 //! [0] |
|
32 class QContactPhoneNumber : public QContactDetail |
|
33 { |
|
34 public: |
|
35 |
|
36 Q_DECLARE_CUSTOM_CONTACT_DETAIL(QContactPhoneNumber, "PhoneNumber"); |
|
37 Q_DECLARE_LATIN1_LITERAL(FieldNumber, "PhoneNumber"); |
|
38 Q_DECLARE_LATIN1_LITERAL(FieldSubTypes, "SubTypes"); |
|
39 Q_DECLARE_LATIN1_LITERAL(SubTypeLandline, "Landline"); |
|
40 Q_DECLARE_LATIN1_LITERAL(SubTypeMobile, "Mobile"); |
|
41 Q_DECLARE_LATIN1_LITERAL(SubTypeFacsimile, "Facsimile"); |
|
42 Q_DECLARE_LATIN1_LITERAL(SubTypePager, "Pager"); |
|
43 Q_DECLARE_LATIN1_LITERAL(SubTypeVoice, "Voice"); |
|
44 Q_DECLARE_LATIN1_LITERAL(SubTypeModem, "Modem"); |
|
45 Q_DECLARE_LATIN1_LITERAL(SubTypeVideo, "Video"); |
|
46 Q_DECLARE_LATIN1_LITERAL(SubTypeCar, "Car"); |
|
47 Q_DECLARE_LATIN1_LITERAL(SubTypeBulletinBoardSystem, "BulletinBoardSystem"); |
|
48 Q_DECLARE_LATIN1_LITERAL(SubTypeMessagingCapable, "MessagingCapable"); |
|
49 Q_DECLARE_LATIN1_LITERAL(SubTypeAssistant, "Assistant"); |
|
50 Q_DECLARE_LATIN1_LITERAL(SubTypeDtmfMenu, "DtmfMenu"); |
|
51 |
|
52 |
|
53 }; |
|
54 //! [0] |
|
55 |
|
56 #endif |
|
57 |
|