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: Baget factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BAGETFACTORY_H |
|
19 #define BAGETFACTORY_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include "ibagetprovider.h" |
|
24 #include "bagetmodel_global.h" |
|
25 |
|
26 class QPluginLoader; |
|
27 |
|
28 class BAGETMODEL_EXPORT BagetPluginUnloader : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 BagetPluginUnloader(QPluginLoader *pluginLoader, QObject *parent = 0); |
|
35 ~BagetPluginUnloader(); |
|
36 |
|
37 private: |
|
38 |
|
39 QPluginLoader *mPluginLoader; |
|
40 |
|
41 }; |
|
42 |
|
43 class BagetFactoryPrivate; |
|
44 |
|
45 class BAGETMODEL_EXPORT BagetFactory : public QObject |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 |
|
51 BagetFactory(const QString& pluginDirectory, QObject *parent = 0); |
|
52 virtual ~BagetFactory(); |
|
53 |
|
54 Baget *createBaget(const BagetToken &token); |
|
55 |
|
56 private: |
|
57 |
|
58 Q_DISABLE_COPY(BagetFactory) |
|
59 |
|
60 private: |
|
61 |
|
62 BagetFactoryPrivate *m_d; |
|
63 friend class BagetFactoryPrivate; |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // BAGETFACTORY_H |
|