16 lines
271 B
C++
16 lines
271 B
C++
#pragma once
|
|
|
|
#include "actioninterface.h"
|
|
#include "accessorinterface.h"
|
|
|
|
namespace {
|
|
class ToggleBoolAction : public virtual ActionInterface, public virtual AccessorInterface<bool>
|
|
{
|
|
public:
|
|
void triggered() override
|
|
{
|
|
setValue(!getValue());
|
|
}
|
|
};
|
|
}
|