#pragma once #include "config/WUPSConfig.h" #include struct GeneralConfigInformation { std::string name; std::string author; std::string version; }; class ConfigDisplayItem { public: ConfigDisplayItem(GeneralConfigInformation &info, std::unique_ptr config) : mConfig(std::move(config)), mInfo(std::move(info)) { assert(mConfig); } [[nodiscard]] const GeneralConfigInformation &getConfigInformation() const { return mInfo; } [[nodiscard]] const WUPSConfigAPIBackend::WUPSConfig &getConfig() const { return *mConfig; } private: std::unique_ptr mConfig; GeneralConfigInformation mInfo; };