summaryrefslogtreecommitdiff
path: root/src/plugins/webassembly/webassemblyqtversion.h
blob: 788f2ab0f93670a99d43a8e9c1a8e98652293435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <qtsupport/qtversionfactory.h>
#include <qtsupport/baseqtversion.h>

namespace WebAssembly {
namespace Internal {

class WebAssemblyQtVersion : public QtSupport::QtVersion
{
public:
    WebAssemblyQtVersion();

    QString description() const override;

    QSet<Utils::Id> targetDeviceTypes() const override;

    bool isValid() const override;
    QString invalidReason() const override;

    static const QVersionNumber &minimumSupportedQtVersion();
    static bool isQtVersionInstalled();
    static bool isUnsupportedQtVersionInstalled();
};

class WebAssemblyQtVersionFactory : public QtSupport::QtVersionFactory
{
public:
    WebAssemblyQtVersionFactory();
};

} // namespace Internal
} // namespace WebAssembly