mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +08:00
26 lines
564 B
C++
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;
|
|
};
|
|
};
|