equal
deleted
inserted
replaced
25 |
25 |
26 // maptile database column names |
26 // maptile database column names |
27 _LIT( NCntColUid, "cntuid" ); |
27 _LIT( NCntColUid, "cntuid" ); |
28 _LIT( NAppColFilePath, "filepath" ); |
28 _LIT( NAppColFilePath, "filepath" ); |
29 _LIT( NColSource, "source" ); |
29 _LIT( NColSource, "source" ); |
|
30 _LIT( NColMaptileStatus, "fetchingstatus" ); |
30 |
31 |
31 // maptile lookup database name |
32 // maptile lookup database name |
32 _LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" ); |
33 _LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" ); |
33 |
34 |
34 // maptile database table name |
35 // maptile database table name |
38 |
39 |
39 // uid column number |
40 // uid column number |
40 const TInt KColumnUid = 1; |
41 const TInt KColumnUid = 1; |
41 // source type column number |
42 // source type column number |
42 const TInt KColumnSource = 2; |
43 const TInt KColumnSource = 2; |
43 // source type column number |
44 // maptile image path column number |
44 const TInt KColumnFilePath = 3; |
45 const TInt KColumnFilePath = 3; |
45 |
46 // maptile status column number |
46 const TInt KColumnMapTileFetchingStatus = 4; |
47 const TInt KColumnMapTileFetchingStatus = 4; |
47 |
48 |
48 |
49 |
49 /** |
50 /** |
50 * Maptile database lookup entry |
51 * Maptile database lookup entry |
64 // Uid of the Application |
65 // Uid of the Application |
65 TUint32 iAppUid; |
66 TUint32 iAppUid; |
66 |
67 |
67 // File Path |
68 // File Path |
68 TFileName iFilePath; |
69 TFileName iFilePath; |
|
70 |
69 //MK map tile fetching status |
71 //MK map tile fetching status |
70 TUint32 iFetchingStatus; |
72 TUint32 iFetchingStatus; |
71 }; |
|
72 |
|
73 /** |
|
74 * Defines uid source type |
|
75 */ |
|
76 enum TUidSourceType |
|
77 { |
|
78 /** Uid Source type calendar plain address */ |
|
79 ESourceCalendar = 0, |
|
80 /** Uid Source type contacts default/prefered address */ |
|
81 ESourceContactsPref = 3, |
|
82 /** Uid Source type contacts work address */ |
|
83 ESourceContactsWork, |
|
84 /** Uid Source type contacts home address */ |
|
85 ESourceContactsHome, |
|
86 |
|
87 }; |
73 }; |
88 |
74 |
89 /** |
75 /** |
90 * CLookupMapTileDatabase class. |
76 * CLookupMapTileDatabase class. |
91 * This class handles all the operations related to maptile lookup database. |
77 * This class handles all the operations related to maptile lookup database. |
117 * Finds an entry in the lookup table. |
103 * Finds an entry in the lookup table. |
118 * @param[in/out] aLookupItem The lookup item to be found in the database. |
104 * @param[in/out] aLookupItem The lookup item to be found in the database. |
119 * The source iUid is passed in the lookup item |
105 * The source iUid is passed in the lookup item |
120 */ |
106 */ |
121 void FindEntryL( TLookupItem& aLookupItem ); |
107 void FindEntryL( TLookupItem& aLookupItem ); |
|
108 |
|
109 /** |
|
110 * Finds the number of address present in db associated with the aId. |
|
111 * @param id, entry (calendar/contact) uid. |
|
112 * @return Number of address a contact has. |
|
113 */ |
|
114 int FindNumberOfAddressL( int& aId ); |
122 |
115 |
123 private: |
116 private: |
124 |
117 |
125 // default constructor |
118 // default constructor |
126 CLookupMapTileDatabase(); |
119 CLookupMapTileDatabase(); |