calendarui/views/inc/calenmonthcontainer.h
branchRCL_3
changeset 48 bf573002ff72
parent 21 9711e452b5e9
child 67 1539a383d7b6
--- a/calendarui/views/inc/calenmonthcontainer.h	Wed Jun 09 09:40:23 2010 +0300
+++ b/calendarui/views/inc/calenmonthcontainer.h	Mon Jun 21 15:38:59 2010 +0300
@@ -23,11 +23,12 @@
 //  INCLUDES
 
 #include <eiklbo.h>
+#include <e32std.h>
+#include <gestureobserver.h>  //MGestureObserver
+
 #include "calencontainer.h"
 #include "calenmonthdata.h" // CMonthDataArray is typedef
 
-#include <e32std.h>
-
 // FORWARD DECLARATIONS
 class CAknGrid;
 class CAknIconArray;
@@ -39,6 +40,10 @@
 class TAknLayoutRect;
 class CCalenPreview;
 
+namespace GestureHelper
+    {
+    class CGestureHelper;
+    }
 
 //  CLASS DEFINITIONS
 
@@ -47,7 +52,8 @@
  */
 
 NONSHARABLE_CLASS( CCalenMonthContainer ) : public CCalenContainer,
-                                            public MEikListBoxObserver
+                                            public MEikListBoxObserver,
+                                            public GestureHelper::MGestureObserver
     {
 public:  // Constructors and destructor
     /**
@@ -124,6 +130,13 @@
     
     void HandleLongTapEventL( const TPoint& aPenEventLocation, 
                               const TPoint& aPenEventScreenLocation );
+
+    /**From MGestureObserver
+     * Handle the gesture event
+     * @param aEvent event describing the gesture 
+     */
+    virtual void HandleGestureL( const GestureHelper::MGestureEvent& aEvent );
+    
     void HidePopup();
     
     void RedrawPreviewPane();
@@ -371,6 +384,11 @@
     TTime iOldFirstDayOfGrid;
 	TBool iChangeMonth;
 	TBool iChangeDay;
+	
+    // Own: Gesture helper
+    GestureHelper::CGestureHelper* iGestureControl;
+    // Own: this variable indicates that gesture event was handled.
+    TBool iGestureHandled;
     };
 
 #endif //CALENMONTHCONT_H