28 #include "agendaeventviewer.h" |
28 #include "agendaeventviewer.h" |
29 |
29 |
30 // Forward declarations |
30 // Forward declarations |
31 class QGraphicsLinearLayout; |
31 class QGraphicsLinearLayout; |
32 class QTranslator; |
32 class QTranslator; |
|
33 class QTimer; |
|
34 class QPluginLoader; |
33 class HbView; |
35 class HbView; |
34 class HbAction; |
36 class HbAction; |
35 class HbLabel; |
37 class HbLabel; |
36 class HbMainWindow; |
38 class HbMainWindow; |
|
39 class MapTileService; |
37 class AgendaEventViewerItem; |
40 class AgendaEventViewerItem; |
38 class AgendaEventViewerPrivate; |
41 class AgendaEventViewerPrivate; |
39 class AgendaEventViewerDocLoader; |
42 class AgendaEventViewerDocLoader; |
40 class NotesEditor; |
|
41 class CalenEditor; |
43 class CalenEditor; |
42 |
44 |
43 class AgendaEventView: public QObject |
45 class AgendaEventView: public QObject |
44 { |
46 { |
45 Q_OBJECT |
47 Q_OBJECT |
71 void removeAllWidgets(); |
73 void removeAllWidgets(); |
72 void addAllWidgets(); |
74 void addAllWidgets(); |
73 void showDeleteOccurencePopup(); |
75 void showDeleteOccurencePopup(); |
74 void showDeleteConfirmationQuery(); |
76 void showDeleteConfirmationQuery(); |
75 void getSubjectIcon(AgendaEntry::Type type, QString &subjectIcon); |
77 void getSubjectIcon(AgendaEntry::Type type, QString &subjectIcon); |
76 |
78 void getProgressIndicatorstatus(QString &progressIcon); |
77 private slots: |
79 private slots: |
78 void markTodoStatus(); |
80 void markTodoStatus(); |
79 void edit(); |
81 void edit(); |
80 void deleteAgendaEntry(); |
82 void deleteAgendaEntry(); |
81 void saveAgendaEntry(); |
83 void saveAgendaEntry(); |
84 void handleEntryDeletion(ulong id); |
86 void handleEntryDeletion(ulong id); |
85 void handleNoteEditorClosed(bool status); |
87 void handleNoteEditorClosed(bool status); |
86 void handleCalendarEditorClosed(); |
88 void handleCalendarEditorClosed(); |
87 void handleDeleteOccurence(int index); |
89 void handleDeleteOccurence(int index); |
88 void handleDeleteAction(); |
90 void handleDeleteAction(); |
|
91 void updateProgressIndicator(); |
|
92 void receiveMapTileStatus(int entryid,int addressType, int status); |
89 private: |
93 private: |
90 |
94 |
91 HbView *mViewer; |
95 HbView *mViewer; |
92 QPointer<AgendaEventViewerItem> mSubjectWidget; |
96 QPointer<AgendaEventViewerItem> mSubjectWidget; |
93 QPointer<AgendaEventViewerItem> mDateTimeWidget; |
97 QPointer<AgendaEventViewerItem> mDateTimeWidget; |
94 QPointer<AgendaEventViewerItem> mLocationWidget; |
98 QPointer<AgendaEventViewerItem> mLocationWidget; |
95 HbLabel *mMaptileLabel ; |
99 HbLabel *mMaptileLabel ; |
101 |
105 |
102 AgendaEventViewerPrivate *mOwner; |
106 AgendaEventViewerPrivate *mOwner; |
103 AgendaEventViewerDocLoader *mDocLoader; |
107 AgendaEventViewerDocLoader *mDocLoader; |
104 AgendaEntry mOriginalAgendaEntry; |
108 AgendaEntry mOriginalAgendaEntry; |
105 AgendaEntry mAgendaEntry; |
109 AgendaEntry mAgendaEntry; |
106 NotesEditor *mNoteEditor; |
110 QPointer<QPluginLoader> mNotesEditorPluginLoader; |
107 CalenEditor *mCalenEditor; |
111 CalenEditor *mCalenEditor; |
108 QGraphicsLinearLayout *mLinearLayout; |
112 QGraphicsLinearLayout *mLinearLayout; |
109 |
113 |
110 QTranslator *mTranslator; |
114 QTranslator *mTranslator; |
111 bool mReminderWidgetAdded; |
115 bool mReminderWidgetAdded; |
112 HbAction *mBackAction; |
116 HbAction *mBackAction; |
113 HbMainWindow* mMainWindow; |
117 HbMainWindow* mMainWindow; |
114 bool mLocationFeatureEnabled; |
118 bool mLocationFeatureEnabled; |
115 QString mMaptilePath; |
119 QString mMaptilePath; |
|
120 MapTileService *mMaptileService; |
|
121 QTimer *mProgressTimer; |
|
122 int mProgressIconCount; |
|
123 bool mMaptileStatusReceived; |
|
124 int mMaptileStatus; |
|
125 bool mNotesPluginLoaded; |
116 |
126 |
117 private: |
127 private: |
118 friend class AgendaEventViewerPrivate; |
128 friend class AgendaEventViewerPrivate; |
119 }; |
129 }; |
120 #endif // AGENDAEVENTVIEW_H |
130 #endif // AGENDAEVENTVIEW_H |