--- 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