linux-wallpaperengine/src/WallpaperEngine/Core/Projects/CPropertyBoolean.h
2023-01-31 22:07:59 +01:00

26 lines
564 B
C++

#pragma once
#include "CProperty.h"
namespace WallpaperEngine::Core::Projects
{
using json = nlohmann::json;
class CPropertyBoolean : public CProperty
{
public:
static CPropertyBoolean* fromJSON (json data, const std::string& name);
bool getValue ();
std::string dump () const override;
void update (const std::string& value) override;
static const std::string Type;
private:
CPropertyBoolean (bool value, const std::string& name, const std::string& text);
bool m_value;
};
};