17 |
17 |
18 |
18 |
19 #ifndef __MYLOCATIONSDEFINES_H__ |
19 #ifndef __MYLOCATIONSDEFINES_H__ |
20 #define __MYLOCATIONSDEFINES_H__ |
20 #define __MYLOCATIONSDEFINES_H__ |
21 |
21 |
22 /** |
22 #include <QString> |
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 |
23 |
46 /** Defines map tile fetching states. |
24 /** Defines map tile fetching states. |
47 */ |
25 */ |
48 |
26 |
49 enum TMapTileFetchingState |
27 enum TMapTileFetchingState |
50 { |
28 { |
51 /** Map tile fetching completed */ |
29 /** Map tile fetching completed */ |
52 EMapTileFectchingCompleted, |
30 EMapTileFectchingCompleted=0, |
53 /** Map tile fetching in progress */ |
31 /** Map tile fetching in progress */ |
54 EMapTileFetchingInProgress, |
32 EMapTileFetchingInProgress, |
55 /** Map tile fetching n/w error */ |
33 /** Map tile fetching n/w error */ |
56 EMapTileFetchingNetworkError, |
34 EMapTileFetchingNetworkError, |
57 /** Map tile fetching invalid address */ |
35 /** Map tile fetching invalid address */ |
66 _LIT( KCalendarCategory, "Calendar" ); |
44 _LIT( KCalendarCategory, "Calendar" ); |
67 |
45 |
68 // lookup database folder path |
46 // lookup database folder path |
69 _LIT( KLookupDbPath, "c:\\mylocations\\" ); |
47 _LIT( KLookupDbPath, "c:\\mylocations\\" ); |
70 |
48 |
71 //Mylocations resource file |
49 #ifdef LOCPICKER_UNIT_TEST |
72 _LIT(KMyLocationsResourceFile, "z:\\resource\\apps\\mylocations.rsc"); |
50 const QString KLocationDataLookupDbName = "c:\\locationdatalookuptestdb.db"; |
73 |
51 #else |
74 // My locations landmarks database uri. |
52 const QString KLocationDataLookupDbName = "c:\\locationdatalookupdb.db"; |
75 _LIT( KMylocationsDatabaseUri, "file://c:MyLocationsLandmarks.ldb" ); |
53 #endif |
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 |
54 |
122 const TInt KBufSize=256; |
55 const TInt KBufSize=256; |
123 |
56 |
124 //Different Maptile sizes for different applications |
57 //Different Maptile sizes for different applications |
125 const int MapTileWidth = 614; |
58 const int MapTileWidth = 614; |
126 const int MapTileHeight = 250; |
59 const int MapTileHeight = 250; |
127 const int MaptilePortraitWidth = 334; |
60 const int MaptilePortraitWidth = 334; |
128 const int MaptilePortraitHeight = 250; |
61 const int MaptilePortraitHeight = 250; |
129 const int MaptileContactLandscapeWidth = 409; |
62 const int MaptileContactLandscapeWidth = 382; |
130 const int MaptileContactLandscapeHeight = 128; |
63 const int MaptileContactLandscapeHeight = 168; |
131 const int MaptileCalendarLandscapeWidth = 614; |
64 const int MaptileCalendarLandscapeWidth = 614; |
132 const int MaptileCalendarLandscapeHeight = 202; |
65 const int MaptileCalendarLandscapeHeight = 202; |
133 const int MaptileHurriganesWidth = 228; |
66 const int MaptileHurriganesWidth = 228; |
134 const int MaptileHurriganesHeight = 170; |
67 const int MaptileHurriganesHeight = 170; |
135 |
68 |