equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 #ifndef CNTPHONENUMBERHELPER_H |
|
19 #define CNTPHONENUMBERHELPER_H |
|
20 |
|
21 #include <qmobilityglobal.h> |
|
22 #include <qtcontacts.h> |
|
23 |
|
24 QTM_BEGIN_NAMESPACE |
|
25 class QContact; |
|
26 QTM_END_NAMESPACE |
|
27 |
|
28 QTM_USE_NAMESPACE |
|
29 |
|
30 class CntDetailOrderingHelper |
|
31 { |
|
32 |
|
33 enum CntPhoneNumberPosition |
|
34 { |
|
35 EMobile = 0, |
|
36 EMobileHome, |
|
37 EMobileWork, |
|
38 EPhone, |
|
39 EPhoneHome, |
|
40 EPhoneWork, |
|
41 EFax, |
|
42 EFaxHome, |
|
43 EFaxWork, |
|
44 EPager, |
|
45 EAssistant, |
|
46 ECar |
|
47 }; |
|
48 |
|
49 enum CntOnlineAccountPosition |
|
50 { |
|
51 EInternetTelephone = 0, |
|
52 EInternetTelephoneHome, |
|
53 EInternetTelephoneWork, |
|
54 ESip |
|
55 }; |
|
56 |
|
57 enum CntEmailAccountsPosition |
|
58 { |
|
59 EEmail = 0, |
|
60 EEmailHome, |
|
61 EEmailWork |
|
62 }; |
|
63 |
|
64 enum CntUrlPosition |
|
65 { |
|
66 EUrl = 0, |
|
67 EUrlHome, |
|
68 EUrlWork |
|
69 }; |
|
70 |
|
71 public: |
|
72 static QList<QContactPhoneNumber> getOrderedSupportedPhoneNumbers( const QContact& contact ); |
|
73 static QList<QContactOnlineAccount> getOrderedSupportedOnlineAccounts( const QContact& contact ); |
|
74 static QList<QContactEmailAddress> getOrderedEmailAccounts( const QContact& contact ); |
|
75 static QList<QContactUrl> getOrderedUrls( const QContact& contact ); |
|
76 }; |
|
77 |
|
78 #endif /* CNTPHONENUMBERHELPER_H */ |