calendarui/agendaeventviewer/inc/agendaeventview.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    27 #include <agendaentry.h>
    27 #include <agendaentry.h>
    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 QTimer;
       
    33 class QPluginLoader;
    33 class HbView;
    34 class HbView;
    34 class HbAction;
    35 class HbAction;
    35 class HbLabel;
    36 class HbLabel;
    36 class HbMainWindow;
    37 class HbMainWindow;
       
    38 class HbTranslator;
       
    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
    69 	void removeWidget();
    71 	void removeWidget();
    70 	void updateCompletedReminderData();
    72 	void updateCompletedReminderData();
    71 	void removeAllWidgets();
    73 	void removeAllWidgets();
    72 	void addAllWidgets();
    74 	void addAllWidgets();
    73 	void showDeleteOccurencePopup();
    75 	void showDeleteOccurencePopup();
    74 	int showDeleteConfirmationQuery();
    76 	void showDeleteConfirmationQuery();
    75 
    77 	void getSubjectIcon(AgendaEntry::Type type, QString &subjectIcon);
       
    78     void getProgressIndicatorstatus(QString &progressIcon);
    76 private slots:
    79 private slots:
    77 	void markTodoStatus();
    80 	void markTodoStatus();
    78 	void edit();
    81 	void edit();
    79 	void deleteAgendaEntry();
    82 	void deleteAgendaEntry();
    80 	void saveAgendaEntry();
    83 	void saveAgendaEntry();
    82 	void handleEntryUpdation(ulong id);
    85 	void handleEntryUpdation(ulong id);
    83 	void handleEntryDeletion(ulong id);
    86 	void handleEntryDeletion(ulong id);
    84 	void handleNoteEditorClosed(bool status);
    87 	void handleNoteEditorClosed(bool status);
    85 	void handleCalendarEditorClosed();
    88 	void handleCalendarEditorClosed();
    86 	void handleDeleteOccurence(int index);
    89 	void handleDeleteOccurence(int index);
       
    90 	void handleDeleteAction();
       
    91 	void updateProgressIndicator();
       
    92 	void receiveMapTileStatus(int entryid,int addressType, int status); 
       
    93 	void changedOrientation(Qt::Orientation orientation);
    87 
    94 
    88 private:
    95 private:
    89 	
    96 	HbMainWindow* mMainWindow;
    90 	HbView *mViewer;
    97 	HbView *mViewer;
    91 	QPointer<AgendaEventViewerItem> mSubjectWidget;
    98 	QPointer<AgendaEventViewerItem> mSubjectWidget;
    92 	QPointer<AgendaEventViewerItem> mDateTimeWidget;
    99 	QPointer<AgendaEventViewerItem> mDateTimeWidget;
    93 	QPointer<AgendaEventViewerItem> mLocationWidget;
   100 	QPointer<AgendaEventViewerItem> mLocationWidget;
    94 	HbLabel                        *mMaptileLabel ;
   101 	HbLabel                        *mMaptileLabel ;
   100 
   107 
   101 	AgendaEventViewerPrivate *mOwner;
   108 	AgendaEventViewerPrivate *mOwner;
   102 	AgendaEventViewerDocLoader *mDocLoader;
   109 	AgendaEventViewerDocLoader *mDocLoader;
   103 	AgendaEntry mOriginalAgendaEntry;
   110 	AgendaEntry mOriginalAgendaEntry;
   104 	AgendaEntry mAgendaEntry;
   111 	AgendaEntry mAgendaEntry;
   105 	NotesEditor *mNoteEditor;
   112 	QPointer<QPluginLoader> mNotesEditorPluginLoader;
   106 	CalenEditor *mCalenEditor;
   113 	CalenEditor *mCalenEditor;
   107 	QGraphicsLinearLayout *mLinearLayout;
   114 	QGraphicsLinearLayout *mLinearLayout;
   108 	
   115 
   109 	QTranslator *mTranslator;
   116 	HbTranslator *mTranslator;
   110 	bool mReminderWidgetAdded;
   117 	bool mReminderWidgetAdded;
   111 	HbAction *mBackAction;
   118 	HbAction *mBackAction;
   112 	HbMainWindow* mMainWindow;
   119 	
   113 	bool mLocationFeatureEnabled;
   120 	bool mLocationFeatureEnabled;
   114     QString mMaptilePath;
   121 	QString mMaptilePath;
       
   122     MapTileService *mMaptileService;
       
   123     QTimer *mProgressTimer;
       
   124     int     mProgressIconCount;  
       
   125     bool    mMaptileStatusReceived;
       
   126     int     mMaptileStatus; 
       
   127 	bool mNotesPluginLoaded;
   115 
   128 
   116 private:
   129 private:
   117 	friend class AgendaEventViewerPrivate;
   130 	friend class AgendaEventViewerPrivate;
   118 };
   131 };
   119 #endif // AGENDAEVENTVIEW_H
   132 #endif // AGENDAEVENTVIEW_H