106 //One line address |
106 //One line address |
107 QString mSingleLineAddress; |
107 QString mSingleLineAddress; |
108 }; |
108 }; |
109 |
109 |
110 /** |
110 /** |
|
111 * Location data for calendar specific. |
|
112 */ |
|
113 class QCalendarLocationDetails |
|
114 { |
|
115 public: |
|
116 // Uid of the source entry |
|
117 quint32 mSourceUid; |
|
118 //One line address |
|
119 QString mOnelineLocation; |
|
120 }; |
|
121 |
|
122 /** |
111 * Location data lookup database class. |
123 * Location data lookup database class. |
112 */ |
124 */ |
113 class DLL_EXPORT LocationDataLookupDb : public QObject |
125 class DLL_EXPORT LocationDataLookupDb : public QObject |
114 { |
126 { |
115 |
127 |
216 * @return QString , address associated with cuurent id and type |
228 * @return QString , address associated with cuurent id and type |
217 */ |
229 */ |
218 QString getAddressDetails( quint32 mId , quint32 mSourceType ); |
230 QString getAddressDetails( quint32 mId , quint32 mSourceType ); |
219 |
231 |
220 /** |
232 /** |
221 * Gets single line address |
233 * Updates the entry name |
222 * @param id , id of the entry |
234 * @param id , id of the entry |
223 * @param sourceType , type of entry |
235 * @param sourceType , type of entry |
224 * @param name , name of entry |
236 * @param name , name of entry |
225 */ |
237 */ |
226 void updateEntryNameByIdAndType(quint32 id, quint32 sourceType , QString name); |
238 void updateEntryNameByIdAndType(quint32 id, quint32 sourceType , QString name); |
|
239 |
|
240 /** |
|
241 * Updates the calendar entry |
|
242 * @param id , id of the calendar entry |
|
243 * @param location , location |
|
244 */ |
|
245 void updateCalendarLocationById(quint32 id,QString location); |
|
246 |
|
247 /** |
|
248 * Delete the calendar entry |
|
249 * @param id , id of the calendar entry |
|
250 */ |
|
251 void deleteCalendarEntry(quint32 id); |
|
252 /** |
|
253 * gets all the calendar entry |
|
254 * @param lookupItemArray , refference to all entry |
|
255 */ |
|
256 void getAllCalendarEntry(QList<QCalendarLocationDetails>& lookupItemArray); |
227 |
257 |
228 private: |
258 private: |
229 |
259 |
230 // fills the lookup entry |
260 // fills the lookup entry |
231 void fillLookupEntry( QSqlQuery &aRecord, QLookupItem &aLookupItem ); |
261 void fillLookupEntry( QSqlQuery &aRecord, QLookupItem &aLookupItem ); |