equal
deleted
inserted
replaced
|
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 * |
|
16 */ |
|
17 |
|
18 #ifndef UNI_EDITOR_LOADER_H |
|
19 #define UNI_EDITOR_LOADER_H |
|
20 |
|
21 #include <QMap> |
|
22 #include <QList> |
|
23 #include <QObject> |
|
24 #include "convergedmessage.h" |
|
25 |
|
26 //Forward declarations |
|
27 class QPluginLoader; |
|
28 class UniEditorPluginInterface; |
|
29 |
|
30 #ifdef BUILD_DLL_EDITOR_PLUGIN |
|
31 #define UNI_EDITOR_LOADER_EXPORT Q_DECL_EXPORT |
|
32 #else |
|
33 #define UNI_EDITOR_LOADER_EXPORT Q_DECL_IMPORT |
|
34 #endif |
|
35 |
|
36 /** |
|
37 * Loads all the UniEditor plugins. |
|
38 */ |
|
39 class UNI_EDITOR_LOADER_EXPORT UniEditorPluginLoader : public QObject |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Constructor. |
|
44 */ |
|
45 UniEditorPluginLoader(QObject* parent=0); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~UniEditorPluginLoader(); |
|
51 |
|
52 /** |
|
53 * Gets the UniEditor's intended plugin. |
|
54 * @param messageType |
|
55 */ |
|
56 UniEditorPluginInterface* getUniEditorPlugin(ConvergedMessage::MessageType messageType); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Keep a list of all the pluginloaders used |
|
61 */ |
|
62 QList<QPluginLoader* > mPluginLoaderList; |
|
63 }; |
|
64 |
|
65 #endif //UNI_EDITOR_LOADER_H |