--- a/menufw/hierarchynavigator/hnmetadatamodel/inc/hnrepositoryobserver.h Thu Dec 17 08:40:49 2009 +0200
+++ b/menufw/hierarchynavigator/hnmetadatamodel/inc/hnrepositoryobserver.h Thu Jan 07 12:39:41 2010 +0200
@@ -29,9 +29,9 @@
/**
* Repository Observer base class.
- *
+ *
* It is used to be derived by repository observers.
- *
+ *
* @lib hnmetadatamodel
* @since S60 5.0
* @ingroup group_hnmetadatamodel
@@ -41,70 +41,70 @@
public MCenRepNotifyHandlerCallback
{
public:
-
+
/**
* Default C++ Destructor.
- *
+ *
* @since S60 v5.0
- */
+ */
virtual ~CHnRepositoryObserver();
-
+
protected:
/**
* Defautlt C++ Constructor.
- *
+ *
* @param aCmnPtrs Common pointers.
* @since S60 v5.0
- */
+ */
CHnRepositoryObserver( THnMdCommonPointers* aCmnPtrs );
-
+
/**
* Defautlt C++ Constructor.
- *
+ *
* @param aCmnPtrs Common pointers.
* @since S60 v5.0
- */
+ */
CHnRepositoryObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId );
-
+
/**
* Second stage constructor.
- *
+ *
* @since S60 v5.0
*/
void ConstructL( const TUid aRepositoryUid );
-
+
protected:
/**
* Own - Central Repository access class.
*/
CRepository *iRepository;
-
+
/**
* Id of the CR entry to be watched.
*/
TUint32 iId;
-
+
/**
* Common pointers.
- */
+ */
THnMdCommonPointers* iCmnPtrs;
-
+
/**
* Own - Central repository notification handler.
*/
CCenRepNotifyHandler* iNotifyHandler;
-
+
};
/**
* Widget Type Repository Observer.
- *
+ *
* It is used to inform hierarchy navigator of changes in the suites repository.
- *
+ *
* @lib hnmetadatamodel
* @since S60 5.0
* @ingroup group_hnmetadatamodel
@@ -112,71 +112,71 @@
NONSHARABLE_CLASS( CHnRepositoryWidgetTypeObserver ): public CHnRepositoryObserver
{
public:
-
+
/**
* Default C++ Destructor.
- *
+ *
* @since S60 v5.0
- */
+ */
virtual ~CHnRepositoryWidgetTypeObserver();
-
+
/**
* Factory function.
- *
+ *
* @param aCmnPtrs Common pointers.
* @return Repository Observer.
* @since S60 v5.0
- */
- static CHnRepositoryWidgetTypeObserver* NewL( THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid );
+ */
+ static CHnRepositoryWidgetTypeObserver* NewL( THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid );
/**
* Factory function.
- *
+ *
* @param aCmnPtrs Common pointers.
* @return Repository Observer.
* @since S60 v5.0
- */
+ */
static CHnRepositoryWidgetTypeObserver* NewLC( THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid );
-
+
/**
- * Change handler method.
+ * Change handler method.
* It is invoked whenever notifier detects a change in the CR.
- *
+ *
* @param aId Id of the entry in CR.
* @since S60 v5.0
*/
void HandleNotifyGeneric(TUint32 aId);
-
+
/**
- * Change handler method.
+ * Change handler method.
* It is invoked whenever notifier detects a change in the CR.
- *
+ *
* @param aId Id of the entry in CR.
* @since S60 v5.0
*/
void HandleNotifyGenericL(TUint32 aId);
-
+
private:
/**
* Defautlt C++ Constructor.
- *
+ *
* @param aCmnPtrs Common pointers.
* @since S60 v5.0
- */
+ */
CHnRepositoryWidgetTypeObserver( THnMdCommonPointers* aCmnPtrs );
-
+
private:
-
+
/**
* Second stage constructor.
- *
+ *
* @since S60 v5.0
*/
void ConstructL( const TUid aRepositoryUid );
-
+
private:
-
+
/**
* Array holding ids of widgets being switched.
* It is used to eliminate double refresh for such suites.
@@ -187,22 +187,22 @@
-NONSHARABLE_CLASS( CHnRepositoryShowFolderObserver ): public CHnRepositoryObserver,
+NONSHARABLE_CLASS( CHnRepositoryShowFolderObserver ): public CHnRepositoryObserver,
public MLiwNotifyCallback,
public MHnSuiteObserver
{
public:
-
+
/**
* Default C++ Destructor.
- *
+ *
* @since S60 v5.0
- */
+ */
virtual ~CHnRepositoryShowFolderObserver();
-
+
/**
* Factory function.
- *
+ *
* @param aCmnPtrs Common pointers.
* @return Repository Observer.
* @since S60 v5.0
@@ -213,7 +213,7 @@
/**
* Factory function.
- *
+ *
* @param aCmnPtrs Common pointers.
* @return Repository Observer.
* @since S60 v5.0
@@ -221,26 +221,26 @@
static CHnRepositoryShowFolderObserver* NewLC(
THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid,
const TUint32 aId);
-
+
/**
- * Change handler method.
+ * Change handler method.
* It is invoked whenever notifier detects a change in the CR.
- *
+ *
* @param aId Id of the entry in CR.
* @since S60 v5.0
*/
void HandleNotifyString(TUint32 aId, const TDesC16& aNewValue );
-
+
/**
- * Change handler method.
+ * Change handler method.
* It is invoked whenever notifier detects a change in the CR.
- *
+ *
* @param aId Id of the entry in CR.
* @since S60 v5.0
*/
void HandleNotifyStringL(TUint32 aId, const TDesC16& aNewValue );
-
-
+
+
/**
* From MLiwNotifyCallback
*/
@@ -249,49 +249,49 @@
TInt aEventId,
CLiwGenericParamList& aEventParamList,
const CLiwGenericParamList& aInParamList);
-
+
/**
* From MHnSuiteObserver
*/
- virtual void HandleSuiteEventL ( THnCustomSuiteEvent aCustomSuiteEvent,
+ virtual void HandleSuiteEventL ( THnCustomSuiteEvent aCustomSuiteEvent,
CHnSuiteModel *aModel );
-
+
private:
/**
* Defautlt C++ Constructor.
- *
+ *
* @param aCmnPtrs Common pointers.
* @since S60 v5.0
- */
+ */
CHnRepositoryShowFolderObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId );
/**
* Extracts the folder name from the CR key.
- *
+ *
* @param aNewValue The CR key.
* @since S60 v5.0
- */
+ */
void ExtractCRKeyShowFolderName( const TDesC& aNewValue );
-
+
/**
* Request get list for parent folder of an application.
- *
+ *
* @param aFolderId A parent folder id
* @since S60 v5.0
*/
void GetShowFolderL( TUint32 aFolderId );
-
+
/**
* Request get list for a folder with given application group name
* contained in iCRKeyFolderName.
- *
+ *
* @since S60 v5.0
*/
void GetShowFolderGroupNameL();
-
+
private:
/**
* Type of a flag describing the type of notification.
@@ -300,119 +300,40 @@
* SECOND_NOTIFY - handled notify caused by the second get list
*/
enum TNotifyType { EAPP_ID=1, EAPP_UID=2, ESECOND_NOTIFY=4 };
-
+
private:
-
+
/**
* Second stage constructor.
- *
+ *
* @since S60 v5.0
*/
void ConstructL( const TUid aRepositoryUid );
private:
-
+
/**
* Folder application group name.
*/
TBuf8<KApaMaxAppGroupName> iCRKeyFolderName;
-
+
/**
* Mcs id for an application item in a folder with a given app group name.
*/
TBuf8<KUidStringLength> iCRKeyFolderItemUid;
-
+
/**
* Own.
* Intance of the service handler.
*/
CHnServiceHandler* iServiceHandler;
-
+
/**
* Flag describing the type of notification.
*/
TInt iNotifyType;
};
-
-NONSHARABLE_CLASS( CHnRepositoryZoomObserver ): public CHnRepositoryObserver
- {
-public:
-
- /**
- * Default C++ Destructor.
- *
- * @since S60 v5.0
- */
- virtual ~CHnRepositoryZoomObserver();
-
- /**
- * Factory function.
- *
- * @param aCmnPtrs Common pointers.
- * @return Repository Observer.
- * @since S60 v5.0
- */
- static CHnRepositoryZoomObserver* NewL(
- THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid,
- const TUint32 aId);
-
- /**
- * Factory function.
- *
- * @param aCmnPtrs Common pointers.
- * @return Repository Observer.
- * @since S60 v5.0
- */
- static CHnRepositoryZoomObserver* NewLC(
- THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid,
- const TUint32 aId);
-
- /**
- * Change handler method.
- * It is invoked whenever notifier detects a change in the CR.
- *
- * @param aId Id of the entry in CR.
- * @since S60 v5.0
- */
- void HandleNotifyInt(TUint32 aId, TInt aNewValue );
-
- /**
- * Change handler method.
- * It is invoked whenever notifier detects a change in the CR.
- *
- * @param aId Id of the entry in CR.
- * @since S60 v5.0
- */
- void HandleNotifyIntL(TUint32 aId, TInt aNewValue );
-
-private:
-
- /**
- * Defautlt C++ Constructor.
- *
- * @param aCmnPtrs Common pointers.
- * @since S60 v5.0
- */
- CHnRepositoryZoomObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId );
-
-private:
-
- /**
- * Second stage constructor.
- *
- * @since S60 v5.0
- */
- void ConstructL( const TUid aRepositoryUid );
-
- /**
- * Setup initial value of zoom at startup;
- *
- * @since S60 v5.0
- */
- void InitializeL();
- };
-
#endif /*HNREPOSITORYOBSERVER_H_*/
//End of file