WiiUPluginLoaderBackend/source/utils/config/ConfigDisplayItem.h

24 lines
608 B
C
Raw Permalink Normal View History

#pragma once
2024-11-27 20:44:36 +01:00
#include "config/WUPSConfig.h"
#include <memory>
2024-11-27 20:44:36 +01:00
#include <string>
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;
private:
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> mConfig;
GeneralConfigInformation mInfo;
};