mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-25 20:41:48 +01:00
29 lines
772 B
C++
29 lines
772 B
C++
#pragma once
|
|
|
|
#include "config/WUPSConfig.h"
|
|
#include "plugin/PluginData.h"
|
|
#include <memory>
|
|
#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);
|
|
|
|
[[nodiscard]] const GeneralConfigInformation &getConfigInformation() const;
|
|
|
|
[[nodiscard]] const WUPSConfigAPIBackend::WUPSConfig &getConfig() const;
|
|
|
|
[[nodiscard]] bool isActivePlugin() const;
|
|
|
|
private:
|
|
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> mConfig;
|
|
GeneralConfigInformation mInfo;
|
|
bool mIsActivePlugin;
|
|
}; |