--- a/calendarui/views/dayview/inc/calendaycontentscrollarea.h Tue Jul 06 14:14:56 2010 +0300
+++ b/calendarui/views/dayview/inc/calendaycontentscrollarea.h Wed Aug 18 09:47:38 2010 +0300
@@ -24,14 +24,32 @@
// User includes
#include "calendaycommonheaders.h"
+#ifdef CALENVIEWS_DLL
+#define CALENDAYCONTENTSCROLLAREA_EXPORT Q_DECL_EXPORT
+#else
+#define CALENDAYCONTENTSCROLLAREA_EXPORT Q_DECL_IMPORT
+#endif
+
// Class declaration
-class CalenDayContentScrollArea : public HbScrollArea
+class CALENDAYCONTENTSCROLLAREA_EXPORT CalenDayContentScrollArea : public HbScrollArea
{
Q_OBJECT
public:
CalenDayContentScrollArea(QGraphicsItem *parent = 0);
virtual ~CalenDayContentScrollArea();
+
+public:
+ /*!
+ \enum CalenPanDirection
+ \brief Enumeration identifies pan gesture directions.
+ */
+ enum CalenPanDirection
+ {
+ ECalenPanNotSet = 0,
+ ECalenPanVertical,
+ ECalenPanHorizontal
+ };
signals:
void scrollAreaMoveStarted(CalenScrollDirection scrollTo);
@@ -50,6 +68,7 @@
private: // private functions
void checkPanDirection(QPanGesture *panGesture);
void moveTo(const QPointF &newPosition, int time = 0);
+ bool isHorizontalSwipe(qreal angle) const;
private slots:
void moveFinished();