2019-03-26 22:12:20 +03:00
|
|
|
#ifndef QML_H
|
|
|
|
#define QML_H
|
|
|
|
|
2019-03-28 13:16:00 +03:00
|
|
|
#include <QSet>
|
2019-03-26 22:12:20 +03:00
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
struct qmlDep {
|
|
|
|
QStringList qmlFiles;
|
|
|
|
QStringList qmlcFiles;
|
|
|
|
QStringList libCFiles;
|
|
|
|
};
|
|
|
|
|
|
|
|
class QML
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
QStringList extractImportsFromFile(const QString &filepath);
|
|
|
|
bool extractImportsFromDir(const QString &path, qmlDep& dep, bool recursive = false);
|
|
|
|
QString getPathFromImport(const QString& import);
|
|
|
|
|
2019-03-28 13:16:00 +03:00
|
|
|
bool scanQmlTree(const QString& qmlTree);
|
|
|
|
|
2019-03-26 22:12:20 +03:00
|
|
|
QString _qmlRoot = "";
|
2019-03-28 13:16:00 +03:00
|
|
|
QSet<QString> secondVersions;
|
2019-03-26 22:12:20 +03:00
|
|
|
|
|
|
|
public:
|
|
|
|
QML(const QString& qmlRoot);
|
|
|
|
|
|
|
|
friend class deploytest;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QML_H
|