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"
|
2024-08-04 15:07:30 +02:00
|
|
|
#include "plugin/PluginData.h"
|
2023-12-16 17:36:57 +01:00
|
|
|
#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;
|
2024-08-04 15:07:30 +02:00
|
|
|
std::shared_ptr<PluginData> pluginData;
|
2023-12-16 17:36:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
class ConfigDisplayItem {
|
|
|
|
public:
|
2024-08-04 15:07:30 +02:00
|
|
|
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;
|
2023-12-16 17:36:57 +01:00
|
|
|
|
2024-08-04 15:07:30 +02:00
|
|
|
[[nodiscard]] bool isActivePlugin() const;
|
|
|
|
|
2023-12-16 17:36:57 +01:00
|
|
|
private:
|
|
|
|
std::unique_ptr<WUPSConfigAPIBackend::WUPSConfig> mConfig;
|
|
|
|
GeneralConfigInformation mInfo;
|
2024-08-04 15:07:30 +02:00
|
|
|
bool mIsActivePlugin;
|
2023-12-16 17:36:57 +01:00
|
|
|
};
|