summaryrefslogtreecommitdiffstats
path: root/src/render/io/qsceneimportplugin_p.h
diff options
context:
space:
mode:
authorOtto Ryynänen <otto.ryynanen@qt.io>2016-09-28 15:13:38 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2016-10-10 04:05:14 +0000
commitd967f59602217923886478140149de8a9cad34ba (patch)
tree3e9912f7de165b5e238adb90b9d90ce1da20fdfd /src/render/io/qsceneimportplugin_p.h
parentec2c6c0f13004bc1bba92f14443228778da287a0 (diff)
Renaming Scene IO classes to scene import classes
The so-called "IO" classes have never done I/O, only import. There is no sense to add also export to those classes as the IF is designed to do only import and there is no code that would be shared between the importer and exporter/saver. For the sanity of the code the naming is changed and we will implement exporter/saver class to be used for storing purposes. Change-Id: I832bef0e7de1f65289a89c6898a475dab7431dc0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/io/qsceneimportplugin_p.h')
-rw-r--r--src/render/io/qsceneimportplugin_p.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/src/render/io/qsceneimportplugin_p.h b/src/render/io/qsceneimportplugin_p.h
new file mode 100644
index 000000000..01ab84060
--- /dev/null
+++ b/src/render/io/qsceneimportplugin_p.h
@@ -0,0 +1,82 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the Qt3D module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or (at your option) the GNU General
+** Public license version 3 or any later version approved by the KDE Free
+** Qt Foundation. The licenses are as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-2.0.html and
+** https://www.gnu.org/licenses/gpl-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QSCENEIMPORTPLUGIN_P_H
+#define QSCENEIMPORTPLUGIN_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists for the convenience
+// of other Qt classes. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtCore/QObject>
+#include <QtCore/QtPlugin>
+#include <QtCore/QFactoryInterface>
+
+#include <Qt3DRender/private/qt3drender_global_p.h>
+
+QT_BEGIN_NAMESPACE
+
+namespace Qt3DRender {
+
+#define QSceneImportFactoryInterface_iid "org.qt-project.Qt3DRender.QSceneImportFactoryInterface 5.7"
+
+class QSceneImporter;
+
+class QT3DRENDERSHARED_PRIVATE_EXPORT QSceneImportPlugin : public QObject
+{
+ Q_OBJECT
+public:
+ explicit QSceneImportPlugin(QObject *parent = nullptr);
+ ~QSceneImportPlugin();
+
+ virtual QSceneImporter *create(const QString &key, const QStringList &paramList);
+};
+
+} // namespace Qt3DRender
+
+QT_END_NAMESPACE
+
+#endif // QSCENEIMPORTPLUGIN_P_H