calendarui/views/inc/calennativeview.h
changeset 75 7ac58b2aae6f
parent 70 a5ed90760192
child 81 ce92091cbd61
equal deleted inserted replaced
72:27feeedec790 75:7ac58b2aae6f
    24 #else
    24 #else
    25 #define CALENNATIVEVIEW_EXPORT Q_DECL_IMPORT
    25 #define CALENNATIVEVIEW_EXPORT Q_DECL_IMPORT
    26 #endif
    26 #endif
    27 
    27 
    28 //  System includes
    28 //  System includes
       
    29 #include <QObject>
       
    30 #include <QPointer>
    29 #include <hblabel.h>
    31 #include <hblabel.h>
    30 #include <hblistwidget.h>
    32 #include <hblistwidget.h>
    31 #include <hbabstractviewitem.h>
    33 #include <hbabstractviewitem.h>
    32 
    34 
    33 // User includes
    35 // User includes
    62 	    CalenNativeView( MCalenServices& services );
    64 	    CalenNativeView( MCalenServices& services );
    63 	    
    65 	    
    64 	    void HandleNotification( const TCalenNotification notification );
    66 	    void HandleNotification( const TCalenNotification notification );
    65 	    virtual void onLocaleChanged(int reason)=0;
    67 	    virtual void onLocaleChanged(int reason)=0;
    66 	    virtual void onContextChanged() {};
    68 	    virtual void onContextChanged() {};
    67 	
    69 	    virtual bool checkIfWeCanSwipe(QDateTime& date, bool rightGesture);
       
    70 	    
    68 	signals:
    71 	signals:
    69 		void closeDialogs();
    72 			void closeDialogs();
    70 	
    73 
    71 	protected slots:
    74 	protected slots:
    72 	
    75 	
    73         void goToDate();
    76         void goToDate();
    74         void goToSelectedDate();
    77         void goToSelectedDate();
    75         void deleteBeforeDate();
    78         void deleteBeforeDate();
    79 	    /**
    82 	    /**
    80 	     * saveActivity saves the current view as an activity
    83 	     * saveActivity saves the current view as an activity
    81 	     * 
    84 	     * 
    82 	     */
    85 	     */
    83 	    void saveActivity();
    86 	    void saveActivity();
    84 	    
    87      private:
       
    88 	void refreshDatePicker();
       
    89 	
    85     protected:
    90     protected:
    86     
    91     
    87         MCalenServices	&mServices; // not owned.
    92         MCalenServices	&mServices; // not owned.
    88         int             mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenAgendaView
    93         int             mActivityId; // Recent Activity ID, currently it holdes wither of ECalenMonthView or ECalenAgendaView
    89         QVariantHash    mScreenShotMetadata; // Screenshot
    94         QVariantHash    mScreenShotMetadata; // Screenshot
    90         bool mEntriesInDataBase;
    95         bool mEntriesInDataBase;
    91     private:
    96     private:
    92         HbDateTimePicker	*mDatePicker;
    97         QPointer<HbDateTimePicker> mDatePicker;
    93         bool                mIsCapturedScreenShotValid; // to check if the captured screenshot is valid
    98         bool                mIsCapturedScreenShotValid; // to check if the captured screenshot is valid
    94 	};
    99 	};
    95 
   100 
    96 #endif  // CALENNATIVEVIEW_H
   101 #endif  // CALENNATIVEVIEW_H
    97 
   102