WiiUPluginLoaderBackend/source/utils/config/ConfigDisplayItem.h

31 lines
806 B
C
Raw Normal View History

#pragma once
2024-11-27 20:44:36 +01:00
#include "config/WUPSConfig.h"
#include "plugin/PluginData.h"
#include <memory>
2024-11-27 20:44:36 +01:00
#include <string>
struct GeneralConfigInformation {
std::string name;
std::string author;
std::string version;
std::shared_ptr<PluginData> pluginData;
};
class ConfigDisplayItem {
public:
ConfigDisplayItem(GeneralConfigInformation &info, std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> config, bool isActive);
2024-11-27 20:44:36 +01:00
[[nodiscard]] const GeneralConfigInformation &getConfigInformation() const;
[[nodiscard]] const WUPSConfigAPIBackend::WUPSConfig &getConfig() const;
[[nodiscard]] bool isActivePlugin() const;
void toggleIsActivePlugin();
private:
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> mConfig;
GeneralConfigInformation mInfo;
bool mIsActivePlugin;
};