calendarui/views/inc/calennativeview.h
changeset 81 ce92091cbd61
parent 75 7ac58b2aae6f
child 83 5aadd1120515
equal deleted inserted replaced
75:7ac58b2aae6f 81:ce92091cbd61
    38 
    38 
    39 const int WORKAROUND_TO_LIMIT_MAX_SPEED=8000;
    39 const int WORKAROUND_TO_LIMIT_MAX_SPEED=8000;
    40 
    40 
    41 class MCalenServices;
    41 class MCalenServices;
    42 class HbDateTimePicker;
    42 class HbDateTimePicker;
       
    43 class AfActivityStorage;
    43 
    44 
    44 class  CalenNativeView : public CalenView,
    45 class  CalenNativeView : public CalenView,
    45                         public MCalenNotificationHandler
    46                         public MCalenNotificationHandler
    46     {
    47     {
    47     Q_OBJECT
    48     Q_OBJECT
    65 	    
    66 	    
    66 	    void HandleNotification( const TCalenNotification notification );
    67 	    void HandleNotification( const TCalenNotification notification );
    67 	    virtual void onLocaleChanged(int reason)=0;
    68 	    virtual void onLocaleChanged(int reason)=0;
    68 	    virtual void onContextChanged() {};
    69 	    virtual void onContextChanged() {};
    69 	    virtual bool checkIfWeCanSwipe(QDateTime& date, bool rightGesture);
    70 	    virtual bool checkIfWeCanSwipe(QDateTime& date, bool rightGesture);
       
    71 	    /**
       
    72 	     * removeActivity  removes the current view from the  activity
       
    73 	     * 
       
    74 	     */
       
    75 	    bool removeActivity();
    70 	    
    76 	    
    71 	signals:
    77 	signals:
    72 			void closeDialogs();
    78 			void closeDialogs();
    73 
    79 
    74 	protected slots:
    80 	protected slots:
    86 	    void saveActivity();
    92 	    void saveActivity();
    87      private:
    93      private:
    88 	void refreshDatePicker();
    94 	void refreshDatePicker();
    89 	
    95 	
    90     protected:
    96     protected:
    91     
    97         AfActivityStorage *mActivityStorage;
    92         MCalenServices	&mServices; // not owned.
    98         MCalenServices	&mServices; // not owned.
    93         int             mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenAgendaView
    99         int             mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenAgendaView
    94         QVariantHash    mScreenShotMetadata; // Screenshot
   100         QVariantHash    mScreenShotMetadata; // Screenshot
    95         bool mEntriesInDataBase;
   101         bool mEntriesInDataBase;
    96     private:
   102     private: