--- a/calendarui/views/inc/calennativeview.h Fri Sep 17 08:29:05 2010 +0300
+++ b/calendarui/views/inc/calennativeview.h Mon Oct 04 00:15:49 2010 +0300
@@ -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
};