64 virtual ~CalenMonthView(); |
64 virtual ~CalenMonthView(); |
65 |
65 |
66 public: // From CCalenView |
66 public: // From CCalenView |
67 virtual void doPopulation(); |
67 virtual void doPopulation(); |
68 void setupView(CalenDocLoader *docLoader); |
68 void setupView(CalenDocLoader *docLoader); |
|
69 void doLazyLoading(); |
69 void handleGridItemActivated(); |
70 void handleGridItemActivated(); |
70 void handleGridItemLongPressed(int index, QPointF &coords); |
|
71 void setContextForActiveDay(int index); |
71 void setContextForActiveDay(int index); |
72 QDateTime getCurrentDay(); |
72 QDateTime getCurrentDay(); |
73 QDateTime getActiveDay(); |
73 QDateTime getActiveDay(); |
74 int rowsInPrevMonth(); |
74 int rowsInPrevMonth(); |
75 int rowsInFutMonth(); |
75 int rowsInFutMonth(); |
82 void updateModelWithPrevMonth(); |
82 void updateModelWithPrevMonth(); |
83 void updateModelWithFutureMonth(); |
83 void updateModelWithFutureMonth(); |
84 void populatePreviewPane(QDateTime &dateTime); |
84 void populatePreviewPane(QDateTime &dateTime); |
85 void handlePreviewPaneGesture(bool rightGesture); |
85 void handlePreviewPaneGesture(bool rightGesture); |
86 QDateTime firstDayOfGrid(); |
86 QDateTime firstDayOfGrid(); |
|
87 void fetchEntriesAndUpdateModel(); |
|
88 void launchDayView(); |
87 |
89 |
88 private: |
90 private: |
89 void createGrid(); |
91 void createGrid(); |
90 void populateWithInstanceView(); |
92 void populateWithInstanceView(); |
91 void completePopulation(); |
93 void completePopulation(); |
92 void prepareForPopulation(); |
94 void prepareForPopulation(); |
93 QDateTime dateFromContext( const MCalenContext &context ); |
95 QDateTime dateFromContext( const MCalenContext &context ); |
94 void setActiveDay(QDateTime day); |
96 void setActiveDay(QDateTime day); |
95 void setDate(); |
97 void setDate(); |
96 void getInstanceList(QList<AgendaEntry> &list, |
98 void getInstanceList(QList<QDate> &list, |
97 QDateTime rangeStart, QDateTime rangeEnd); |
99 QDateTime rangeStart, QDateTime rangeEnd); |
98 void handleChangeOrientation(); |
100 void handleChangeOrientation(); |
99 void setDateToLabel(); |
101 void setDateToLabel(); |
100 void updateWeekNumGridModel(); |
102 void updateWeekNumGridModel(); |
101 void addWeekNumbers(); |
103 void addWeekNumbers(); |
102 void removeWeekNumbers(); |
104 void removeWeekNumbers(); |
103 void addBackgroundFrame(); |
105 void addBackgroundFrame(); |
104 void refreshViewOnGoToDate(); |
106 void refreshViewOnGoToDate(); |
105 void showHideRegionalInformation(); |
107 void showHideRegionalInformation(); |
106 void onContextChanged(); |
108 void onContextChanged(); |
|
109 void updateDayLabel(); |
107 |
110 |
108 private slots: |
111 private slots: |
109 void createEditor(); |
112 void createEditor(); |
110 void goToToday(); |
113 void goToToday(); |
111 void updateMonthDataArrayWithActiveDates(); |
114 void updateMonthDataArrayWithActiveDates(); |
112 void handleLeftEffectCompleted(const HbEffect::EffectStatus &status); |
115 void handleLeftEffectCompleted(const HbEffect::EffectStatus &status); |
113 void handleRightEffectCompleted(const HbEffect::EffectStatus &status); |
116 void handleRightEffectCompleted(const HbEffect::EffectStatus &status); |
114 void addRemoveActionsInMenu(); |
117 void addRemoveActionsInMenu(); |
115 |
|
116 public slots: |
|
117 void launchDayView(); |
|
118 void changeOrientation(Qt::Orientation orientation); |
118 void changeOrientation(Qt::Orientation orientation); |
119 |
119 |
120 private: |
120 private: |
121 bool mIsFirstTimeLoad; |
121 bool mIsFirstTimeLoad; |
122 CalenDocLoader *mDocLoader; |
122 CalenDocLoader *mDocLoader; |
171 HbAction *mGoToTodayAction; |
171 HbAction *mGoToTodayAction; |
172 CalenPluginLabel *mPrevRegionalInfo; |
172 CalenPluginLabel *mPrevRegionalInfo; |
173 CalenPluginLabel *mCurrRegionalInfo; |
173 CalenPluginLabel *mCurrRegionalInfo; |
174 CalenPluginLabel *mNextRegionalInfo; |
174 CalenPluginLabel *mNextRegionalInfo; |
175 HbMenu *mDeleteSubMenu; |
175 HbMenu *mDeleteSubMenu; |
|
176 QColor mWeekDaysColor; |
|
177 bool mIsAboutToQuitEventConnected; // bool to check if month view is registered to get aboutToQuit signals |
176 }; |
178 }; |
177 |
179 |
178 #endif //CALENMONTHVIEW_H |
180 #endif //CALENMONTHVIEW_H |
179 |
181 |
180 // End of file --Don't remove this. |
182 // End of file --Don't remove this. |