1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef QRCREADER_H |
5 | #define QRCREADER_H |
6 | |
7 | #include <QtCore/qstring.h> |
8 | #include <QtCore/qstringlist.h> |
9 | |
10 | class ReadQrcResult |
11 | { |
12 | public: |
13 | QStringList files; |
14 | QString errorString; |
15 | qint64 line = 0; |
16 | |
17 | bool hasError() const { return !errorString.isEmpty(); } |
18 | }; |
19 | |
20 | ReadQrcResult readQrcFile(const QString &resourceFile, const QString &content); |
21 | |
22 | bool isSupportedExtension(const QString &ext); |
23 | |
24 | #endif // QRCREADER_H |
25 | |