textinput/peninputarc/inc/pensrvcliinc/penpointereventsuppressor.h
branchRCL_3
changeset 22 bd83ceabce89
parent 0 eb1f2e154e89
equal deleted inserted replaced
21:ecbabf52600f 22:bd83ceabce89
    83 	* client can be sure that a drag action is happening.
    83 	* client can be sure that a drag action is happening.
    84 	*
    84 	*
    85 	* @param aPointerEvent the pointer event which may need to be suppressed.
    85 	* @param aPointerEvent the pointer event which may need to be suppressed.
    86 	* @return ETrue if the pointer event should be suppressed, or EFalse if it should be handled.
    86 	* @return ETrue if the pointer event should be suppressed, or EFalse if it should be handled.
    87 	*/
    87 	*/
    88 	TBool SuppressPointerEvent(const TPointerEvent& aPointerEvent);
    88 
       
    89     TBool SuppressPointerEvent( TPointerEvent& aPointerEvent );
       
    90 
    89 	/**
    91 	/**
    90 	* Set the maximum time period that drag events should be
    92 	* Set the maximum time period that drag events should be
    91 	* ignored during a pointer interaction.
    93 	* ignored during a pointer interaction.
    92 	*
    94 	*
    93 	* @param aDuration the maximum duration of a tap action.
    95 	* @param aDuration the maximum duration of a tap action.
   107 	*
   109 	*
   108 	* @param aInterval the minimum interval between which drag events are wanted
   110 	* @param aInterval the minimum interval between which drag events are wanted
   109 	*/
   111 	*/
   110 	void SetMinInterDragInterval(TTimeIntervalMicroSeconds aInterval);
   112 	void SetMinInterDragInterval(TTimeIntervalMicroSeconds aInterval);
   111 
   113 
       
   114     /**
       
   115      * Set the maximum pointer movement for up events.
       
   116      * All up events within maximum movement and timeout are moved to the down position.
       
   117      * 
       
   118      * @since Symbian^3
       
   119      * @param aMaxDownUpMove maximum movement(in pixel) of up event
       
   120      */
       
   121     void SetMaxDownUpMove( TSize aMaxDownUpMove );
       
   122 
       
   123     /**
       
   124      * Set the maximum time between up and down events.
       
   125      * All up events within maximum movement and timeout are moved to the down position.
       
   126      * 
       
   127      * @since Symbian^3
       
   128      * @param aDuration time between down and up events. 
       
   129      */
       
   130     void SetMaxDownUpDuration( TTimeIntervalMicroSeconds aDuration );
       
   131 
   112 private:
   132 private:
   113 	CPenPointerEventSuppressor();
   133 	CPenPointerEventSuppressor();
   114 
   134 
   115 private:
   135 private:
   116 	TTimeIntervalMicroSeconds iMaxTapDuration;
   136 	TTimeIntervalMicroSeconds iMaxTapDuration;
   118 	TTimeIntervalMicroSeconds iMinInterDragInterval;
   138 	TTimeIntervalMicroSeconds iMinInterDragInterval;
   119 	TTime iDownTime;
   139 	TTime iDownTime;
   120 	TPoint iDownPos;
   140 	TPoint iDownPos;
   121 	TBool iTap;
   141 	TBool iTap;
   122 	TTime iLastEventTime;
   142 	TTime iLastEventTime;
   123 	};
   143 	
       
   144 
       
   145     /**
       
   146      * The maximum pointer movement for up events.
       
   147      * All up events within maximum movement and timeout are moved to the down position.
       
   148      */
       
   149     TSize iMaxDownUpMove;
       
   150 
       
   151     /**
       
   152      * The maximum time between up and down events.
       
   153      * All up events within maximum movement and timeout are moved to the down position.
       
   154      */
       
   155     TTimeIntervalMicroSeconds iMaxDownUpDuration;
       
   156     };
   124 
   157 
   125 #endif
   158 #endif