diff -r 360d55486d7f -r 5de72ea7a065 calendarui/views/inc/calennativeview.h --- a/calendarui/views/inc/calennativeview.h Fri Jun 11 13:37:54 2010 +0300 +++ b/calendarui/views/inc/calennativeview.h Wed Jun 23 18:11:28 2010 +0300 @@ -19,6 +19,12 @@ #ifndef CALENNATIVEVIEW_H #define CALENNATIVEVIEW_H +#ifdef CALENVIEWS_DLL +#define CALENNATIVEVIEW_EXPORT Q_DECL_EXPORT +#else +#define CALENNATIVEVIEW_EXPORT Q_DECL_IMPORT +#endif + // System includes #include #include @@ -47,6 +53,11 @@ TBool pluginEnabled(); virtual void refreshViewOnGoToDate(); QString *pluginText(); + /** + * captureScreenshot captures the current screenshot + * \param viewId of the view for which screenshot is to be taken + */ + CALENNATIVEVIEW_EXPORT void captureScreenshot(bool captureScreenShot = false); protected: // New functions CalenNativeView( MCalenServices& services ); @@ -63,13 +74,21 @@ void deleteAllEntries(); void launchSettingsView(); virtual void changeOrientation(Qt::Orientation orientation); + /** + * saveActivity saves the current view as an activity + * \params viewId view Id to be saved as an activity + * + */ + void saveActivity(); protected: MCalenServices &mServices; // not owned. - + int mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenDayView + QVariantHash mScreenShotMetadata; // Screenshot private: HbDateTimePicker *mDatePicker; + bool mIsCapturedScreenShotValid; // to check if the captured screenshot is valid }; #endif // CALENNATIVEVIEW_H