]> vaikene.ee Git - evaf/blob - src/plugins/Test/test.cpp
e7fb7192c384f1ebfd2692f1450ae033e50686c5
[evaf] / src / plugins / Test / test.cpp
1 /**
2 * @file plugins/Test/test.cpp
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 #include "test.h"
21 #include "version.h"
22
23 #include <Common/iLogger>
24
25 #include <QtCore>
26
27 using namespace eVaf;
28 using namespace eVaf::Test::Internal;
29
30
31 //-------------------------------------------------------------------
32
33 TestPlugin::TestPlugin()
34 : Plugins::iPlugin()
35 , mReady(false)
36 {
37 setObjectName(QString("%1-TestPlugin").arg(VER_MODULE_NAME_STR));
38
39 EVAF_INFO("%s created", qPrintable(objectName()));
40 }
41
42 TestPlugin::~TestPlugin()
43 {
44 EVAF_INFO("%s destroyed", qPrintable(objectName()));
45 }
46
47 bool TestPlugin::init(QString const & args)
48 {
49 mReady = true;
50
51 EVAF_INFO("%s initialized", qPrintable(objectName()));
52
53 return true;
54 }
55
56 void TestPlugin::done()
57 {
58 mReady = false;
59
60 EVAF_INFO("%s finalized", qPrintable(objectName()));
61 }