diff -r fd30d51f876b -r b6db4fd4947b calendarui/views/inc/calendayview.h --- a/calendarui/views/inc/calendayview.h Mon May 03 12:30:32 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,170 +0,0 @@ -/* -* Copyright (c) 2009 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: Class declaration for the day/agenda view -* -*/ - -#ifndef CALENDAYVIEW_H -#define CALENDAYVIEW_H - -// System includes -#include - -// User includes -#include "calennativeview.h" - -// Forward declarations -class QGraphicsSceneMouseEvent; -class CalenDayViewWidget; -class CalenDocLoader; - -#ifdef CALENVIEWS_DLL -#define CALENDAYVIEW_EXPORT Q_DECL_EXPORT -#else -#define CALENDAYVIEW_EXPORT Q_DECL_IMPORT -#endif - -/** - * @class CalenDayView - * @brief Class declaration for the day/agenda view - * which shows the list of events &/ to-do's (if any) - * for any given day in the calendar. User can do other - * basic operations like creating, viewing or deleting - * an event - */ -class CalenDayView : public CalenNativeView - { - Q_OBJECT - -public: - /** - * @brief Constructor - * @param services A reference to the MCalenServices object - */ - CALENDAYVIEW_EXPORT CalenDayView(MCalenServices &services); - - /** - * @brief Default C++ constructor - */ - CALENDAYVIEW_EXPORT virtual ~CalenDayView(); - - /** - * @brief Initializes the view after its creation - * Must be called only after the view and its children are constructed - * @param docLoader Pointer to the document loader object which has - * loaded this view from the .docml file - */ - CALENDAYVIEW_EXPORT void setupView(CalenDocLoader *docLoader); - - /** - * @brief Activates the current view. Sets this view as the current - * view of the application's main window. Must be called only after - * the view has been constructed and initialized - */ - CALENDAYVIEW_EXPORT virtual void doPopulation(); - - /** - * @brief Callback function for any notifications that has been - * subscribed by this view - * @param notification The event for which notification is being sent - */ - CALENDAYVIEW_EXPORT void HandleNotification(const TCalenNotification notification); - - /** - * @brief Getter function for the document loader. Called from the content - * widget in order get its children - */ - CALENDAYVIEW_EXPORT CalenDocLoader* docLoader(); - - /** - * @brief Refreshes the view with the date set in the context - */ - void refreshViewOnGoToDate(); - -protected: - - // TODO: Remove these after gestures are available - void mousePressEvent(QGraphicsSceneMouseEvent *event); - void mouseMoveEvent(QGraphicsSceneMouseEvent *event); - bool eventFilter(QObject *source, QEvent *event); - -private: - - /** - * @brief Connects to all the toolbar and menu actions associated - * with this view - */ - void setupActions(); - - /** - * @brief Callback function for listening to locale changes like - * time format, date format etc - */ - void onLocaleChanged(int reason); - -private slots: - - /** - * @brief Slot which is called whenever the orientation of the device changes - * @param orientation The current device orientation - */ - void orientationChanged(Qt::Orientation orientation); - - /** - * @brief Slot which launches back the month view - */ - void launchMonthView(); - -private: - - /** - * @var mDate - * @brief The date for which this view is being shown - */ - QDateTime mDate; - - /** - * @var mSoftKeyAction - * TODO: This may not be required going ahead - */ - HbAction *mSoftKeyAction; - - /** - * @var mDayViewWidget - * @brief The pointer to the content widget of this view - */ - CalenDayViewWidget *mDayViewWidget; - - /** - * @var mDocLoader - * @brief Pointer to the document loader which has loaded - * this view - */ - CalenDocLoader *mDocLoader; - - /** - * @var mGoToTodayAction - * Action which provides "Go to today" functionality - */ - HbAction *mGoToTodayAction; - - // TODO: Remove these after gestures are available - QPointF mTapPoint; - bool mActionTaken; - -}; - -#endif /* CALENDAYVIEW_H */ - -// End of file --Don't remove this.