295 |
295 |
296 /** |
296 /** |
297 * Tests if field control has been activated. |
297 * Tests if field control has been activated. |
298 */ |
298 */ |
299 IMPORT_C TBool IsFieldActivated() const; |
299 IMPORT_C TBool IsFieldActivated() const; |
300 |
300 |
301 /** |
301 /** |
302 * Provides possibility for field to dynamically |
302 * Provides possibility for field to dynamically |
303 * intialize context menu. |
303 * intialize context menu. |
304 * |
304 * |
305 * @param aResourceId Context menu resource ID |
305 * @param aResourceId Context menu resource ID |
306 * @param aMenuPane Pointer to menu pane |
306 * @param aMenuPane Pointer to menu pane |
307 */ |
307 */ |
308 IMPORT_C virtual void DynInitMenuPaneL( |
308 IMPORT_C virtual void DynInitMenuPaneL( |
309 TInt aResourceId, |
309 TInt aResourceId, |
310 CEikMenuPane* aMenuPane ); |
310 CEikMenuPane* aMenuPane ); |
311 |
311 |
312 /** |
312 /** |
313 * Setter for field view mode. Enumeration TESMRFieldType |
313 * Setter for field view mode. Enumeration TESMRFieldType |
314 * lists possible view modes. |
314 * lists possible view modes. |
315 * @param aViewMode View mode of the field |
315 * @param aViewMode View mode of the field |
316 */ |
316 */ |
317 IMPORT_C void SetFieldViewMode( TESMRFieldType aViewMode ); |
317 IMPORT_C void SetFieldViewMode( TESMRFieldType aViewMode ); |
318 |
318 |
319 /** |
319 /** |
320 * Getter for the field view mode. |
320 * Getter for the field view mode. |
321 * @return Field view mode |
321 * @return Field view mode |
322 */ |
322 */ |
323 IMPORT_C TESMRFieldType FieldViewMode() const; |
323 IMPORT_C TESMRFieldType FieldViewMode() const; |
324 |
324 |
325 /** |
325 /** |
326 * Updates field extension control and takes ownership |
326 * Updates field extension control and takes ownership |
327 * @param aControl Pointer to extension control. |
327 * @param aControl Pointer to extension control. |
328 */ |
328 */ |
329 IMPORT_C void UpdateExtControlL( |
329 IMPORT_C void UpdateExtControlL( |
330 CCoeControl* aControl ); |
330 CCoeControl* aControl ); |
331 |
331 |
332 /** |
332 /** |
333 * Set field as locked field(can't be deleted or edited) |
333 * Set field as locked field(can't be deleted or edited) |
334 */ |
334 */ |
335 IMPORT_C void virtual LockL(); |
335 IMPORT_C void virtual LockL(); |
336 |
336 |
337 /** |
337 /** |
338 * Get lock status of the field |
338 * Get lock status of the field |
339 * @return ETrue shows field locked EFalse shows field not locked |
339 * @return ETrue shows field locked EFalse shows field not locked |
340 */ |
340 */ |
341 IMPORT_C TBool IsLocked(); |
341 IMPORT_C TBool IsLocked(); |
|
342 |
|
343 /** |
|
344 * Finds out if field supports longtap functionality or not |
|
345 * @param aPointerEvent, where the event actually occured |
|
346 * @return ETrue if field supports longtap functionality |
|
347 */ |
|
348 IMPORT_C virtual TBool SupportsLongTapFunctionalityL( |
|
349 const TPointerEvent &aPointerEvent ); |
342 |
350 |
343 protected: |
351 protected: |
344 |
352 |
345 /** |
353 /** |
346 * Sends event to the event queue. |
354 * Sends event to the event queue. |
414 IMPORT_C virtual void SizeChanged(); |
422 IMPORT_C virtual void SizeChanged(); |
415 IMPORT_C virtual TInt CountComponentControls() const; |
423 IMPORT_C virtual TInt CountComponentControls() const; |
416 IMPORT_C virtual CCoeControl* ComponentControl( TInt aInd ) const; |
424 IMPORT_C virtual CCoeControl* ComponentControl( TInt aInd ) const; |
417 IMPORT_C virtual TSize MinimumSize(); |
425 IMPORT_C virtual TSize MinimumSize(); |
418 |
426 |
419 private: // From base class CCoeControl |
427 protected: // From base class CCoeControl |
420 |
428 |
421 /** |
429 /** |
422 * Implements pointer event handling for fields. |
430 * Implements pointer event handling for fields. |
423 * Subclasses must not override this but implement the field specific |
431 * Subclasses must not override this but implement the field specific |
424 * actions using the template methods. |
432 * actions using the template methods. |
445 // From MESMRFieldEventNotifier |
453 // From MESMRFieldEventNotifier |
446 /** |
454 /** |
447 * Returns the event observer interface |
455 * Returns the event observer interface |
448 */ |
456 */ |
449 IMPORT_C MESMRFieldEventObserver* EventObserver() const; |
457 IMPORT_C MESMRFieldEventObserver* EventObserver() const; |
450 |
458 |
451 /** |
459 /** |
452 * Initiates tactile feedback when called |
460 * Initiates tactile feedback when called |
453 */ |
461 */ |
454 IMPORT_C void HandleTactileFeedbackL(); |
462 IMPORT_C void HandleTactileFeedbackL(); |
455 |
463 |
456 |
464 |
457 private: |
465 private: |
458 void AquireTactileFeedback(); |
466 void AquireTactileFeedback(); |
459 |
467 |
460 protected: // data |
468 protected: // data |
461 /// Own: control which is surrounded by border |
469 /// Own: control which is surrounded by border |