|
1 /* |
|
2 * Copyright (c) 2002 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 * Implements the feature for investigating length of the input. Softkeys |
|
16 * are set based on this information. |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef CSATUITEXTQUERYDIALOG_H |
|
23 #define CSATUITEXTQUERYDIALOG_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <AknQueryDialog.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Defines the SAT spesific data query class. |
|
32 */ |
|
33 class CSatUiTextQueryDialog : public CAknTextQueryDialog |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * C++ default constructor. |
|
39 */ |
|
40 CSatUiTextQueryDialog(TDes& aDataText, const TTone aTone, |
|
41 TInt aMinLength, TInt aMaxLength); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CSatUiTextQueryDialog(); |
|
47 |
|
48 public: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * From CAknQueryDialog |
|
52 * @param aQueryControl |
|
53 * @param aEventType |
|
54 * @param aStatus |
|
55 * @return |
|
56 */ |
|
57 TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, |
|
58 TQueryControlEvent aEventType, TQueryValidationStatus aStatus); |
|
59 |
|
60 protected: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * From CEikDialog, gets called when dialog initializations are done |
|
64 */ |
|
65 void PostLayoutDynInitL(); |
|
66 |
|
67 /** |
|
68 * From CEikDialog, gets called before initializations |
|
69 */ |
|
70 void PreLayoutDynInitL(); |
|
71 |
|
72 /** |
|
73 * From CAknDialog, Hash key is accepted |
|
74 */ |
|
75 TBool NeedToDismissQueryL( const TKeyEvent& aKeyEvent ); |
|
76 |
|
77 /** |
|
78 * From CAknDialog, Hash key not ignored (workaround) |
|
79 */ |
|
80 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
81 TEventCode aType ); |
|
82 |
|
83 |
|
84 private: // Data |
|
85 |
|
86 //Minimum length of input |
|
87 TInt iTextMinLength; |
|
88 }; |
|
89 |
|
90 #endif // CSATUITEXTQUERYDIALOG_H |
|
91 |
|
92 // End of File |