323 * Flag describing the type of notification. |
323 * Flag describing the type of notification. |
324 */ |
324 */ |
325 TInt iNotifyType; |
325 TInt iNotifyType; |
326 }; |
326 }; |
327 |
327 |
|
328 /** |
|
329 * Open item Repository Observer. |
|
330 * |
|
331 * It is used to inform hierarchy navigator of changes in the suites repository. |
|
332 * |
|
333 * @lib hnmetadatamodel |
|
334 * @since S60 5.0 |
|
335 * @ingroup group_hnmetadatamodel |
|
336 */ |
|
337 NONSHARABLE_CLASS( CHnRepositoryOpenItemObserver ): |
|
338 public CHnRepositoryObserver, |
|
339 public MLiwNotifyCallback |
|
340 { |
|
341 public: |
|
342 |
|
343 /** |
|
344 * Default C++ Destructor. |
|
345 * |
|
346 * @since S60 v5.0 |
|
347 */ |
|
348 virtual ~CHnRepositoryOpenItemObserver(); |
|
349 |
|
350 /** |
|
351 * Factory function. |
|
352 * |
|
353 * @param aCmnPtrs Common pointers. |
|
354 * @return Repository Observer. |
|
355 * @since S60 v5.0 |
|
356 */ |
|
357 static CHnRepositoryOpenItemObserver* NewL( |
|
358 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
|
359 const TUint32 aId ); |
|
360 |
|
361 /** |
|
362 * Factory function. |
|
363 * |
|
364 * @param aCmnPtrs Common pointers. |
|
365 * @return Repository Observer. |
|
366 * @since S60 v5.0 |
|
367 */ |
|
368 static CHnRepositoryOpenItemObserver* NewLC( |
|
369 THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
|
370 const TUint32 aId ); |
|
371 |
|
372 /** |
|
373 * Change handler method. |
|
374 * It is invoked whenever notifier detects a change in the CR. |
|
375 * |
|
376 * @param aId Id of the entry in CR. |
|
377 * @since S60 v5.0 |
|
378 */ |
|
379 void HandleNotifyString( TUint32 aId, const TDesC16& aNewValue ); |
|
380 |
|
381 /** |
|
382 * Change handler method. |
|
383 * It is invoked whenever notifier detects a change in the CR. |
|
384 * |
|
385 * @param aId Id of the entry in CR. |
|
386 * @since S60 v5.0 |
|
387 */ |
|
388 void HandleNotifyStringL( TUint32 aId, const TDesC16& aNewValue ); |
|
389 |
|
390 /** |
|
391 * Handles notifications caused by an asynchronous Execute*CmdL call |
|
392 * or an event. |
|
393 * |
|
394 * @param aCmdId The service command associated to the event. |
|
395 * @param aEventId Occured event, see LiwCommon.hrh. |
|
396 * @param aEventParamList Event parameters, if any, as defined per |
|
397 * each event. |
|
398 * @param aInParamList Input parameters, if any, given in the |
|
399 * related HandleCommmandL. |
|
400 * @return Error code for the callback. |
|
401 */ |
|
402 virtual TInt HandleNotifyL( |
|
403 TInt aCmdId, |
|
404 TInt aEventId, |
|
405 CLiwGenericParamList& aEventParamList, |
|
406 const CLiwGenericParamList& aInParamList); |
|
407 |
|
408 private: |
|
409 |
|
410 /** |
|
411 * Defautlt C++ Constructor. |
|
412 * |
|
413 * @param aCmnPtrs Common pointers. |
|
414 * @since S60 v5.0 |
|
415 */ |
|
416 CHnRepositoryOpenItemObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
|
417 |
|
418 /** |
|
419 * Second stage constructor. |
|
420 * |
|
421 * @since S60 v5.0 |
|
422 */ |
|
423 void ConstructL( const TUid aRepositoryUid ); |
|
424 |
|
425 private: |
|
426 |
|
427 /** |
|
428 * Request get list for an folder. |
|
429 * |
|
430 * @param aFolderId A parent folder id |
|
431 * @since S60 v5.0 |
|
432 */ |
|
433 void ShowFolderL( const TDesC16& aFolderId ); |
|
434 |
|
435 private: |
|
436 |
|
437 /** |
|
438 * Own. |
|
439 * Intance of the service handler. |
|
440 */ |
|
441 CHnServiceHandler* iServiceHandler; |
|
442 |
|
443 }; |
|
444 |
328 #endif /*HNREPOSITORYOBSERVER_H_*/ |
445 #endif /*HNREPOSITORYOBSERVER_H_*/ |
329 |
446 |
330 //End of file |
447 //End of file |
331 |
448 |