|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * Contains common constants |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __BLID_BLIDCONSTS_H__ |
|
21 #define __BLID_BLIDCONSTS_H__ |
|
22 |
|
23 #include <data_caging_path_literals.hrh> |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // These own literals are used because platform's literals are insufficient: |
|
28 _LIT( KBlidSystemMbmPath, "\\resource\\apps\\" ); // KDC_APP_BITMAP_DIR |
|
29 // Filename of bitmaps |
|
30 _LIT( KBlidBitmapFileName, "Blid.mbm" ); |
|
31 |
|
32 // Blid UI's constants |
|
33 const TInt KZeroResourceId(0); |
|
34 |
|
35 const TUint KAsterixKey( 42 ); |
|
36 const TUint KNegativeSignKey( 45 ); |
|
37 |
|
38 // listbox strings lenght |
|
39 const TInt KBlidLBItemMaxLen( 50 ); |
|
40 const TInt KBlidLBLineMaxLen( 100 ); |
|
41 |
|
42 // CStreamDictionary ID |
|
43 const TUid KBlidUI = { 0x101F85A0 }; |
|
44 |
|
45 //distance converters |
|
46 const TReal KMetreToFoot( 3.280839895013123 ); |
|
47 const TReal KKilometreToMiles( 0.6213711922373338 ); |
|
48 |
|
49 // size of arrays |
|
50 const TInt KNumberOfTriangePoints( 3 ); |
|
51 const TInt KNumberOfSquarePoints( 4 ); |
|
52 const TInt KNumberOfCardinalPoints( 4 ); |
|
53 |
|
54 // Compass's consts |
|
55 const TInt KRadiusOfCircle( 47 ); |
|
56 const TInt KRightAngle( 90 ); |
|
57 const TReal KDivisor( 2.0 ); |
|
58 const TInt KSquared( 2 ); |
|
59 const TInt KRound( 1 ); |
|
60 |
|
61 // dataControl's consts |
|
62 const TInt KDayToSeconds( 86400 ); |
|
63 const TInt KHourToSeconds( 3600 ); |
|
64 const TInt KMinuteToSeconds( 60 ); |
|
65 const TInt KDecimals3( 3 ); |
|
66 const TInt KMaxDestinationDist(10); |
|
67 const TInt KMaxPostiontAccuracy(50); |
|
68 |
|
69 // compassControl's consts |
|
70 const TInt KBlidDirectionPaneWidth( 16 ); |
|
71 const TInt KBlidDirectionPaneHeight( 16 ); |
|
72 const TInt KBlidDirPaneCenterWidth( 8 ); |
|
73 const TInt KBlidDirPaneCenterHeight( 8 ); |
|
74 |
|
75 const TInt KAccuracyLevel1( 1000 ); |
|
76 const TInt KAccuracyLevel2( 500 ); |
|
77 const TInt KAccuracyLevel3( 250 ); |
|
78 const TInt KAccuracyLevel4( 100 ); |
|
79 const TInt KAccuracyLevel5( 50 ); |
|
80 const TInt KAccuracyLevel6( 10 ); |
|
81 const TInt KAccuracyLevel7( 0 ); |
|
82 |
|
83 const TInt KKilometerToMeters( 1000 ); |
|
84 const TInt KMileToFeets( 5280 ); |
|
85 const TInt KDayToHours( 24 ); |
|
86 const TReal KSpeedConvertion( 3.6 ); // m/s => km/h |
|
87 const TInt KBlidPoorAccuracy(200); // Poor Landmark accuracy of 200m |
|
88 |
|
89 ////////////////////////////////////////// |
|
90 // Blid engine's constants |
|
91 ////////////////////////////////////////// |
|
92 const TInt KIntervalTime( 3000000 ); //3s |
|
93 const TInt KTimeOutRate( 5 ); |
|
94 const TInt KMinArrivalTime(30000000); // Minumum time untill which arrived note to be displayed |
|
95 |
|
96 const TInt KNotesTimeOut( 30000000 ); //30 seconds |
|
97 |
|
98 //Coordinate Editors contants |
|
99 const TInt KMaxLongitude(180); |
|
100 |
|
101 const TInt KBlidTripSpeedTimeOut(10); //10 seconds |
|
102 |
|
103 // Identifier for the primary control group. |
|
104 const TInt KPrimaryTripGroup( 2 ); |
|
105 |
|
106 // Identifier for the primary control group. |
|
107 const TInt KPrimaryGroup( 1 ); |
|
108 |
|
109 // Identifier for the primary control group. |
|
110 const TInt KBlidMainGroup( 3 ); |
|
111 |
|
112 // Identifier for the primary control group. |
|
113 const TInt KBlidMainSatelliteGroup( 4 ); |
|
114 |
|
115 // Path to find the mbm file |
|
116 _LIT( KBlidSystemIconPath, ":\\resource\\apps\\blid.mif" ); |
|
117 |
|
118 // Number of Icons in Flag Animation |
|
119 const TInt KNumOfFlagIcon = 5; |
|
120 const TInt KNumOfStartUpIcon = 8; |
|
121 const TInt KNumOfSearchIcon = 8; |
|
122 |
|
123 #endif // __BLID_BLIDCONSTS_H__ |
|
124 |
|
125 // End of File |