|
1 /* |
|
2 * Copyright (c) 2003-2004 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: Crypto Token Security Dialogs PIN Query Dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CTPINQUERYDIALOG_H |
|
21 #define __CTPINQUERYDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknQueryDialog.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * PIN query dialog class |
|
30 * |
|
31 * @lib CTSecDlgNotifier.dll |
|
32 * @since Series 60 2.6 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CCTPinQueryDialog ): public CAknTextQueryDialog |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 ~CCTPinQueryDialog(); |
|
39 |
|
40 public: // Function from CAknQueryDialog |
|
41 |
|
42 /** |
|
43 * RunDlgLD Launches the CT PIN Query Dialog |
|
44 * @param aClientStatus Reference to Client Status |
|
45 * @param aDlgHeading Text for heading text |
|
46 * @param aDlgText Text for dialog |
|
47 * @param aPinValue Reference to PIN Value. |
|
48 * @param aMinTextLength Minimum length for PIN Value |
|
49 * @param aMaxTextLength Maximum length for PIN Value |
|
50 * @param aRetVal ETrue for positive user response, EFalse for negative |
|
51 * @param aResourceId Resource id |
|
52 */ |
|
53 static void RunDlgLD( |
|
54 TRequestStatus& aClientStatus, |
|
55 const TDesC& aDlgText, |
|
56 TDes& aPinValue, |
|
57 const TInt aMinTextLength, |
|
58 const TInt aMaxTextLength, |
|
59 TBool& aRetVal, |
|
60 TInt aResourceId, |
|
61 CCTPinQueryDialog*& aDialog, |
|
62 TBool& aIsDeleted ); |
|
63 |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CCTPinQueryDialog( |
|
71 TRequestStatus& aClientStatus, |
|
72 const TDesC& aDlgText, |
|
73 TDes& aPinValue, |
|
74 const TInt aMinTextLength, |
|
75 const TInt aMaxTextLength, |
|
76 TBool& aRetVal, |
|
77 TBool& aIsDeleted ); |
|
78 |
|
79 private: // Function from CAknTextQueryDialog |
|
80 |
|
81 /** |
|
82 * |
|
83 */ |
|
84 void PreLayoutDynInitL(); |
|
85 |
|
86 private: // Functions from CAknTextQueryDialog/CAknQueryDialog |
|
87 |
|
88 /** |
|
89 * |
|
90 */ |
|
91 void UpdateLeftSoftKeyL(); |
|
92 |
|
93 /** |
|
94 * |
|
95 */ |
|
96 TBool CheckIfEntryTextOk() const; |
|
97 |
|
98 /** |
|
99 * |
|
100 * @param aButtonId |
|
101 * @return TBool |
|
102 */ |
|
103 TBool OkToExitL( TInt aButtonId ); |
|
104 |
|
105 /** |
|
106 * |
|
107 */ |
|
108 void PostLayoutDynInitL(); |
|
109 |
|
110 /** |
|
111 * |
|
112 * @param aKeyEvent |
|
113 * @param aType |
|
114 * @return TKeyResponse |
|
115 */ |
|
116 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
117 |
|
118 private: // Data |
|
119 const TDesC& iDlgText; |
|
120 TDes& iPinValue; |
|
121 TInt iMinTextLength; |
|
122 TInt iMaxTextLength; |
|
123 TRequestStatus* iClientStatus; |
|
124 TBool& iRetVal; //Dialog response |
|
125 TBool& iIsDeleted; |
|
126 }; |
|
127 |
|
128 #endif // __CTPINQUERYDIALOG_H |
|
129 |
|
130 // End of File |