diff -r 2a26698d78ba -r 38529f706030 phoneuis/dialer/inc/cdialerkeypadbutton.h --- 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