phoneuis/dialer/inc/cdialerkeypadbutton.h
branchRCL_3
changeset 17 38529f706030
parent 14 24062c24fe38
--- a/phoneuis/dialer/inc/cdialerkeypadbutton.h	Mon Mar 15 12:40:24 2010 +0200
+++ b/phoneuis/dialer/inc/cdialerkeypadbutton.h	Wed Mar 31 21:30:06 2010 +0300
@@ -35,6 +35,16 @@
 */
 NONSHARABLE_CLASS( CDialerKeyPadButton ) : public CAknButton
     {
+    public: // Enumerations
+
+        enum TDialerKeyPadButtonEvent
+            {
+            /* Reported to the observer when pointer is dragged outside
+             * the button's area.
+             */
+            EEventDraggingOutsideButton = 200
+            };
+        
     public:
     
         /**
@@ -134,6 +144,11 @@
          */
         void SizeChanged();
         
+        /**
+         * @see CAknButton
+         */
+        void HandlePointerEventL( const TPointerEvent& aPointerEvent );
+        
     private:
 
         void UpdateIconL();
@@ -213,6 +228,9 @@
         
         /** Rect inside the button where icon is drawn (if available) */
         TRect iIconRect;
+        
+        /** Own variable for counting drag events, cannot use the one in base class */
+        TInt iDragEventCounter;
     };
 
 #endif // C_CDIALERKEYPADBUTTON_H