21 |
21 |
22 //Headers needed |
22 //Headers needed |
23 #include <f32file.h> //RFs |
23 #include <f32file.h> //RFs |
24 #include <d32dbms.h> //RDbNamedDatabase,RDbView |
24 #include <d32dbms.h> //RDbNamedDatabase,RDbView |
25 |
25 |
26 // maptile database column names |
26 #include "mylocationsdefines.h" |
27 _LIT( NCntColUid, "cntuid" ); |
|
28 _LIT( NAppColFilePath, "filepath" ); |
|
29 _LIT( NColSource, "source" ); |
|
30 _LIT( NColMaptileStatus, "fetchingstatus" ); |
|
31 |
|
32 // maptile lookup database name |
|
33 _LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" ); |
|
34 |
|
35 // maptile database table name |
|
36 _LIT( KMapTileLookupTable, "cntmaptilelookuptable" ); |
|
37 |
|
38 _LIT( KLookupDbPath, "c:\\mylocations\\" ); |
|
39 |
|
40 // uid column number |
|
41 const TInt KColumnUid = 1; |
|
42 // source type column number |
|
43 const TInt KColumnSource = 2; |
|
44 // maptile image path column number |
|
45 const TInt KColumnFilePath = 3; |
|
46 // maptile status column number |
|
47 const TInt KColumnMapTileFetchingStatus = 4; |
|
48 |
|
49 |
|
50 /** |
|
51 * Maptile database lookup entry |
|
52 */ |
|
53 class TLookupItem |
|
54 { |
|
55 public: |
|
56 // Uid of the source entry |
|
57 TUint32 iUid; |
|
58 |
|
59 // Source type |
|
60 TUint32 iSource; |
|
61 |
|
62 // Landmark uid in the landmarks database |
|
63 TUint32 iLmId; |
|
64 |
|
65 // Uid of the Application |
|
66 TUint32 iAppUid; |
|
67 |
|
68 // File Path |
|
69 TFileName iFilePath; |
|
70 |
|
71 //MK map tile fetching status |
|
72 TUint32 iFetchingStatus; |
|
73 }; |
|
74 |
|
75 /** |
27 /** |
76 * CLookupMapTileDatabase class. |
28 * CLookupMapTileDatabase class. |
77 * This class handles all the operations related to maptile lookup database. |
29 * This class handles all the operations related to maptile lookup database. |
78 * |
30 * |
79 */ |
31 */ |