162 * Defautlt C++ Constructor. |
162 * Defautlt C++ Constructor. |
163 * |
163 * |
164 * @param aCmnPtrs Common pointers. |
164 * @param aCmnPtrs Common pointers. |
165 * @since S60 v5.0 |
165 * @since S60 v5.0 |
166 */ |
166 */ |
167 CHnRepositoryWidgetTypeObserver( THnMdCommonPointers* aCmnPtrs ); |
167 CHnRepositoryWidgetTypeObserver( THnMdCommonPointers* aCmnPtrs ); |
168 |
168 |
169 private: |
169 private: |
170 |
170 |
171 /** |
171 /** |
172 * Second stage constructor. |
172 * Second stage constructor. |
173 * |
173 * |
174 * @since S60 v5.0 |
174 * @since S60 v5.0 |
175 */ |
175 */ |
176 void ConstructL( const TUid aRepositoryUid ); |
176 void ConstructL( const TUid aRepositoryUid ); |
177 |
177 |
178 private: |
178 private: |
179 |
179 |
180 /** |
180 /** |
181 * Array holding ids of widgets being switched. |
181 * Array holding ids of widgets being switched. |
182 * It is used to eliminate double refresh for such suites. |
182 * It is used to eliminate double refresh for such suites. |
183 */ |
183 */ |
184 RArray<TUint32> iWidgetSwitches; |
184 RArray<TUint32> iWidgetSwitches; |
185 |
185 |
186 }; |
186 }; |
187 |
187 |
188 |
188 |
189 |
189 |
190 NONSHARABLE_CLASS( CHnRepositoryShowFolderObserver ): public CHnRepositoryObserver, |
190 NONSHARABLE_CLASS( CHnRepositoryShowFolderObserver ): public CHnRepositoryObserver, |
191 public MLiwNotifyCallback, |
191 public MLiwNotifyCallback |
192 public MHnSuiteObserver |
192 { |
193 { |
|
194 public: |
193 public: |
195 |
194 |
196 /** |
195 /** |
197 * Default C++ Destructor. |
196 * Default C++ Destructor. |
198 * |
197 * |
199 * @since S60 v5.0 |
198 * @since S60 v5.0 |
200 */ |
199 */ |
201 virtual ~CHnRepositoryShowFolderObserver(); |
200 virtual ~CHnRepositoryShowFolderObserver(); |
202 |
201 |
203 /** |
202 /** |
204 * Factory function. |
203 * Factory function. |
205 * |
204 * |
206 * @param aCmnPtrs Common pointers. |
205 * @param aCmnPtrs Common pointers. |
207 * @return Repository Observer. |
206 * @return Repository Observer. |
208 * @since S60 v5.0 |
207 * @since S60 v5.0 |
209 */ |
208 */ |
210 static CHnRepositoryShowFolderObserver* NewL( |
209 static CHnRepositoryShowFolderObserver* NewL( |
211 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
210 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
212 const TUint32 aId); |
211 const TUint32 aId); |
213 |
212 |
214 /** |
213 /** |
215 * Factory function. |
214 * Factory function. |
216 * |
215 * |
217 * @param aCmnPtrs Common pointers. |
216 * @param aCmnPtrs Common pointers. |
218 * @return Repository Observer. |
217 * @return Repository Observer. |
219 * @since S60 v5.0 |
218 * @since S60 v5.0 |
220 */ |
219 */ |
221 static CHnRepositoryShowFolderObserver* NewLC( |
220 static CHnRepositoryShowFolderObserver* NewLC( |
222 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
221 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
223 const TUint32 aId); |
222 const TUint32 aId); |
224 |
223 |
225 /** |
224 /** |
226 * Change handler method. |
225 * Change handler method. |
227 * It is invoked whenever notifier detects a change in the CR. |
226 * It is invoked whenever notifier detects a change in the CR. |
228 * |
227 * |
248 TInt aCmdId, |
247 TInt aCmdId, |
249 TInt aEventId, |
248 TInt aEventId, |
250 CLiwGenericParamList& aEventParamList, |
249 CLiwGenericParamList& aEventParamList, |
251 const CLiwGenericParamList& aInParamList); |
250 const CLiwGenericParamList& aInParamList); |
252 |
251 |
253 /** |
|
254 * From MHnSuiteObserver |
|
255 */ |
|
256 virtual void HandleSuiteEventL ( THnCustomSuiteEvent aCustomSuiteEvent, |
|
257 CHnSuiteModel *aModel ); |
|
258 |
|
259 |
|
260 |
|
261 private: |
252 private: |
262 |
253 |
263 /** |
254 /** |
264 * Defautlt C++ Constructor. |
255 * Defautlt C++ Constructor. |
265 * |
256 * |
266 * @param aCmnPtrs Common pointers. |
257 * @param aCmnPtrs Common pointers. |
267 * @since S60 v5.0 |
258 * @since S60 v5.0 |
268 */ |
259 */ |
269 CHnRepositoryShowFolderObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
260 CHnRepositoryShowFolderObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
270 |
261 |
271 /** |
262 /** |
272 * Extracts the folder name from the CR key. |
263 * Extracts the folder name from the CR key. |
273 * |
264 * |
274 * @param aNewValue The CR key. |
265 * @param aNewValue The CR key. |
275 * @since S60 v5.0 |
266 * @since S60 v5.0 |
276 */ |
267 */ |
277 void ExtractCRKeyShowFolderName( const TDesC& aNewValue ); |
268 void ExtractCRKeyShowFolderName( const TDesC& aNewValue ); |
278 |
269 |
279 /** |
270 /** |
280 * Request get list for parent folder of an application. |
271 * Request get list for parent folder of an application. |
281 * |
272 * |
282 * @param aFolderId A parent folder id |
273 * @param aFolderId A parent folder id |
283 * @since S60 v5.0 |
274 * @since S60 v5.0 |
284 */ |
275 */ |
285 void GetShowFolderL( TUint32 aFolderId ); |
276 void GetShowFolderL( TUint32 aFolderId ); |
286 |
277 |
287 /** |
278 /** |
288 * Request get list for a folder with given application group name |
279 * Request get list for a folder with given application group name |
289 * contained in iCRKeyFolderName. |
280 * contained in iCRKeyFolderName. |
306 /** |
297 /** |
307 * Second stage constructor. |
298 * Second stage constructor. |
308 * |
299 * |
309 * @since S60 v5.0 |
300 * @since S60 v5.0 |
310 */ |
301 */ |
311 void ConstructL( const TUid aRepositoryUid ); |
302 void ConstructL( const TUid aRepositoryUid ); |
312 |
303 |
313 private: |
304 private: |
314 |
305 |
315 /** |
306 /** |
316 * Folder application group name. |
307 * Folder application group name. |
317 */ |
308 */ |
318 TBuf8<KApaMaxAppGroupName> iCRKeyFolderName; |
309 TBuf8<KApaMaxAppGroupName> iCRKeyFolderName; |
319 |
310 |
320 /** |
311 /** |
321 * Mcs id for an application item in a folder with a given app group name. |
312 * Mcs id for an application item in a folder with a given app group name. |
322 */ |
313 */ |
323 TBuf8<KUidStringLength> iCRKeyFolderItemUid; |
314 TBuf8<KUidStringLength> iCRKeyFolderItemUid; |
324 |
315 |
325 /** |
316 /** |
326 * Own. |
317 * Own. |
327 * Intance of the service handler. |
318 * Intance of the service handler. |
328 */ |
319 */ |
329 CHnServiceHandler* iServiceHandler; |
320 CHnServiceHandler* iServiceHandler; |
330 |
321 |
331 /** |
322 /** |
332 * Flag describing the type of notification. |
323 * Flag describing the type of notification. |
333 */ |
324 */ |
334 TInt iNotifyType; |
325 TInt iNotifyType; |
335 }; |
326 }; |
336 |
327 |
337 #endif /*HNREPOSITORYOBSERVER_H_*/ |
328 #endif /*HNREPOSITORYOBSERVER_H_*/ |
338 |
329 |
339 //End of file |
330 //End of file |
340 |
331 |