diff -r f979ecb2b13e -r c198609911f9 calendarui/agendaeventviewer/inc/agendaeventview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/agendaeventviewer/inc/agendaeventview.h Fri Apr 16 14:57:40 2010 +0300 @@ -0,0 +1,116 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of the class AgendaEventView +* +*/ + +#ifndef AGENDAEVENTVIEW_H +#define AGENDAEVENTVIEW_H + +// System includes +#include +#include +#include + +// User includes. +#include +#include "agendaeventviewer.h" + +// Forward declarations +class QGraphicsLinearLayout; +class QTranslator; +class HbView; +class HbAction; +class HbMainWindow; +class AgendaEventViewerItem; +class AgendaEventViewerPrivate; +class AgendaEventViewerDocLoader; +class NotesEditor; +class CalenEditor; + +class AgendaEventView: public QObject +{ + Q_OBJECT + +public: + AgendaEventView( + AgendaEventViewerPrivate *owner, QObject *parent=0); + virtual ~AgendaEventView(); + +private: + void execute(AgendaEntry entry, AgendaEventViewer::Actions action); + void addViewerData(); + void addMenuItem(); + void addToolBarItem(AgendaEventViewer::Actions action); + void addGroupBoxData(); + void addSubjectAndPriorityData(); + void addDateTimeData(); + void addLocationData(); + void addReminderData(); + void addCompletedTodoData(); + void addRepeatData(); + void addDescriptionData(); + void getPriorityIcon(int priority, QString& priorityIcon); + QString repeatRule() const; + QString alarmTimeText() const; + void removeWidget(); + void updateCompletedReminderData(); + void removeAllWidgets(); + void addAllWidgets(); + void showDeleteOccurencePopup(); + int showDeleteConfirmationQuery(); + +private slots: + void markTodoStatus(); + void edit(); + void deleteAgendaEntry(); + void saveAgendaEntry(); + void close(); + void handleEntryUpdation(ulong id); + void handleEntryDeletion(ulong id); + void handleNoteEditorClosed(bool status); + void handleCalendarEditorClosed(); + void handleDeleteOccurence(int index); + +private: + + HbView *mViewer; + QPointer mSubjectWidget; + QPointer mDateTimeWidget; + QPointer mLocationWidget; + QPointer mReminderWidget; + QPointer mRepeatWidget; + QPointer mDescriptionWidget; + + QPointer mMarkTodoAction; + + AgendaEventViewerPrivate *mOwner; + AgendaEventViewerDocLoader *mDocLoader; + AgendaEntry mOriginalAgendaEntry; + AgendaEntry mAgendaEntry; + NotesEditor *mNoteEditor; + CalenEditor *mCalenEditor; + QGraphicsLinearLayout *mLinearLayout; + + QTranslator *mTranslator; + bool mReminderWidgetAdded; + HbAction *mBackAction; + HbMainWindow* mMainWindow; + +private: + friend class AgendaEventViewerPrivate; +}; +#endif // AGENDAEVENTVIEW_H + +// End of file