|
1 /* |
|
2 * Copyright (c) 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: Internal extension class for Avkon query control |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef AKNQUERYEXTENSION_H |
|
21 #define AKNQUERYEXTENSION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CAknQueryControl; |
|
28 class CAknsFrameBackgroundControlContext; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Internal extension class for CAknQueryControl and derived classes. |
|
34 * |
|
35 * @since 2.6 |
|
36 * |
|
37 * @internal |
|
38 */ |
|
39 NONSHARABLE_CLASS(CAknQueryExtension) : public CBase |
|
40 { |
|
41 public: // New methods |
|
42 |
|
43 enum TVirtualInputStatus |
|
44 { |
|
45 EVirtualInputCheckedAlready, |
|
46 EVirtualInputEnabled |
|
47 }; |
|
48 /** |
|
49 * Creates a new editor control context (with QsnFrInput), |
|
50 * but does not initialize rectangles. |
|
51 * |
|
52 * @since 2.6 |
|
53 */ |
|
54 void CreateEditorContextL(); |
|
55 |
|
56 /** |
|
57 * Returns the editor context. |
|
58 * |
|
59 * @since 2.6 |
|
60 */ |
|
61 CAknsFrameBackgroundControlContext* EditorContext(); |
|
62 |
|
63 private: // New methods (only used by CAknQueryControl) |
|
64 |
|
65 /** |
|
66 * Retrieves the extension instance. |
|
67 * This method is only used internally by CAknQueryControl. |
|
68 * Generally, @c CAknQueryControl::QueryExtension should be used to |
|
69 * access the instance. |
|
70 */ |
|
71 static CAknQueryExtension* Instance( |
|
72 const CAknQueryControl* aQueryControl ); |
|
73 |
|
74 private: // Construction and destruction (only used by CAknQueryControl) |
|
75 |
|
76 /** |
|
77 * Creates the extension. |
|
78 */ |
|
79 static void CreateExtensionL( |
|
80 const CAknQueryControl* aQueryControl ); |
|
81 |
|
82 /** |
|
83 * Destroyes the extension. |
|
84 */ |
|
85 static void DestroyExtension( |
|
86 const CAknQueryControl* aQueryControl ); |
|
87 |
|
88 /** |
|
89 * Static constructor. |
|
90 */ |
|
91 static CAknQueryExtension* NewL(); |
|
92 |
|
93 /** |
|
94 * Destructor. |
|
95 */ |
|
96 virtual ~CAknQueryExtension(); |
|
97 |
|
98 private: // Data |
|
99 CAknsFrameBackgroundControlContext* iEditorContext; |
|
100 TBool iAllowEmptyInput; |
|
101 TBitFlags iVirtualInputStatusFlags; |
|
102 |
|
103 private: // Friend classes |
|
104 friend class CAknQueryControl; |
|
105 friend class CAknMultilineQueryControl; |
|
106 }; |
|
107 |
|
108 #endif // AKNQUERYEXTENSION_H |
|
109 |
|
110 // End of File |