textinput/peninputarc/inc/pensrvcliinc/penpointereventsuppressor.h
branchRCL_3
changeset 22 bd83ceabce89
parent 0 eb1f2e154e89
--- a/textinput/peninputarc/inc/pensrvcliinc/penpointereventsuppressor.h	Wed Sep 01 12:23:33 2010 +0100
+++ b/textinput/peninputarc/inc/pensrvcliinc/penpointereventsuppressor.h	Tue Sep 14 21:59:06 2010 +0300
@@ -85,7 +85,9 @@
 	* @param aPointerEvent the pointer event which may need to be suppressed.
 	* @return ETrue if the pointer event should be suppressed, or EFalse if it should be handled.
 	*/
-	TBool SuppressPointerEvent(const TPointerEvent& aPointerEvent);
+
+    TBool SuppressPointerEvent( TPointerEvent& aPointerEvent );
+
 	/**
 	* Set the maximum time period that drag events should be
 	* ignored during a pointer interaction.
@@ -109,6 +111,24 @@
 	*/
 	void SetMinInterDragInterval(TTimeIntervalMicroSeconds aInterval);
 
+    /**
+     * Set the maximum pointer movement for up events.
+     * All up events within maximum movement and timeout are moved to the down position.
+     * 
+     * @since Symbian^3
+     * @param aMaxDownUpMove maximum movement(in pixel) of up event
+     */
+    void SetMaxDownUpMove( TSize aMaxDownUpMove );
+
+    /**
+     * Set the maximum time between up and down events.
+     * All up events within maximum movement and timeout are moved to the down position.
+     * 
+     * @since Symbian^3
+     * @param aDuration time between down and up events. 
+     */
+    void SetMaxDownUpDuration( TTimeIntervalMicroSeconds aDuration );
+
 private:
 	CPenPointerEventSuppressor();
 
@@ -120,6 +140,19 @@
 	TPoint iDownPos;
 	TBool iTap;
 	TTime iLastEventTime;
-	};
+	
+
+    /**
+     * The maximum pointer movement for up events.
+     * All up events within maximum movement and timeout are moved to the down position.
+     */
+    TSize iMaxDownUpMove;
+
+    /**
+     * The maximum time between up and down events.
+     * All up events within maximum movement and timeout are moved to the down position.
+     */
+    TTimeIntervalMicroSeconds iMaxDownUpDuration;
+    };
 
 #endif