calendarui/views/inc/calennativeview.h
changeset 75 7ac58b2aae6f
parent 70 a5ed90760192
child 81 ce92091cbd61
--- a/calendarui/views/inc/calennativeview.h	Mon Sep 06 15:58:44 2010 +0530
+++ b/calendarui/views/inc/calennativeview.h	Mon Sep 20 12:44:39 2010 +0530
@@ -26,6 +26,8 @@
 #endif
 
 //  System includes
+#include <QObject>
+#include <QPointer>
 #include <hblabel.h>
 #include <hblistwidget.h>
 #include <hbabstractviewitem.h>
@@ -64,10 +66,11 @@
 	    void HandleNotification( const TCalenNotification notification );
 	    virtual void onLocaleChanged(int reason)=0;
 	    virtual void onContextChanged() {};
-	
+	    virtual bool checkIfWeCanSwipe(QDateTime& date, bool rightGesture);
+	    
 	signals:
-		void closeDialogs();
-	
+			void closeDialogs();
+
 	protected slots:
 	
         void goToDate();
@@ -81,7 +84,9 @@
 	     * 
 	     */
 	    void saveActivity();
-	    
+     private:
+	void refreshDatePicker();
+	
     protected:
     
         MCalenServices	&mServices; // not owned.
@@ -89,7 +94,7 @@
         QVariantHash    mScreenShotMetadata; // Screenshot
         bool mEntriesInDataBase;
     private:
-        HbDateTimePicker	*mDatePicker;
+        QPointer<HbDateTimePicker> mDatePicker;
         bool                mIsCapturedScreenShotValid; // to check if the captured screenshot is valid
 	};