|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header file for EventViewer Plugin Interface |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef EVENTVIEWERPLUGININTERFACE_H |
|
19 #define EVENTVIEWERPLUGININTERFACE_H |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include <QtPlugin> |
|
24 #include <qglobal.h> |
|
25 |
|
26 // Forward declarations |
|
27 class QFile; |
|
28 class QString; |
|
29 class AgendaUtil; |
|
30 class AgendaEntry; |
|
31 |
|
32 #define CALENDAR_EVENTVIEWER_PLUGIN_PATH QString("z:/resource/qt/plugins/calendar") |
|
33 #define CALENDAR_EVENTVIEWER_PLUGIN_NAME QString("agendaeventviewerplugin.qtplugin") |
|
34 |
|
35 class EventViewerPluginInterface : public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 enum Actions { |
|
41 ActionEdit = 0x01, |
|
42 ActionDelete = 0x02, |
|
43 ActionEditDelete = ActionEdit | ActionDelete, |
|
44 ActionSave = 0x04 |
|
45 }; |
|
46 virtual ~EventViewerPluginInterface() {} |
|
47 |
|
48 |
|
49 |
|
50 public: |
|
51 virtual void viewEvent(const ulong id, |
|
52 Actions action, |
|
53 AgendaUtil *agendaUtil) = 0; |
|
54 virtual void viewEvent(const QFile &fileHandle, |
|
55 Actions action, |
|
56 AgendaUtil *agendaUtil) = 0; |
|
57 virtual void viewEvent(AgendaEntry entry, |
|
58 Actions action, |
|
59 AgendaUtil *agendaUtil) = 0; |
|
60 |
|
61 signals: |
|
62 void viewingCompleted(); |
|
63 void editingStarted(); |
|
64 void editingCompleted(); |
|
65 void deletingStarted(); |
|
66 void deletingCompleted(); |
|
67 |
|
68 }; |
|
69 |
|
70 Q_DECLARE_INTERFACE(EventViewerPluginInterface, |
|
71 "org.nokia.calendar.EventViewerPluginInterface/1.0") |
|
72 |
|
73 #endif // EVENTVIEWERPLUGININTERFACE_H |
|
74 |
|
75 // End of file |