2019-09-23 18:37:17 +03:00
|
|
|
/*
|
2019-12-08 13:57:20 +03:00
|
|
|
* Copyright (C) 2018-2020 QuasarApp.
|
2019-09-23 18:37:17 +03:00
|
|
|
* Distributed under the lgplv3 software license, see the accompanying
|
|
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
|
|
* of this license document, but changing it is not allowed.
|
|
|
|
*/
|
|
|
|
|
2019-03-26 22:12:20 +03:00
|
|
|
#ifndef QMLCREATOR_H
|
|
|
|
#define QMLCREATOR_H
|
|
|
|
|
|
|
|
#include <QMap>
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QmlCreator
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
QString path;
|
|
|
|
QStringList copyedQml;
|
|
|
|
|
|
|
|
QMap<QString, QStringList> qmlImports;
|
|
|
|
void createQml(const QString& resLib, const QStringList& imports);
|
|
|
|
|
|
|
|
void initQml();
|
|
|
|
public:
|
|
|
|
QmlCreator(const QString &path);
|
|
|
|
~QmlCreator();
|
|
|
|
QMap<QString, QStringList> getQmlImports() const;
|
|
|
|
QStringList getCopyedQml() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QMLCREATOR_H
|