equal
deleted
inserted
replaced
26 #include <coecntrl.h> |
26 #include <coecntrl.h> |
27 #include <coemain.h> |
27 #include <coemain.h> |
28 #include <AknPhoneNumberEditor.h> |
28 #include <AknPhoneNumberEditor.h> |
29 |
29 |
30 #include "cdialercontainerbase.h" |
30 #include "cdialercontainerbase.h" |
|
31 #include "dialer.hrh" |
31 |
32 |
32 // CONSTANTS |
33 // CONSTANTS |
33 |
34 |
34 // FORWARD DECLARATIONS |
35 // FORWARD DECLARATIONS |
35 class CAknPhoneNumberEditor; |
36 class CAknPhoneNumberEditor; |
36 class CAknButton; |
37 class CAknButton; |
37 class CAknsFrameBackgroundControlContext; |
38 class CAknsFrameBackgroundControlContext; |
38 class MNumberEntryObserver; |
39 class MNumberEntryObserver; |
39 class CEikLabel; |
40 class CEikLabel; |
40 |
41 class CDialingExtensionInterface; |
41 |
42 |
42 // Number entry varietys |
43 // Number entry varietys |
43 enum TDialerNEVariety |
44 enum TDialerNEVariety |
44 { |
45 { |
45 KDialerNELayoutLargeFont, |
46 KDialerNELayoutLargeFont, |
109 * @param aDesc Text to set. |
110 * @param aDesc Text to set. |
110 */ |
111 */ |
111 void SetTextToNumberEntry( const TDesC& aDesC ); |
112 void SetTextToNumberEntry( const TDesC& aDesC ); |
112 |
113 |
113 /** |
114 /** |
|
115 * Returns TPtrC pointed to editor text. |
|
116 * @return Pointer to editor text. |
|
117 */ |
|
118 TPtrC Text() const; |
|
119 |
|
120 /** |
114 * Get tect from number entry. |
121 * Get tect from number entry. |
115 * @param aDesc Text is returned here. |
122 * @param aDes Text is returned here. |
116 */ |
123 */ |
117 void GetTextFromNumberEntry( TDes& aDesC ); |
124 void GetTextFromNumberEntry( TDes& aDes ); |
118 |
125 |
119 /** |
126 /** |
120 * Reset editor to default values. |
127 * Reset editor to default values. |
121 */ |
128 */ |
122 void ResetEditorToDefaultValues(); |
129 void ResetEditorToDefaultValues(); |
141 |
148 |
142 /** |
149 /** |
143 * Clear editor flags to default values. |
150 * Clear editor flags to default values. |
144 */ |
151 */ |
145 void ClearEditorFlags(); |
152 void ClearEditorFlags(); |
146 |
153 |
|
154 void SetEasyDialingPlugin( CDialingExtensionInterface* iEasyDialer ); |
|
155 |
|
156 void SetOperationMode( TDialerOperationMode aMode ); |
|
157 |
|
158 TBool Validate( const TDesC& aString ); |
|
159 |
147 private: // Functions from MCoeControlObserver |
160 private: // Functions from MCoeControlObserver |
148 /** |
161 /** |
149 * @see MCoeControlObserver |
162 * @see MCoeControlObserver |
150 */ |
163 */ |
151 void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType ); |
164 void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType ); |
176 /** |
189 /** |
177 * @see CCoeControl |
190 * @see CCoeControl |
178 */ |
191 */ |
179 void HandleResourceChange( TInt aType ); |
192 void HandleResourceChange( TInt aType ); |
180 |
193 |
|
194 /** |
|
195 * @see CCoeControl |
|
196 */ |
|
197 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
198 |
181 public: |
199 public: |
182 /** |
200 /** |
183 * @see CCoeControl |
201 * @see CCoeControl |
184 */ |
202 */ |
185 void SetFocus( TBool aFocus, |
203 void SetFocus( TBool aFocus, |
186 TDrawNow aDrawNow=ENoDrawNow ); |
204 TDrawNow aDrawNow=ENoDrawNow ); |
|
205 |
|
206 /** |
|
207 * @see CCoeControl |
|
208 */ |
|
209 void MakeVisible( TBool aVisible ); |
187 |
210 |
188 private: // From CDialerContainerBase |
211 private: // From CDialerContainerBase |
189 |
212 |
190 |
213 |
191 /** |
214 /** |
287 TRect iInnerRect; |
310 TRect iInnerRect; |
288 |
311 |
289 MNumberEntryObserver* iObserver; |
312 MNumberEntryObserver* iObserver; |
290 |
313 |
291 TBool iNumberContents; |
314 TBool iNumberContents; |
|
315 |
|
316 TBuf<KDialerPhoneNumberEntryBufferSize> iPreviousNumberEntryContent; |
|
317 |
|
318 // NOT OWN |
|
319 CDialingExtensionInterface* iEasyDialer; |
|
320 |
|
321 TDialerOperationMode iOperationMode; |
|
322 |
|
323 // NOT OWNED. |
|
324 CEikAppUi* iAppUi; |
292 }; |
325 }; |
293 |
326 |
294 #endif // CDIALERNUMBERENTRY_H |
327 #endif // CDIALERNUMBERENTRY_H |
295 |
328 |
296 // End of File |
329 // End of File |