diff -r 000000000000 -r 2f259fa3e83a uifw/AknGlobalUI/AknCapServer/inc/AknMemoryCardDialogImpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uifw/AknGlobalUI/AknCapServer/inc/AknMemoryCardDialogImpl.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef __AKNMEMORYCARDDIALOGIMPL_H__ +#define __AKNMEMORYCARDDIALOGIMPL_H__ + +#include +#include +#include +#include +#include +#include + +#include "AknMemoryCardUi.h" + +struct TMessageWithClientId + { + TMessageWithClientId(const RMessagePtr2& aMsg,TInt aID):iMessage(aMsg),iClientId(aID){} + RMessagePtr2 iMessage; + TInt iClientId; + }; + +class CAknCodeQuery; + +class CAknMMCPasswordRequester : public CBase + { +public: + static CAknMMCPasswordRequester* NewL(); + CAknMMCPasswordRequester(); + ~CAknMMCPasswordRequester(); + + void StartL(TInt aDrive, TBool aStore, const RMessagePtr2& aMessage, TInt aClientID = 0); + void Cancel(TInt aClientID); + void UnlockCard(TBool aAccept); + void ClientExit(TInt aClientID, TBool aCompleteWithCancel = EFalse); + void AppendQueueItemL(const RMessagePtr2& aMessage, TInt aClientID); + void CompleteAllMessages(TInt aReason); + +private: + void ConstructL(); + +private: + void SetPromptL(); + TBool PopupL(); + +private: + TResourceFileLoader iResFileLdr; + HBufC* iPrompt; + TBuf iPassWd; + TInt iNumberOfAttempts; + TBool iStore; + CAknCodeQuery* iQuery; + TInt iDriveNumber; + RArray iMessages; + }; + +#endif // __AKNMEMORYCARDDIALOGIMPL_H__