calendarui/views/inc/calennativeview.h
changeset 49 5de72ea7a065
parent 23 fd30d51f876b
child 50 579cc610882e
--- 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 <hblabel.h>
 #include <hblistwidget.h>
@@ -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