equal
deleted
inserted
replaced
1 /* |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
3 * All rights reserved. |
3 // This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
8 * |
8 // Initial Contributors: |
9 * Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
10 // |
11 * |
11 // Contributors: |
12 * Contributors: |
12 // |
13 * |
13 // Description: |
14 * Description: |
14 // |
15 * |
|
16 */ |
|
17 |
|
18 |
15 |
19 #include "cntvcardutils.h" |
16 #include "cntvcardutils.h" |
20 |
17 |
21 // System includes |
18 // System includes |
22 #include <badesca.h> |
19 #include <badesca.h> |
27 // User includes |
24 // User includes |
28 #include <cntfldst.h> |
25 #include <cntfldst.h> |
29 #include <cntfield.h> |
26 #include <cntfield.h> |
30 #include <cntdef.h> |
27 #include <cntdef.h> |
31 #include <cntitem.h> |
28 #include <cntitem.h> |
|
29 |
32 |
30 |
33 // Constants |
31 // Constants |
34 const TInt KVCardImportAddressArrayGranularity = 4; |
32 const TInt KVCardImportAddressArrayGranularity = 4; |
35 const TInt KContactGivenName = 1; |
33 const TInt KContactGivenName = 1; |
36 const TInt KContactFamilyName = 0; |
34 const TInt KContactFamilyName = 0; |
42 const TInt KContactAddress = 2; |
40 const TInt KContactAddress = 2; |
43 const TInt KContactLocality = 3; |
41 const TInt KContactLocality = 3; |
44 const TInt KContactRegion = 4; |
42 const TInt KContactRegion = 4; |
45 const TInt KContactPostcode = 5; |
43 const TInt KContactPostcode = 5; |
46 const TInt KContactCountry = 6; |
44 const TInt KContactCountry = 6; |
|
45 |
|
46 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
47 const TInt KContactMaxFieldNumber = 32; |
|
48 #endif |
47 |
49 |
48 /** |
50 /** |
49 * Delete name fields from a contact |
51 * Delete name fields from a contact |
50 * |
52 * |
51 * @param aContact Contact item |
53 * @param aContact Contact item |
1437 if(vpropNameConst.CompareF(KVersitTokenTZ) == 0) |
1439 if(vpropNameConst.CompareF(KVersitTokenTZ) == 0) |
1438 { |
1440 { |
1439 mapping=KUidContactFieldVCardMapNotRequired; |
1441 mapping=KUidContactFieldVCardMapNotRequired; |
1440 } |
1442 } |
1441 break; |
1443 break; |
1442 ////////////// |
1444 // |
1443 default: // aka case KVersitPropertyHBufCUid: |
1445 default: // aka case KVersitPropertyHBufCUid: |
1444 aStorageType=KStorageTypeText; |
1446 aStorageType=KStorageTypeText; |
1445 mapping = KUidContactFieldVCardMapUnknown; // Initialize to something sensible |
1447 mapping = KUidContactFieldVCardMapUnknown; // Initialize to something sensible |
1446 switch (vpropNameConst[0]) |
1448 switch (vpropNameConst[0]) |
1447 { |
1449 { |