|
1 /* |
|
2 * Copyright (c) 2002-2005 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: LandmarksUi Content File - |
|
15 * Contains common constants |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef LMKCONSTS_H |
|
26 #define LMKCONSTS_H |
|
27 |
|
28 #include <lmkui.mbg> |
|
29 #include <landmarks.mbg> |
|
30 #include <data_caging_path_literals.hrh> |
|
31 #include <landmarks.loc> |
|
32 |
|
33 |
|
34 // CONSTANTS |
|
35 _LIT( KLmkTmp_RESOURCE_FILES_DIR, "\\resource\\"); // KDC_RESOURCE_FILES_DIR |
|
36 // Following own literals are used because platform's literals are insufficient: |
|
37 _LIT( KLmkSystemMbmPath, "\\resource\\apps\\" ); // == KDC_APP_BITMAP_DIR |
|
38 _LIT(KLmkEncodedDataFileName, "EncodedLmData" ); |
|
39 _LIT(KLmkEncodedDataFileExtension, ".lmx"); |
|
40 _LIT( KLmkUiIconFileName, "LmkUi.mif" ); |
|
41 _LIT( KLandmarksIconFileName, "Landmarks.mif" ); |
|
42 _LIT( KLmkUiRscFileName, "LmkUi.rsc" ); |
|
43 |
|
44 //used for url field to identify protocol present or not |
|
45 _LIT( KProtocol, ":" ); |
|
46 //used as default protocol for url field. |
|
47 _LIT(KHttp, "http://"); |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 //default icon id |
|
53 const TUint KLmkDefaultId(EMbmLmkuiQgn_prop_lm_gene); |
|
54 const TUint KCategoryDefaultId(EMbmLmkuiQgn_prop_lm_gene); |
|
55 |
|
56 // Icon ID defines for generic IconIndex and IconMaskIndex |
|
57 |
|
58 const TUint KLmkGenericIconIndex( EMbmLmkuiQgn_prop_lm_gene ); |
|
59 const TUint KLmkGenericIconMaskIndex ( EMbmLmkuiQgn_prop_lm_gene_mask ); |
|
60 |
|
61 // default granularity for array containing marked item indexes: |
|
62 const TInt KLmkMultiSelectionGranularity( 10 ); |
|
63 |
|
64 // default granularity of landmark or category array: |
|
65 const TInt KLmItemArrayGranularity( 100 ); |
|
66 |
|
67 //Zero tab |
|
68 const TInt KZeroResourceId( 0 ); |
|
69 |
|
70 const TUid KLmkEventListenerSingletonUid = { 0x1 }; |
|
71 |
|
72 //location request timeout |
|
73 const TInt KLmkLRTimeOut( 30000000 ); //30s |
|
74 |
|
75 //distance converters |
|
76 const TInt KKilometerToMeter( 1000 ); |
|
77 const TReal KMileToMeter( 1609.344 ); |
|
78 const TReal KFeetToMeter( 0.3048 ); |
|
79 const TReal KMetreToFoot( 3.280839895013123 ); |
|
80 const TInt KMileToFeet( 5280 ); |
|
81 |
|
82 // Max and Min Limits Number Editor values |
|
83 |
|
84 const TInt KMaxLatitude = 90; |
|
85 const TInt KMinLatitude = -90; |
|
86 const TInt KMaxLongitude = 180; |
|
87 const TInt KMinLongitude = -180; |
|
88 |
|
89 const TInt KMaxAltitude = 20000; // Max altitude 20000m |
|
90 const TInt KMinAltitude = -500; // Min altitude -500m |
|
91 |
|
92 const TInt KMaxAccuracy = 20000; |
|
93 const TInt KMinAccuracy = 0; |
|
94 |
|
95 //Added for Package Name |
|
96 const TInt KLmkPackageNameMaxLen(127); |
|
97 |
|
98 // Invalid List Index |
|
99 const TInt KLmkInValidIndex (-1); |
|
100 |
|
101 const TInt KMaxCategoryNameFieldLen( 150 ); |
|
102 |
|
103 const TInt KMaxDescriptionFieldLen (250); |
|
104 const TInt KMaxPhoneNumberFieldLen (48); |
|
105 const TInt KMaxUrlFieldLen (150); |
|
106 const TInt KMaxBufferLen (255); |
|
107 const TInt KMaxUrlFieldLenWithDefaultProtocol(143); |
|
108 const TInt KMskCommandPos (3); |
|
109 #endif // LMKCONSTS_H |
|
110 |
|
111 // End of File |