25 #ifndef YBusyIndicator_h
26 #define YBusyIndicator_h
45 const std::string &
label,
59 virtual const char *
widgetClass()
const {
return "YBusyIndicator"; }
101 virtual void setAlive(
bool newAlive );
114 virtual bool setProperty(
const std::string & propertyName,
140 #endif // YBusyIndicator_h
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
Indicates that something is in progress and has not frozen yet.
A set of properties to check names and types against.
virtual void setTimeout(int newTimeout)
Set the timeout in milliseconds after that the widget shows 'stalled' when no new tick is received.
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
std::string label()
Get the label (the caption above the progress bar).
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
YBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000, bool alive=true)
Constructor.
int timeout() const
Return the current timeout in milliseconds.
virtual const YPropertySet & propertySet()
Return this class's property set.
virtual ~YBusyIndicator()
Destructor.
Transport class for the value of simple properties.
bool alive() const
Return whether busy indicator is alive or in stalled stated.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
virtual void setAlive(bool newAlive)
Send a keep alive message to prevent BusyIndicator from changing to 'stalled' state.