calendarui/views/inc/calenweekcontainer.h
branchRCL_3
changeset 48 bf573002ff72
parent 30 d68a4b5d5885
child 67 1539a383d7b6
--- 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 <calsession.h>
 #include <calenconstants.h>
 #include <AknUtils.h>
 #include <calcommon.h>  // CalCommon::TCalViewFilter
 #include <caleninstanceid.h>            // TCalenInstanceId
+#include <gestureobserver.h>  //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<CCalHourItem*>* 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<MCalenServices::TCalenIcons>& 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