diff options
author | hjk <hjk@qt.io> | 2019-08-15 08:56:07 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-08-16 06:10:43 +0000 |
commit | 596a54f6454a984566e0a788a12139b1d9f94bd1 (patch) | |
tree | be9bc7dd2642f747ff56199048d6ad922abe4f5f /src/plugins/qtsupport/qtversions.h | |
parent | 7c7201c56c46a893e148e0a3e8c88a2ad7f8823b (diff) |
RemoteLinux: Move EmbeddeLinuxQtVersion to QtSupport
The class uses only one ID from RL at compile time, and after the
move RL does not hard-depend on QtSupport anymore.
Change-Id: I9f8aa6782e45fe998d83ddcc5323c396964bf1fe
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/qtversions.h')
-rw-r--r-- | src/plugins/qtsupport/qtversions.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/plugins/qtsupport/qtversions.h b/src/plugins/qtsupport/qtversions.h new file mode 100644 index 00000000000..2eadda3c415 --- /dev/null +++ b/src/plugins/qtsupport/qtversions.h @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** 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. +** +****************************************************************************/ + +#pragma once + +#include "qtversionfactory.h" +#include "baseqtversion.h" + +namespace QtSupport { + +class QTSUPPORT_EXPORT DesktopQtVersion : public BaseQtVersion +{ +public: + DesktopQtVersion(); + + QStringList warningReason() const override; + + QString description() const override; + + QSet<Core::Id> availableFeatures() const override; + QSet<Core::Id> targetDeviceTypes() const override; + + void fromMap(const QVariantMap &map) override; + + QString qmlsceneCommand() const; + +private: + mutable QString m_qmlsceneCommand; +}; + +namespace Internal { + +class DesktopQtVersionFactory : public QtVersionFactory +{ +public: + DesktopQtVersionFactory(); +}; + +class EmbeddedLinuxQtVersionFactory : public QtSupport::QtVersionFactory +{ +public: + EmbeddedLinuxQtVersionFactory(); +}; + +} // Internal +} // QtSupport |