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: Contains common constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __SATELLITECONSTS_H__ |
|
20 #define __SATELLITECONSTS_H__ |
|
21 |
|
22 |
|
23 const TInt KSatInfoBufferSize( 50 ); |
|
24 |
|
25 _LIT( KSatInfoRscFileName, "SatInfo.rsc" ); |
|
26 //needed to get full screen dialog |
|
27 const TInt KInitialSatellites(5); |
|
28 |
|
29 const TInt KBlidMaxSatelliteSignalStrength( 40 ); |
|
30 |
|
31 const TInt KBlidMinSatelliteSignalStrength( 5 ); |
|
32 |
|
33 // Interval timeout to recive satellite data |
|
34 const TInt KSatelliteIntervalTime( 3000000 ); //3 seconds |
|
35 |
|
36 const TInt KSatelliteTimeOut(4000000); // 4 seconds |
|
37 |
|
38 const TInt KRightAngle(90); // 90 degree right angle |
|
39 |
|
40 // trailing backslash has been added to it: |
|
41 _LIT( KSatTmp_RESOURCE_FILES_DIR, "\\resource\\" ); |
|
42 |
|
43 const TInt KMaxSatellites(32); |
|
44 |
|
45 enum TSatDialogView |
|
46 { |
|
47 EGraphicalView, |
|
48 ESignalStrengthView, |
|
49 ECompassView |
|
50 }; |
|
51 |
|
52 // Path to find the mbm file |
|
53 _LIT( KBlidSatSystemIconPath, ":\\resource\\apps\\satellite.mif" ); |
|
54 |
|
55 //distance converters |
|
56 const TReal KMetreToFoot( 3.280839895013123 ); |
|
57 const TReal KKilometreToMiles( 0.6213711922373338 ); |
|
58 |
|
59 //Speed Format |
|
60 _LIT( KSpeedFormat,"%.1f" ); |
|
61 const TReal KSpeedConvertion( 3.6 ); // m/s => km/h |
|
62 const TInt KDecimals3( 3 ); |
|
63 |
|
64 // Fix Type |
|
65 const TInt K2dFix( 3 ); |
|
66 |
|
67 #endif // __SATELLITECONSTS_H__ |
|
68 |
|
69 // End of File |
|