Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/property/Property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ Property::Property()

}

/******************************************************************************
CONST
******************************************************************************/
namespace PropertyActions
{
const String CLEAR = "\x1b";
}

/******************************************************************************
PUBLIC MEMBER FUNCTIONS
******************************************************************************/
Expand Down
8 changes: 8 additions & 0 deletions src/property/Property.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
#define appendAttribute(x) appendAttributeReal(x, getAttributeName(#x, '.'), encoder)
#define setAttribute(x) setAttributeReal(x, getAttributeName(#x, '.'))

/******************************************************************************
CONST
******************************************************************************/
namespace PropertyActions
{
extern const String CLEAR;
}

/******************************************************************************
ENUM
******************************************************************************/
Expand Down
3 changes: 3 additions & 0 deletions src/property/types/CloudString.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class CloudString : public Property {
operator String() const {
return _value;
}
void clear() {
_value = PropertyActions::CLEAR;
}
virtual bool isDifferentFromCloud() {
return _value != _cloud_value;
}
Expand Down