calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calendaycontentscrollarea.h
changeset 81 ce92091cbd61
parent 45 b6db4fd4947b
equal deleted inserted replaced
75:7ac58b2aae6f 81:ce92091cbd61
    21 // System includes
    21 // System includes
    22 #include <hbscrollarea.h>
    22 #include <hbscrollarea.h>
    23 
    23 
    24 #include "calendaycommonheaders.h"
    24 #include "calendaycommonheaders.h"
    25 
    25 
       
    26 extern CalenScrollDirection gDisallowedDirection;
       
    27 
    26 // Class declaration
    28 // Class declaration
    27 class CalenDayContentScrollArea : public HbScrollArea
    29 class CalenDayContentScrollArea : public HbScrollArea
    28 	{
    30 {
    29 Q_OBJECT
    31 Q_OBJECT
    30 
    32 
    31 public:
    33 public:
    32 	CalenDayContentScrollArea(QGraphicsItem *parent = 0)
    34     CalenDayContentScrollArea(QGraphicsItem *parent = 0)
    33 		{
    35     {
    34 		Q_UNUSED(parent);
    36         Q_UNUSED(parent);
    35 		}
    37     }
    36 	virtual ~CalenDayContentScrollArea()
    38     
    37 		{
    39     virtual ~CalenDayContentScrollArea()
    38 		}
    40     {
       
    41     }
       
    42     
       
    43     CalenScrollDirection disallowedScrollDirection() const
       
    44     {
       
    45         return gDisallowedDirection;
       
    46     }
    39 
    47 
    40 	signals:
    48     void setDisallowedScrollDirection(const CalenScrollDirection direction)
    41 	void scrollAreaMoveStarted(CalenScrollDirection scrollTo);
    49     {
    42 	void scrollAreaMoveFinished(CalenScrollDirection scrollTo);
    50         gDisallowedDirection = direction;
       
    51     }
       
    52 
       
    53 signals:
       
    54     void scrollAreaMoveStarted(CalenScrollDirection scrollTo);
       
    55     void scrollAreaMoveFinished(CalenScrollDirection scrollTo);
    43 
    56 
    44 public slots:
    57 public slots:
    45 	void scrollToMiddleWidget()
    58     void scrollToMiddleWidget()
    46 		{
    59     {
    47 		}
    60     }
    48 
    61 
    49 protected:
    62 protected:
    50 	bool scrollByAmount(const QPointF &delta)
    63     bool scrollByAmount(const QPointF &delta)
    51 		{
    64     {
    52 		Q_UNUSED(delta);
    65         Q_UNUSED(delta);
    53 		return false;
    66         return false;
    54 		}
    67     }
    55 
    68 
    56 	void gestureEvent(QGestureEvent *event)
    69     void gestureEvent(QGestureEvent *event)
    57 		{
    70     {
    58 		Q_UNUSED(event);
    71         Q_UNUSED(event);
    59 		}
    72     }
    60 	bool eventFilter(QObject *obj, QEvent *event)
    73     bool eventFilter(QObject *obj, QEvent *event)
    61 		{
    74     {
    62 		Q_UNUSED(obj);Q_UNUSED(event);
    75         Q_UNUSED(obj);
    63 		return false;
    76         Q_UNUSED(event);
    64 		}
    77         return false;
    65 	bool event(QEvent *e)
    78     }
    66 		{
    79     bool event(QEvent *e)
    67 		Q_UNUSED(e);
    80     {
    68 		return false;
    81         Q_UNUSED(e);
    69 		}
    82         return false;
    70 	};
    83     }
       
    84 };
    71 
    85 
    72 #endif /* CALENDAYCONTENTSCROLLAREA_H_ */
    86 #endif /* CALENDAYCONTENTSCROLLAREA_H_ */