]>
vaikene.ee Git - evaf/blob - SdiWindow/factory.cpp
2 * @file SdiWindow/factory.cpp
3 * @brief SDI module's factory class
6 * Copyright (c) 2011-2019 Enar Vaikene
8 * This file is part of the eVaf C++ cross-platform application development framework.
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.
16 * Alternatively, this file may be used in accordance with the Commercial License
17 * Agreement provided with the Software.
21 #include "sdiwindow.h"
23 #include <Common/iLogger>
27 using namespace eVaf::SdiWindow
;
29 VER_EXPORT_VERSION_INFO()
32 //-------------------------------------------------------------------
35 : Plugins::iPluginFactory()
37 setObjectName(QString("%1-Factory").arg(VER_MODULE_NAME_STR
));
39 EVAF_INFO("%s created", qPrintable(objectName()));
46 EVAF_INFO("%s destroyed", qPrintable(objectName()));
49 QObject
* Factory::create(QString
const & name
)
54 mPlugin
.reset(new Internal::SdiWindowPlugin
);
55 return mPlugin
.data();