summaryrefslogtreecommitdiffstats
path: root/src/shared/winutils/qmlutils.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-03-21 10:34:42 +0100
committerSami Nurmenniemi <sami.nurmenniemi@qt.io>2018-04-06 13:21:15 +0000
commite02d2e9061a2fd884590c0ebfba6406dbf17cabe (patch)
tree6381a3fe6b2df2c3371396306081e70769070d16 /src/shared/winutils/qmlutils.h
parenta7f65a15e2f0ada1b5bf56865b72451fe2857e73 (diff)
Move windows utilities into shared folder
An upcoming patch for winrtrunner will need to run an external executable. The utilities are moved to the shared folder to avoid code duplication Change-Id: I2be575432626ef796a6ebc95e55ac30ab3631b61 Reviewed-by: Andre de la Rocha <andre.rocha@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/shared/winutils/qmlutils.h')
-rw-r--r--src/shared/winutils/qmlutils.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/shared/winutils/qmlutils.h b/src/shared/winutils/qmlutils.h
new file mode 100644
index 000000000..895c7f1de
--- /dev/null
+++ b/src/shared/winutils/qmlutils.h
@@ -0,0 +1,66 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of the tools applications of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:GPL-EXCEPT$
+** 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 General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** 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-3.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QMLUTILS_H
+#define QMLUTILS_H
+
+#include "utils.h"
+
+#include <QStringList>
+
+QT_BEGIN_NAMESPACE
+
+QString findQmlDirectory(int platform, const QString &startDirectoryName);
+
+struct QmlImportScanResult {
+ struct Module {
+ QString installPath(const QString &root) const;
+
+ QString name;
+ QString className;
+ QString sourcePath;
+ QString relativePath;
+ };
+
+ QmlImportScanResult() : ok(false) {}
+ void append(const QmlImportScanResult &other);
+
+ bool ok;
+ QList<Module> modules;
+ QStringList plugins;
+};
+
+bool operator==(const QmlImportScanResult::Module &m1, const QmlImportScanResult::Module &m2);
+
+QmlImportScanResult runQmlImportScanner(const QString &directory, const QString &qmlImportPath,
+ bool usesWidgets, int platform, DebugMatchMode debugMatchMode,
+ QString *errorMessage);
+
+QT_END_NAMESPACE
+
+#endif // QMLUTILS_H