2023-12-16 17:36:57 +01:00
|
|
|
#pragma once
|
2024-11-27 20:44:36 +01:00
|
|
|
|
2023-12-16 17:36:57 +01:00
|
|
|
#include "config/WUPSConfig.h"
|
|
|
|
#include <memory>
|
2024-11-27 20:44:36 +01:00
|
|
|
#include <string>
|
2023-12-16 17:36:57 +01:00
|
|
|
|
|
|
|
struct GeneralConfigInformation {
|
|
|
|
std::string name;
|
|
|
|
std::string author;
|
|
|
|
std::string version;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ConfigDisplayItem {
|
|
|
|
public:
|
2024-11-27 20:44:36 +01:00
|
|
|
ConfigDisplayItem(GeneralConfigInformation &info, std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> config);
|
|
|
|
|
|
|
|
[[nodiscard]] const GeneralConfigInformation &getConfigInformation() const;
|
|
|
|
|
|
|
|
[[nodiscard]] const WUPSConfigAPIBackend::WUPSConfig &getConfig() const;
|
2023-12-16 17:36:57 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> mConfig;
|
|
|
|
GeneralConfigInformation mInfo;
|
|
|
|
};
|