]> vaikene.ee Git - evaf/blob - src/plugins/Test/test.h
Added Qt plugin macros to Plugins::iPlugin and Plugins::iPluginFactory for proper...
[evaf] / src / plugins / Test / test.h
1 /**
2 * @file plugins/Test/test.h
3 * @brief eVaf test plugin
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 __TEST_TEST_H
21 #define __TEST_TEST_H
22
23 #include <Plugins/iPlugin>
24
25 #include <QObject>
26 #include <QString>
27
28 namespace eVaf {
29
30 namespace Test {
31 namespace Internal {
32
33 /**
34 * Test module
35 */
36 class TestPlugin : public Plugins::iPlugin
37 {
38 Q_OBJECT
39 Q_INTERFACES(eVaf::Plugins::iPlugin)
40
41 public:
42
43 TestPlugin();
44
45 virtual ~TestPlugin();
46
47 virtual bool init(QString const & args);
48
49 virtual void done();
50
51 virtual bool isReady() const { return mReady; }
52
53
54 private: // Members
55
56 bool mReady;
57
58 };
59
60 } // namespace eVaf::Test::Internal
61 } // namespace eVaf::Test
62 } // namespace eVaf
63
64 #endif // test.h