diff -r 924385140d98 -r c2c61fdca848 coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Tue Aug 31 15:24:25 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Wed Sep 01 12:24:48 2010 +0100 @@ -22,14 +22,14 @@ // INCLUDES #include #include -#include "hbdeviceinputdialogsymbian.h" // FORWARD DECLARATIONS class CSysApDriveList; class CSysApAppUi; // CLASS DECLARATION -class CSysApDriveUnlockHandler : public CBase +class CSysApDriveUnlockHandler : public CBase, + public MAknMemoryCardDialogObserver { public: /** @@ -57,17 +57,6 @@ * @param aDrive Drive to stop unlock notifier if ongoing */ void StopUnlock( TInt aDrive ); - - void ReleaseMemoryForInputCardDialog(); - TInt CheckMemoryDialogIfNeeded(); - void ConvertCharactersToPwd(TDesC& aWord, TDes8& aConverted); - - /** - * Shows unlock query. - */ - void ShowUnlockQueryL(); - HBufC8* Convert16to8L(TDesC16& aStr); - void UnlockComplete( TInt aResult ); private: /** @@ -77,13 +66,18 @@ CSysApDriveList& aSysApDriveList, CSysApAppUi& aSysApAppUi, const TBool aMemoryCardLockSupported ); - + /** * Handles query show from CAsyncCallBack. */ static TInt QueryShowCB( TAny* aPtr ); /** + * Shows unlock query. + */ + void ShowUnlockQueryL(); + + /** * Checks is unlock query ongoing. */ TBool IsQueryOngoing() const; @@ -103,6 +97,9 @@ */ void DoStopUnlock( TInt aError ); +private: // From MAknMemoryCardDialogObserver + void UnlockComplete( TInt aResult ); + private: // Data // Reference to the drive list CSysApDriveList& iSysApDriveList; @@ -112,16 +109,19 @@ // Indicates if memory card locking is supported TBool iMemoryCardLockSupported; - - CHbDeviceInputDialogSymbian* iMemCardPwdDialog; - - // Current drive to be unlocked + + // Pointer to unlock query. Own, + CAknMemoryCardDialog* iMemoryCardDialog; + + // Current drive to be unlocked TInt iDriveToUnlock; + // Pointer to the callback. Own. + CAsyncCallBack* iQueryShowCB; + // Indicates if the query result can be ignored i.e. query was canceled TBool iIgnoreQueryResult; - - TMediaPassword iPassword; + }; #endif // SYSAPDRIVEUNLOCKHANDLER_H