|
1 /* |
|
2 * Copyright (c) 2006-2007 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 the License "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: Max lengths defined based on phonebook engine observation |
|
15 : as virtual phone book does'nt ve any information about Max length |
|
16 : these are temporary limits as they can change once the |
|
17 : fix from vpbk is available. |
|
18 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef C_CCONTACTSMAXLENGTH_H |
|
24 #define C_CCONTACTSMAXLENGTH_H |
|
25 |
|
26 /* |
|
27 Constant literals for sim database. |
|
28 */ |
|
29 |
|
30 _LIT(KSimDataBaseOne,"sim://global_adn"); |
|
31 |
|
32 /* |
|
33 PREFIX, SUFFIX |
|
34 */ |
|
35 const TInt KMaxLengthTen = 10; |
|
36 |
|
37 /* |
|
38 LASTNAME for SIM |
|
39 */ |
|
40 const TInt KMaLengthFourteen = 14; |
|
41 /* |
|
42 ADDRPOGEN, ADDRPOHOME, ADDRPOWORK, ADDRPOSTCODEGEN, ADDRPOSTCODEHOME, ADDRPOSTCODEWORK |
|
43 */ |
|
44 const TInt KMaxLengthTwenty = 20; |
|
45 |
|
46 /* |
|
47 These are the fields which ve 48 as max lentghs |
|
48 MOBILEPHONEGEN, MOBILEPHONEHOME, MOBILEPHONEWORK, LANDPHONEGEN, LANDPHONEHOME, LANDPHONEWORK, |
|
49 VIDEONUMBERHOME, VIDEONUMBERWORK, VIDEONUMBERGEN, CARPHONE , PAGENUMBER, FAXNUMBERHOME, FAXNUMBERWORK, FAXNUMBERGEN |
|
50 */ |
|
51 const TInt KMaxLengthFourtyEight = 48; |
|
52 |
|
53 /* |
|
54 These are the fields which ve 50 as max lentghs |
|
55 LASTNAME, SECONDNAME, FIRSTNAME, DEPARTMENT, JOBTITLE, ASSTPHONE, CHILDREN, COMPANYNAME, MIDDLENAME, |
|
56 MIDDLENAME, ADDRSTREETGEN, ADDRSTREETHOME, ADDRSTREETWORK, ADDRLOCALGEN, ADDRLOCALHOME, ADDRLOCALWORK, ADDRREGIONGEN, ADDRREGIONHOME, |
|
57 ADDRREGIONWORK, ADDRCOUNTRYGEN, ADDRCOUNTRYHOME, ADDRCOUNTRYWORK, ASSTNAME, SPOUSE. |
|
58 */ |
|
59 const TInt KMaxLengthFifty = 50; |
|
60 |
|
61 /* |
|
62 DTMFSTRING |
|
63 */ |
|
64 const TInt KMaxLengthSixty = 60; |
|
65 |
|
66 /* |
|
67 SIP, PUSHTOTALK, VOIPHOME, VOIPWORK, VOIPGEN |
|
68 */ |
|
69 const TInt KMaxLengthHundred = 100; |
|
70 |
|
71 /* |
|
72 EMAILGEN, EMAILWORK, EMAILHOME |
|
73 */ |
|
74 const TInt KMaxLengthOneHundredAndFifty = 150; |
|
75 /* |
|
76 ADDRLABELHOME, ADDRLABELGEN, ADDRLABELWORK |
|
77 */ |
|
78 const TInt KMaxLengthTwoHundredAndFifty = 250; |
|
79 |
|
80 /* |
|
81 LOCPRIVACY, RINGTONE |
|
82 */ |
|
83 const TInt KMaxLengthTwoHundredAndFiftySix = 256; |
|
84 |
|
85 /* |
|
86 URLWORK, URLHOME, URLGEN, NOTE |
|
87 */ |
|
88 const TInt KMaxLengthThousand = 1000; |
|
89 |
|
90 #endif |