Library: UPnP/UPnPGen
Package: Generator
Header: Poco/UPnP/UPnPGen/StateVariable.h
The StateVariable contains a upnp service description
Member Functions: defaultValue, name, optional, sendEvents, type, valueRestriction
StateVariable(
bool enableEvents = false
);
Creates the StateVariable.
~StateVariable();
Destroys the StateVariable.
void defaultValue(
const std::string & val
);
const std::string & defaultValue() const;
void name(
const std::string & val
);
const std::string & name() const;
void optional(
bool val
);
bool optional() const;
bool sendEvents() const;
Checks if events are enabled for that variable
void sendEvents(
bool enable
);
Change event status
void type(
const std::string & val
);
const std::string & type() const;
void valueRestriction(
Restriction::Ptr ptr
);
ptr must not be null!
const Restriction & valueRestriction() const;