]> vaikene.ee Git - evaf/blob - src/plugins/LogView/factory.h
4d36f9147fd8e7df4739f77a6a4b510714bb3e27
[evaf] / src / plugins / LogView / factory.h
1 /**
2 * @file LogView/factory.h
3 * @brief LogView module's factory class
4 * @author Enar Vaikene
5 *
6 * Copyright (c) 2011 Enar Vaikene
7 *
8 * This file is part of the eVaf C++ cross-platform application development framework.
9 *
10 * This file can be used under the terms of the GNU General Public License
11 * version 3.0 as published by the Free Software Foundation and appearing in
12 * the file LICENSE included in the packaging of this file. Please review the
13 * the following information to ensure the GNU General Public License version
14 * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
15 *
16 * Alternatively, this file may be used in accordance with the Commercial License
17 * Agreement provided with the Software.
18 */
19
20 #ifndef __LOGVIEW_FACTORY_H
21 # define __LOGVIEW_FACTORY_H
22
23 #include <Plugins/iPluginFactory>
24
25 namespace eVaf {
26 namespace LogView {
27 namespace Internal {
28 class Module;
29 } // namespace eVaf::LogView::Internal
30
31
32 /**
33 * Plugin factory class for the module
34 */
35 class Factory : public Plugins::iPluginFactory
36 {
37 Q_OBJECT
38 Q_INTERFACES(eVaf::Plugins::iPluginFactory)
39
40 public:
41
42 Factory();
43
44 virtual ~Factory();
45
46 virtual QObject * create(QString const & name);
47
48
49 private: // Members
50
51 Internal::Module * mPlugin;
52
53 };
54
55 } // namespace eVaf::LogView
56 } // namespace eVaf
57
58 #endif // factory.h