1 /* |
|
2 * Copyright (c) 2005 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 DEVENCUISECRETMINMAXCODEQUERY_H_ |
|
19 #define DEVENCUISECRETMINMAXCODEQUERY_H_ |
|
20 |
|
21 #include <AknQueryDialog.h> |
|
22 #include <aknnotedialog.h> |
|
23 #include "DevEnc.hrh" |
|
24 |
|
25 class CDevEncUiSecretMinMaxCodeQuery : public CAknTextQueryDialog |
|
26 { |
|
27 public://construction and destruction |
|
28 /** |
|
29 * C++ Constructor. |
|
30 * @param aDataText TDes& (code which is entered in query) |
|
31 * @param aMinLength TInt (code min length) |
|
32 * @param aMaxLength TInt (code max length) |
|
33 */ |
|
34 CDevEncUiSecretMinMaxCodeQuery( TDes& aDataText, |
|
35 TInt aMinLength, |
|
36 TInt aMaxLength ); |
|
37 /** |
|
38 * Destructor. |
|
39 */ |
|
40 ~CDevEncUiSecretMinMaxCodeQuery(); |
|
41 |
|
42 protected://from CAknTextQueryDialog |
|
43 /** |
|
44 * From CAknTextQueryDialog. This function is called by the UIKON |
|
45 * dialog framework just before the dialog is activated, after it has |
|
46 * called PreLayoutDynInitL() and the dialog has been sized. |
|
47 */ |
|
48 void PreLayoutDynInitL(); |
|
49 |
|
50 /** |
|
51 * From CAknTextQueryDialog. This function is called by the UIKON |
|
52 * framework if the user activates a button in the button panel. |
|
53 * It is not called if the Cancel button is activated, |
|
54 * unless the EEikDialogFlagNotifyEsc flag is set. |
|
55 * @param aButtonId The ID of the button that was activated |
|
56 * @return Should return ETrue if the dialog should exit, |
|
57 * and EFalse if it should not. |
|
58 */ |
|
59 TBool OkToExitL( TInt aButtonId ); |
|
60 |
|
61 /** |
|
62 * From CAknTextQueryDialog. This function is called by the UIKON |
|
63 * dialog framework just after a key is pressed |
|
64 * @param aKeyEvent TKeyEvent& |
|
65 * @param aType TEventCode |
|
66 */ |
|
67 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
68 TEventCode aType ); |
|
69 |
|
70 /** |
|
71 * From MAknQueryControlObeserver. Overrides the default |
|
72 * implementation in CAknQueryDialog. Gets called by framework when |
|
73 * text in editor is edited. |
|
74 */ |
|
75 void UpdateLeftSoftKeyL(); |
|
76 |
|
77 private: // Data |
|
78 TInt iMinLength; |
|
79 TInt iMaxLength; |
|
80 }; |
|
81 |
|
82 #endif /*DEVENCUISECRETMINMAXCODEQUERY_H_*/ |
|