|
1 /* |
|
2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __AKNMEMORYCARDDIALOGIMPL_H__ |
|
19 #define __AKNMEMORYCARDDIALOGIMPL_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <eikenv.h> |
|
24 #include <eiknotapi.h> |
|
25 #include <AknNotifyStd.h> |
|
26 #include <AknPanic.h> |
|
27 |
|
28 #include "AknMemoryCardUi.h" |
|
29 |
|
30 struct TMessageWithClientId |
|
31 { |
|
32 TMessageWithClientId(const RMessagePtr2& aMsg,TInt aID):iMessage(aMsg),iClientId(aID){} |
|
33 RMessagePtr2 iMessage; |
|
34 TInt iClientId; |
|
35 }; |
|
36 |
|
37 class CAknCodeQuery; |
|
38 |
|
39 class CAknMMCPasswordRequester : public CBase |
|
40 { |
|
41 public: |
|
42 static CAknMMCPasswordRequester* NewL(); |
|
43 CAknMMCPasswordRequester(); |
|
44 ~CAknMMCPasswordRequester(); |
|
45 |
|
46 void StartL(TInt aDrive, TBool aStore, const RMessagePtr2& aMessage, TInt aClientID = 0); |
|
47 void Cancel(TInt aClientID); |
|
48 void UnlockCard(TBool aAccept); |
|
49 void ClientExit(TInt aClientID, TBool aCompleteWithCancel = EFalse); |
|
50 void AppendQueueItemL(const RMessagePtr2& aMessage, TInt aClientID); |
|
51 void CompleteAllMessages(TInt aReason); |
|
52 |
|
53 private: |
|
54 void ConstructL(); |
|
55 |
|
56 private: |
|
57 void SetPromptL(); |
|
58 TBool PopupL(); |
|
59 |
|
60 private: |
|
61 TResourceFileLoader iResFileLdr; |
|
62 HBufC* iPrompt; |
|
63 TBuf<KMaxMediaPassword/2> iPassWd; |
|
64 TInt iNumberOfAttempts; |
|
65 TBool iStore; |
|
66 CAknCodeQuery* iQuery; |
|
67 TInt iDriveNumber; |
|
68 RArray<TMessageWithClientId> iMessages; |
|
69 }; |
|
70 |
|
71 #endif // __AKNMEMORYCARDDIALOGIMPL_H__ |