equal
deleted
inserted
replaced
17 |
17 |
18 #ifndef CALENDAYVIEWWIDGET_H |
18 #ifndef CALENDAYVIEWWIDGET_H |
19 #define CALENDAYVIEWWIDGET_H |
19 #define CALENDAYVIEWWIDGET_H |
20 |
20 |
21 // System includes |
21 // System includes |
|
22 #include <QGraphicsLinearLayout> |
22 #include <QDateTime> |
23 #include <QDateTime> |
23 #include <hbwidget.h> |
24 #include <hbwidget.h> |
24 |
25 |
25 // User includes |
26 // User includes |
26 |
27 |
30 class HbAbstractViewItem; |
31 class HbAbstractViewItem; |
31 class HbGroupBox; |
32 class HbGroupBox; |
32 class HbListView; |
33 class HbListView; |
33 class HbLabel; |
34 class HbLabel; |
34 class HbDateTimePicker; |
35 class HbDateTimePicker; |
|
36 class XQSettingsManager; |
35 class MCalenServices; |
37 class MCalenServices; |
36 class CalenDayView; |
38 class CalenDayView; |
37 class AgendaEntry; |
39 class AgendaEntry; |
38 class CalenDocLoader; |
40 class CalenDocLoader; |
39 class CalenEventListViewItem; |
41 class CalenEventListViewItem; |
54 /** |
56 /** |
55 * @brief Constructor |
57 * @brief Constructor |
56 * @param services The reference to the MCalenServices object |
58 * @param services The reference to the MCalenServices object |
57 * @param docLoader The document loader object |
59 * @param docLoader The document loader object |
58 */ |
60 */ |
59 Q_DECL_EXPORT CalenDayViewWidget(MCalenServices &services, |
61 IMPORT_C CalenDayViewWidget(MCalenServices &services, |
60 CalenDocLoader *docLoader); |
62 CalenDocLoader *docLoader); |
61 |
63 |
62 /** |
64 /** |
63 * @brief Default C++ destructor |
65 * @brief Default C++ destructor |
64 */ |
66 */ |
65 Q_DECL_EXPORT ~CalenDayViewWidget(); |
67 IMPORT_C ~CalenDayViewWidget(); |
66 |
68 |
67 /** |
69 /** |
68 * @brief Initializes the widget to show all the events/to-do's |
70 * @brief Initializes the widget to show all the events/to-do's |
69 * for the selected day |
71 * for the selected day |
70 * @param view Pointer to the view to which this is the content |
72 * @param view Pointer to the view to which this is the content |
149 * @brief Returns the index in the list to which scrolling must |
151 * @brief Returns the index in the list to which scrolling must |
150 * happen. For ex: After creating a new event, the list must scroll |
152 * happen. For ex: After creating a new event, the list must scroll |
151 * to the newly created event |
153 * to the newly created event |
152 */ |
154 */ |
153 int getIndexToScrollTo(); |
155 int getIndexToScrollTo(); |
|
156 |
|
157 /** |
|
158 * @brief To Show and hide regional plugin label depends upon settings |
|
159 */ |
|
160 |
|
161 void showHideRegionalInformation(); |
154 |
162 |
155 private slots: |
163 private slots: |
156 |
164 |
157 /** |
165 /** |
158 * @brief Opens the editor to create a new entry |
166 * @brief Opens the editor to create a new entry |
209 * @brief Callback function for navigating to today's agenda |
217 * @brief Callback function for navigating to today's agenda |
210 * This option must be available only if the view is showing |
218 * This option must be available only if the view is showing |
211 * events for some day other than the current day |
219 * events for some day other than the current day |
212 */ |
220 */ |
213 void goToToday(); |
221 void goToToday(); |
214 |
|
215 /** |
|
216 * @brief Callback function for deleting multiple entries |
|
217 */ |
|
218 void deleteEntries(); |
|
219 |
222 |
220 private: |
223 private: |
221 /** |
224 /** |
222 * @var mDate |
225 * @var mDate |
223 * @brief Stores the date for which this widget is being shown |
226 * @brief Stores the date for which this widget is being shown |
297 /** |
300 /** |
298 * @var mDatePicker |
301 * @var mDatePicker |
299 * @brief The date picker component |
302 * @brief The date picker component |
300 */ |
303 */ |
301 HbDateTimePicker *mDatePicker; |
304 HbDateTimePicker *mDatePicker; |
|
305 |
|
306 /** |
|
307 * @var mRegionalPluginLayout |
|
308 * @brief Regional Plugin layout pointer |
|
309 */ |
|
310 QGraphicsLinearLayout* mRegionalPluginLayout; |
|
311 |
|
312 /** |
|
313 * @var mRegionalInfoGroupBox |
|
314 * @brief Regional Plugin Info groupbox |
|
315 */ |
|
316 HbGroupBox *mRegionalInfoGroupBox; |
|
317 |
|
318 /** |
|
319 * @var mSettingsManager |
|
320 * @brief Setting Manager pointer |
|
321 */ |
|
322 |
|
323 XQSettingsManager *mSettingsManager; |
302 }; |
324 }; |
303 |
325 |
304 #endif //CALENDAYVIEWWIDGET_H |
326 #endif //CALENDAYVIEWWIDGET_H |
305 |
327 |
306 // End of file --Don't remove this. |
328 // End of file --Don't remove this. |