diff -r 9c5b1510919f -r bf573002ff72 calendarui/views/inc/calenweekcontainer.h --- a/calendarui/views/inc/calenweekcontainer.h Wed Jun 09 09:40:23 2010 +0300 +++ b/calendarui/views/inc/calenweekcontainer.h Mon Jun 21 15:38:59 2010 +0300 @@ -19,17 +19,19 @@ #ifndef CALENWEEKCONT_H #define CALENWEEKCONT_H -// INCLUDES -#include "calencontainer.h" -#include "calenweekcallback.h" -#include "calenweekdata.h" -#include "calenglobaldata.h" #include #include #include #include // CalCommon::TCalViewFilter #include // TCalenInstanceId +#include //MGestureObserver + +// INCLUDES +#include "calencontainer.h" +#include "calenweekcallback.h" +#include "calenweekdata.h" +#include "calenglobaldata.h" // FORWARD DECLARATIONS class CAknsFrameBackgroundControlContext; @@ -43,6 +45,11 @@ class CCalInstanceView; class MCalenPreview; +namespace GestureHelper + { + class CGestureHelper; + } + typedef CArrayFixFlat* CWeekSlotArrayPtr; NONSHARABLE_CLASS (CCalHourItem):public CBase @@ -79,7 +86,8 @@ * Container control for Week View. */ NONSHARABLE_CLASS( CCalenWeekContainer ) : public CCalenContainer, - public MCalenWeekCursorObserver + public MCalenWeekCursorObserver, + public GestureHelper::MGestureObserver { public: enum TLocaleChangeRedraw @@ -108,6 +116,7 @@ * Create icon indices */ void CreateIconIndicesL( RArray& aIndexArray ); + public: // New Function /** * Check with the layoutmanager for any layout chnanges @@ -194,6 +203,12 @@ void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation ); + /** + * Handle the gesture event + * @param aEvent event describing the gesture + */ + virtual void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); + private: // New Function TInt HighlightRowFromActiveContextL(TInt aColumn); @@ -441,6 +456,15 @@ TBool iRow; TBool iValidDay; TBool iHourChange; + + /** + * Gesture helper provides functionality to convert a stream of pointer + * events into a logical gesture. + * Own. + */ + // Own: Gesture helper + GestureHelper::CGestureHelper* iGestureControl; + TBool iGestureHandled; }; #endif //CALENWEEKCONT_H