|
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 * Implementation of Avkon queries, editor indicator icons. Move here from |
|
16 * aknquerydialog.h |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __AKNQUERY_EDIT_INDICATOR__ |
|
22 #define __AKNQUERY_EDIT_INDICATOR__ |
|
23 |
|
24 #include <aknEditStateIndicator.h> |
|
25 #include <AknIndicatorContainer.h> |
|
26 #include <AknIndicator.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CCoeControl; |
|
30 |
|
31 /** |
|
32 * QueryEditIndicator class. |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAknQueryEditIndicator) : public CAknIndicatorContainer, public MAknEditingStateIndicator |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 /** |
|
38 * C++ Constructor. |
|
39 */ |
|
40 static CAknQueryEditIndicator* NewL(CCoeControl* aControl); |
|
41 /** |
|
42 * C++ Destructor. |
|
43 */ |
|
44 ~CAknQueryEditIndicator(); |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Handles pointer events. |
|
50 * |
|
51 * @param aPointerEvent The pointer event. |
|
52 */ |
|
53 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
54 |
|
55 /** |
|
56 * From MAknEditingStateIndicator |
|
57 * Set editor indicator's state |
|
58 * @param aState State to be set |
|
59 */ |
|
60 virtual void SetState(TAknEditingState aState); |
|
61 |
|
62 /** |
|
63 * From MAknEditingStateIndicator |
|
64 * Returns indicator container |
|
65 * @return Pointer to indicator container |
|
66 */ |
|
67 virtual CAknIndicatorContainer* IndicatorContainer(); |
|
68 |
|
69 public: // new functions |
|
70 |
|
71 /** |
|
72 * Sets the information about the query flags. |
|
73 */ |
|
74 void SetFlags(TBitFlags16 aFlags); |
|
75 TAknEditingState State(); |
|
76 void SetQueryType(TInt aQueryType); |
|
77 |
|
78 private: |
|
79 /** |
|
80 * Constructor |
|
81 */ |
|
82 CAknQueryEditIndicator(); |
|
83 |
|
84 /** |
|
85 * ConstructL |
|
86 */ |
|
87 void ConstructL(CCoeControl* aControl); |
|
88 |
|
89 /** |
|
90 * Sets new indicator to container |
|
91 * @param aIndicator Indicator id |
|
92 * @param aState State of the indicator |
|
93 * @param aDrawNow Should the indicator be drawn now |
|
94 */ |
|
95 void SetIndicator(TInt aIndicator, TInt aState, TBool aDrawNow); |
|
96 |
|
97 private: |
|
98 TBitFlags16 iFlags; |
|
99 TAknEditingState iState; |
|
100 TInt iQueryType; |
|
101 }; |
|
102 |
|
103 #endif |