calendarui/views/inc/calennativeview.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
--- a/calendarui/views/inc/calennativeview.h	Mon May 03 12:30:32 2010 +0300
+++ b/calendarui/views/inc/calennativeview.h	Mon Jun 28 15:22:02 2010 +0530
@@ -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,10 @@
 		TBool pluginEnabled();
 		virtual void refreshViewOnGoToDate();
 		QString *pluginText();
+	    /**
+	     * captureScreenshot captures the current screenshot
+	     */
+		CALENNATIVEVIEW_EXPORT void captureScreenshot(bool captureScreenShot = false);
 		
 	protected:  // New functions
 	    CalenNativeView( MCalenServices& services );
@@ -63,13 +73,20 @@
         void deleteAllEntries();
         void launchSettingsView();
 	    virtual void changeOrientation(Qt::Orientation orientation);
+	    /**
+	     * saveActivity saves the current view as an activity
+	     * 
+	     */
+	    void saveActivity();
 	    
     protected:
     
         MCalenServices	&mServices; // not owned.
-	
+        int             mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenAgendaView
+        QVariantHash    mScreenShotMetadata; // Screenshot
     private:
         HbDateTimePicker	*mDatePicker;
+        bool                mIsCapturedScreenShotValid; // to check if the captured screenshot is valid
 	};
 
 #endif  // CALENNATIVEVIEW_H