calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calennativeview.h
changeset 45 b6db4fd4947b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calennativeview.h	Mon Jun 28 15:22:02 2010 +0530
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  This class is the base class of all Calendar views.
+ *
+*/
+
+
+#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>
+#include <hbabstractviewitem.h>
+
+// User includes
+#include "calennotificationhandler.h"   // MCalenNotificationHandler
+#include "calenview.h"
+
+const int WORKAROUND_TO_LIMIT_MAX_SPEED=8000;
+
+class MCalenServices;
+class HbDateTimePicker;
+
+class  CalenNativeView : public CalenView,
+                        public MCalenNotificationHandler
+    {
+    Q_OBJECT
+    
+	public:  // Constructors and destructor
+        /**
+         * Destructor.
+         */
+	    virtual ~CalenNativeView(){}
+	    virtual void populationComplete(){}
+		TBool pluginEnabled(){return EFalse;}
+		virtual void refreshViewOnGoToDate(){}
+		QString *pluginText() {QString* str = new QString("string"); return str;}
+	    /**
+	     * captureScreenshot captures the current screenshot
+	     */
+		CALENNATIVEVIEW_EXPORT void captureScreenshot(bool captureScreenShot = false) {Q_UNUSED(captureScreenShot);}
+		
+	protected:  // New functions
+	    CalenNativeView( MCalenServices& services ) : mServices(services){}
+	    
+	    void HandleNotification( const TCalenNotification notification ){Q_UNUSED(notification);}
+	    virtual void onLocaleChanged(int reason) {Q_UNUSED(reason);}
+	    virtual void onContextChanged() {}
+
+	protected slots:
+	
+        void goToDate(){}
+        void goToSelectedDate(){}
+        void deleteBeforeDate(){}
+        void deleteAllEntries(){}
+        void launchSettingsView(){}
+	    virtual void changeOrientation(Qt::Orientation orientation){Q_UNUSED(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
+
+	};
+
+#endif  // CALENNATIVEVIEW_H
+
+// End of file