diff -r 0818dd463d41 -r 924385140d98 coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h --- a/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Thu Aug 19 10:05:08 2010 +0300 +++ b/coreapplicationuis/SysAp/Src/memorycard/sysapdriveunlockhandler.h Tue Aug 31 15:24:25 2010 +0300 @@ -22,14 +22,14 @@ // INCLUDES #include #include +#include "hbdeviceinputdialogsymbian.h" // FORWARD DECLARATIONS class CSysApDriveList; class CSysApAppUi; // CLASS DECLARATION -class CSysApDriveUnlockHandler : public CBase, - public MAknMemoryCardDialogObserver +class CSysApDriveUnlockHandler : public CBase { public: /** @@ -57,6 +57,17 @@ * @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: /** @@ -66,18 +77,13 @@ 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; @@ -97,9 +103,6 @@ */ void DoStopUnlock( TInt aError ); -private: // From MAknMemoryCardDialogObserver - void UnlockComplete( TInt aResult ); - private: // Data // Reference to the drive list CSysApDriveList& iSysApDriveList; @@ -109,19 +112,16 @@ // Indicates if memory card locking is supported TBool iMemoryCardLockSupported; - - // Pointer to unlock query. Own, - CAknMemoryCardDialog* iMemoryCardDialog; - - // Current drive to be unlocked + + CHbDeviceInputDialogSymbian* iMemCardPwdDialog; + + // 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