|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * The header file for NotesEditorPlugin class. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef NOTESEDITORPLUGIN_H |
|
20 #define NOTESEDITORPLUGIN_H |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 #include <QPointer> |
|
25 #include <noteseditorinterface.h> |
|
26 |
|
27 #include "noteseditor.h" |
|
28 |
|
29 // Forward declarations |
|
30 class QFile; |
|
31 class QString; |
|
32 class AgendaUtil; |
|
33 class AgendaEntry; |
|
34 |
|
35 class NotesEditorPlugin: public NotesEditorInterface |
|
36 { |
|
37 Q_OBJECT |
|
38 Q_INTERFACES(NotesEditorInterface) |
|
39 |
|
40 public: |
|
41 NotesEditorPlugin(QObject *parent = 0); |
|
42 ~NotesEditorPlugin(); |
|
43 |
|
44 public: |
|
45 void edit(const QString &string, AgendaUtil *agendaUtil=0); |
|
46 void edit(const QFile &handle, AgendaUtil *agendaUtil=0); |
|
47 void edit(AgendaEntry entry, AgendaUtil *agendaUtil=0); |
|
48 void edit(ulong id, AgendaUtil *agendaUtil=0); |
|
49 void create(CreateType type, AgendaUtil *agendaUtil=0); |
|
50 ulong close(CloseType type, AgendaUtil *agendaUtil=0); |
|
51 |
|
52 private: |
|
53 void createNotesEditor(AgendaUtil *agendaUtil); |
|
54 |
|
55 private slots: |
|
56 void handleEditingCompleted(bool status); |
|
57 |
|
58 private: |
|
59 QPointer<NotesEditor> mNotesEditor; |
|
60 }; |
|
61 |
|
62 #endif //NOTESEDITORPLUGIN_H |
|
63 |
|
64 // End of file --Don't remove this. |