15 * Dialog used for code queries. Inherits AknQueryDialog |
15 * Dialog used for code queries. Inherits AknQueryDialog |
16 * |
16 * |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
|
20 |
20 #ifndef __SECUICODEQUERYDIALOG__ |
21 #ifndef __SECUICODEQUERYDIALOG__ |
21 #define __SECUICODEQUERYDIALOG__ |
22 #define __SECUICODEQUERYDIALOG__ |
22 |
23 |
|
24 #include <aknquerydialog.h> |
|
25 #include <aknnotedialog.h> |
23 #include <secui.hrh> |
26 #include <secui.hrh> |
24 |
27 |
25 class CCodeQueryDialog : public CBase |
28 class CCodeQueryDialog : public CAknTextQueryDialog |
26 { |
29 { |
27 public://construction and destruction |
30 public://construction and destruction |
28 /** |
31 /** |
29 * C++ Constructor. |
32 * C++ Constructor. |
30 * @param aDataText TDes& (code which is entered in query) |
33 * @param aDataText TDes& (code which is entered in query) |
35 IMPORT_C CCodeQueryDialog(TDes& aDataText, TInt aMinLength,TInt aMaxLength,TInt aMode, TBool aIsRemotelockQuery = EFalse); |
38 IMPORT_C CCodeQueryDialog(TDes& aDataText, TInt aMinLength,TInt aMaxLength,TInt aMode, TBool aIsRemotelockQuery = EFalse); |
36 /** |
39 /** |
37 * Destructor. |
40 * Destructor. |
38 */ |
41 */ |
39 ~CCodeQueryDialog(); |
42 ~CCodeQueryDialog(); |
|
43 public: |
|
44 /** |
|
45 * Allows dismissing of code queries. Only mandatory requirement is that PIN |
|
46 * queries are dismissed by the # |
|
47 * |
|
48 * @param aKeyEvent TKeyEvent& |
|
49 * @return ETrue query is dismissed |
|
50 * EFalse not dismissed |
|
51 */ |
|
52 TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); |
|
53 /** |
|
54 * Calls the dialog's TryExitL and passes the reason given as a parameter. |
|
55 * |
|
56 * @param TInt aReason (The reason for the cancel request) |
|
57 */ |
|
58 void TryCancelQueryL(TInt aReason); |
40 |
59 |
|
60 protected://from CAknTextQueryDialog |
|
61 /** |
|
62 * From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
63 * just before the dialog is activated, after it has called |
|
64 * PreLayoutDynInitL() and the dialog has been sized. |
|
65 */ |
|
66 void PreLayoutDynInitL(); |
|
67 /** |
|
68 * From CAknTextQueryDialog This function is called by the UIKON framework |
|
69 * if the user activates a button in the button panel. |
|
70 * It is not called if the Cancel button is activated, |
|
71 * unless the EEikDialogFlagNotifyEsc flag is set. |
|
72 * @param aButtonId The ID of the button that was activated |
|
73 * @return Should return ETrue if the dialog should exit, and EFalse if it should not. |
|
74 */ |
|
75 TBool OkToExitL(TInt aButtonId); |
|
76 /** |
|
77 * From CAknTextQueryDialog This function is called by the UIKON dialog framework |
|
78 * just after a key is pressed |
|
79 * @param aKeyEvent TKeyEvent& |
|
80 * @param aType TEventCode |
|
81 */ |
|
82 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
83 /** |
|
84 * From MAknQueryControlObeserver; overrides the default implementation in CAknQueryDialog. |
|
85 * Gets called by framework when editor sends state event |
|
86 */ |
|
87 TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus); |
|
88 |
|
89 TBool CheckIfEntryTextOk() const; |
|
90 |
|
91 void UpdateLeftSoftKeyL(); |
|
92 private: |
|
93 void ShowWarningNoteL(); |
|
94 |
|
95 /* |
|
96 * SetIncallBubbleAllowedInUsualL |
|
97 */ |
|
98 void SetIncallBubbleAllowedInUsualL(TBool aAllowed); |
|
99 |
|
100 private: // DATA |
|
101 TInt iMinLength; |
|
102 TInt iMaxLength; |
|
103 TInt iMode; |
|
104 TBool iFront; |
|
105 TInt iAppKey; |
|
106 TInt iVoiceKey1; |
|
107 TInt iVoiceKey2; |
|
108 TInt iEndKey; |
|
109 TBool iIsRemoteLockQuery; |
41 }; |
110 }; |
42 #endif |
111 #endif |
43 |
112 |
44 // End of file |
113 // End of file |