src/hbcore/gestures/hbpangesturelogic_p.h
changeset 28 b7da29130b0e
parent 2 06ff229162e9
child 30 80e4d18b72f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    36 #include <QList>
    36 #include <QList>
    37 
    37 
    38 class QPoint;
    38 class QPoint;
    39 class HbPanGesture;
    39 class HbPanGesture;
    40 class QMouseEvent;
    40 class QMouseEvent;
       
    41 class QTouchEvent;
    41 
    42 
    42 class HB_CORE_PRIVATE_EXPORT HbPanGestureLogic
    43 class HB_CORE_PRIVATE_EXPORT HbPanGestureLogic
    43 {
    44 {
    44 public:
    45 public:
    45     HbPanGestureLogic();
    46     HbPanGestureLogic();
    46     ~HbPanGestureLogic();
    47     ~HbPanGestureLogic();
    47 
    48 
    48     bool isMouseEvent(QEvent::Type eventType);
    49     bool isMouseEvent(QEvent::Type eventType);
       
    50     bool isTouchEvent(QEvent::Type eventType);
    49     void resetGesture(HbPanGesture *gesture);
    51     void resetGesture(HbPanGesture *gesture);
       
    52     int followedTouchPointIndex(QTouchEvent *te, HbPanGesture *gesture);
       
    53     int getNextId(QTouchEvent *te);
    50     QGestureRecognizer::Result handleMousePress(
    54     QGestureRecognizer::Result handleMousePress(
    51             Qt::GestureState gestureState,
    55             Qt::GestureState gestureState,
    52             HbPanGesture *gesture,
    56             HbPanGesture *gesture,
    53             QObject *watched,
    57             QObject *watched,
    54             QMouseEvent *me );
    58             QMouseEvent *me );
    59             QMouseEvent *me );
    63             QMouseEvent *me );
    60     QGestureRecognizer::Result handleMouseRelease(
    64     QGestureRecognizer::Result handleMouseRelease(
    61             Qt::GestureState gestureState,
    65             Qt::GestureState gestureState,
    62             HbPanGesture *gesture,
    66             HbPanGesture *gesture,
    63             QObject *watched,
    67             QObject *watched,
    64             QMouseEvent *me );    
    68             QMouseEvent *me );
       
    69     QGestureRecognizer::Result handleTouchBegin(
       
    70             Qt::GestureState gestureState,
       
    71             HbPanGesture *gesture,
       
    72             QObject *watched,
       
    73             QTouchEvent *te );
       
    74     QGestureRecognizer::Result handleTouchMove(
       
    75             Qt::GestureState gestureState,
       
    76             HbPanGesture *gesture,
       
    77             QObject *watched,
       
    78             QTouchEvent *te );
       
    79     QGestureRecognizer::Result handleTouchEnd(
       
    80             Qt::GestureState gestureState,
       
    81             HbPanGesture *gesture,
       
    82             QObject *watched,
       
    83             QTouchEvent *te );
    65     QGestureRecognizer::Result recognize(
    84     QGestureRecognizer::Result recognize(
    66             Qt::GestureState gestureState,
    85             Qt::GestureState gestureState,
    67             HbPanGesture *gesture,
    86             HbPanGesture *gesture,
    68             QObject *watched,
    87             QObject *watched,
    69             QEvent *event,
    88             QEvent *event,