X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fplugins%2FTest%2Ftest.cpp;fp=src%2Fplugins%2FTest%2Ftest.cpp;h=e7fb7192c384f1ebfd2692f1450ae033e50686c5;hb=9536caf853c74774aa308854a6c1caaf32435438;hp=0000000000000000000000000000000000000000;hpb=ad3c375c68b46edcb823ff3eb2dc12647da1db19;p=evaf diff --git a/src/plugins/Test/test.cpp b/src/plugins/Test/test.cpp new file mode 100644 index 0000000..e7fb719 --- /dev/null +++ b/src/plugins/Test/test.cpp @@ -0,0 +1,61 @@ +/** + * @file plugins/Test/test.cpp + * @brief eVaf test plugin + * @author Enar Vaikene +* + * Copyright (c) 2011 Enar Vaikene + * + * This file is part of the eVaf C++ cross-platform application development framework. + * + * This file can be used under the terms of the GNU General Public License + * version 3.0 as published by the Free Software Foundation and appearing in + * the file LICENSE included in the packaging of this file. Please review the + * the following information to ensure the GNU General Public License version + * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + * + * Alternatively, this file may be used in accordance with the Commercial License + * Agreement provided with the Software. + */ + +#include "test.h" +#include "version.h" + +#include + +#include + +using namespace eVaf; +using namespace eVaf::Test::Internal; + + +//------------------------------------------------------------------- + +TestPlugin::TestPlugin() + : Plugins::iPlugin() + , mReady(false) +{ + setObjectName(QString("%1-TestPlugin").arg(VER_MODULE_NAME_STR)); + + EVAF_INFO("%s created", qPrintable(objectName())); +} + +TestPlugin::~TestPlugin() +{ + EVAF_INFO("%s destroyed", qPrintable(objectName())); +} + +bool TestPlugin::init(QString const & args) +{ + mReady = true; + + EVAF_INFO("%s initialized", qPrintable(objectName())); + + return true; +} + +void TestPlugin::done() +{ + mReady = false; + + EVAF_INFO("%s finalized", qPrintable(objectName())); +}