File indexing completed on 2024-05-19 04:41:20
0001 /* 0002 SPDX-FileCopyrightText: 2019 Daniel Mensinger <daniel@mensinger-ka.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QString> 0010 #include <memory> 0011 0012 class MesonProjectInfo; 0013 class QJsonObject; 0014 0015 using MesonProjectInfoPtr = std::shared_ptr<MesonProjectInfo>; 0016 0017 class MesonProjectInfo 0018 { 0019 public: 0020 explicit MesonProjectInfo(const QJsonObject& json); 0021 virtual ~MesonProjectInfo(); 0022 0023 void fromJSON(const QJsonObject& json); 0024 0025 QString name() const; 0026 QString version() const; 0027 0028 private: 0029 QString m_name; 0030 QString m_version; 0031 };