1 /* |
|
2 * Copyright (c) 2010 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MYLOCATIONSDEFINES_H__ |
|
20 #define __MYLOCATIONSDEFINES_H__ |
|
21 |
|
22 /** |
|
23 * TLookupItem struct. |
|
24 * This structure defines a single lookup item. |
|
25 */ |
|
26 |
|
27 class TLookupItem |
|
28 { |
|
29 public: |
|
30 // Uid of the source entry |
|
31 TUint32 iUid; |
|
32 |
|
33 // Source type |
|
34 TUint32 iSource; |
|
35 |
|
36 // Landmark uid in the landmarks database |
|
37 TUint32 iLmId; |
|
38 |
|
39 // File Path |
|
40 TFileName iFilePath; |
|
41 |
|
42 //MK map tile fetching status |
|
43 TUint32 iFetchingStatus; |
|
44 }; |
|
45 |
|
46 /** Defines map tile fetching states. |
|
47 */ |
|
48 |
|
49 enum TMapTileFetchingState |
|
50 { |
|
51 /** Map tile fetching completed */ |
|
52 EMapTileFectchingCompleted, |
|
53 /** Map tile fetching in progress */ |
|
54 EMapTileFetchingInProgress, |
|
55 /** Map tile fetching n/w error */ |
|
56 EMapTileFetchingNetworkError, |
|
57 /** Map tile fetching invalid address */ |
|
58 EMapTileFetchingInvalidAddress, |
|
59 /** Map tile fetching unknown erro */ |
|
60 EMapTileFetchingUnknownError |
|
61 }; |
|
62 // contacts category in landmarks db |
|
63 _LIT( KContactsCategory, "Contacts" ); |
|
64 |
|
65 // calendar category in landmarks db |
|
66 _LIT( KCalendarCategory, "Calendar" ); |
|
67 |
|
68 // lookup database folder path |
|
69 _LIT( KLookupDbPath, "c:\\mylocations\\" ); |
|
70 |
|
71 //Mylocations resource file |
|
72 _LIT(KMyLocationsResourceFile, "z:\\resource\\apps\\mylocations.rsc"); |
|
73 |
|
74 // My locations landmarks database uri. |
|
75 _LIT( KMylocationsDatabaseUri, "file://c:MyLocationsLandmarks.ldb" ); |
|
76 |
|
77 // maptile database uri. |
|
78 _LIT( KMaptileDatabaseUri, "file://c:MyLocationsMaptile.ldb" ); |
|
79 |
|
80 // History landmarks database uri. |
|
81 _LIT( KMapsHistoryUri, "file://c:MapsHistoryLandmarks.ldb" ); |
|
82 |
|
83 // mylocations lookup database name |
|
84 _LIT( KMylocationsLookupDatabaseName, "mylocationslookup.db" ); |
|
85 |
|
86 // maptile lookup database name |
|
87 _LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" ); |
|
88 |
|
89 // landmarks lookup database name |
|
90 _LIT( KLandmarksLookupDatabaseName, "landmarkslookup.db" ); |
|
91 |
|
92 // database column names |
|
93 _LIT( NColUid, "uid" ); |
|
94 _LIT( NColSource, "source" ); |
|
95 _LIT( NColLmUid, "lmuid" ); |
|
96 |
|
97 // maptile database column names |
|
98 _LIT( NCntColUid, "cntuid" ); |
|
99 _LIT( NCntColFilePath, "filepath" ); |
|
100 _LIT( MapTileFetchingStatus, "fetchingstatus" ); |
|
101 |
|
102 // database table name |
|
103 _LIT( KLookupTable, "lookuptable" ); |
|
104 |
|
105 // maptile database table name |
|
106 _LIT( KMapTileLookupTable, "cntmaptilelookuptable" ); |
|
107 |
|
108 // uid column number |
|
109 const TInt KColumnUid = 1; |
|
110 // source type column number |
|
111 const TInt KColumnSource = 2; |
|
112 // landmark uid column number |
|
113 const TInt KColumnLmkUid = 3; |
|
114 |
|
115 // uid column number |
|
116 const TInt KColumncntUid = 1; |
|
117 // source type column number |
|
118 const TInt KColumnFilePath = 3; |
|
119 // fetching state column number |
|
120 const TInt KColumnMapTileFetchingStatus = 4; |
|
121 |
|
122 const TInt KBufSize=256; |
|
123 |
|
124 //Different Maptile sizes for different applications |
|
125 const int MapTileWidth = 614; |
|
126 const int MapTileHeight = 250; |
|
127 const int MaptilePortraitWidth = 334; |
|
128 const int MaptilePortraitHeight = 250; |
|
129 const int MaptileContactLandscapeWidth = 409; |
|
130 const int MaptileContactLandscapeHeight = 128; |
|
131 const int MaptileCalendarLandscapeWidth = 614; |
|
132 const int MaptileCalendarLandscapeHeight = 202; |
|
133 const int MaptileHurriganesWidth = 228; |
|
134 const int MaptileHurriganesHeight = 170; |
|
135 |
|
136 static const char* MAPTILE_IMAGE_PORTRAIT = "_Vertical"; |
|
137 static const char* MAPTILE_IMAGE_LANDSCAPE = "_Horizontal"; |
|
138 static const char* MAPTILE_IMAGE_CALENDAR = "_Calendar"; |
|
139 static const char* MAPTILE_IMAGE_CONTACT = "_Contact"; |
|
140 static const char* MAPTILE_IMAGE_HURRIGANES = "_Hurriganes"; |
|
141 static const char* MAPTILE_IMAGE_TYPE = "PNG"; |
|
142 |
|
143 #endif // __MYLOCATIONSDEFINES_H__ |
|
144 // End of file |
|
145 |
|