--- /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 <QObject>
+#include <QPointer>
+#include <HbView>
+
+// User includes.
+#include <agendaentry.h>
+#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<AgendaEventViewerItem> mSubjectWidget;
+ QPointer<AgendaEventViewerItem> mDateTimeWidget;
+ QPointer<AgendaEventViewerItem> mLocationWidget;
+ QPointer<AgendaEventViewerItem> mReminderWidget;
+ QPointer<AgendaEventViewerItem> mRepeatWidget;
+ QPointer<AgendaEventViewerItem> mDescriptionWidget;
+
+ QPointer<HbAction> 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