|
1 /* |
|
2 * Copyright (c) 2006 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: Number entry UI feature definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUINUMBERENTRY_H |
|
20 #define C_VTUINUMBERENTRY_H |
|
21 |
|
22 #include "mvtuicommandui.h" |
|
23 #include "cvtuifeaturebase.h" |
|
24 #include "mvtuinumberentrycontrolobserver.h" |
|
25 #include "cvtuifeaturemanager.h" |
|
26 |
|
27 class CVtUiNumberEntryControl; |
|
28 |
|
29 /** |
|
30 * CVtUiNumberEntry |
|
31 * |
|
32 * NumberEntry UI feature. |
|
33 * |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 class CVtUiNumberEntry : public CVtUiFeatureBase, |
|
37 public MVtUiNumberEntryControlObserver |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Static constructor |
|
44 */ |
|
45 static CVtUiNumberEntry* NewL( CVtUiFeatureManager& aFeatureManager ); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 ~CVtUiNumberEntry(); |
|
51 |
|
52 public: // from CVtUiFeatureBase |
|
53 |
|
54 /** |
|
55 * @see CVtUiFeatureBase::StartL |
|
56 */ |
|
57 void StartL(); |
|
58 |
|
59 /** |
|
60 * @see CVtUiFeatureBase::Stop |
|
61 */ |
|
62 void Stop(); |
|
63 |
|
64 /** |
|
65 * @see CVtUiFeatureBase::InitFeatureL |
|
66 */ |
|
67 void InitFeatureL(); |
|
68 |
|
69 public: // from MVtUiNumberEntryControlObserver |
|
70 |
|
71 /** |
|
72 * @see MVtUiNumberEntryControlObserver::ControlActivatedL |
|
73 */ |
|
74 void ControlActivatedL(); |
|
75 |
|
76 /** |
|
77 * @see MVtUiNumberEntryControlObserver::ControlDeactivated |
|
78 */ |
|
79 void ControlDeactivated(); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * Constructor |
|
85 */ |
|
86 CVtUiNumberEntry( CVtUiFeatureManager& aFeatureManager ); |
|
87 |
|
88 /** |
|
89 * 2nd constructor |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 /** |
|
94 * Prepares feature |
|
95 */ |
|
96 void PrepareL(); |
|
97 |
|
98 /** |
|
99 * Unprepares feature |
|
100 */ |
|
101 void Unprepare(); |
|
102 |
|
103 /** |
|
104 * Creates number entry control instance |
|
105 */ |
|
106 void CreateNumberEntryControlL(); |
|
107 |
|
108 /** |
|
109 * Deletes number entry control instance |
|
110 */ |
|
111 void DeleteNumberEntryControl(); |
|
112 |
|
113 private: |
|
114 |
|
115 // Owned number entry control instance. |
|
116 CVtUiNumberEntryControl* iNumberEntryControl; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // C_VTUINUMBERENTRY_H |