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,
Indicates that something is in progress and has not frozen yet.
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 ~YBusyIndicator()
Destructor.
YBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000, bool alive=true)
Constructor.
virtual YPropertyValue getProperty(const std::string &propertyName)
Get a property.
int timeout() const
Return the current timeout in milliseconds.
virtual void setLabel(const std::string &label)
Set the label (the caption above the progress bar).
bool alive() const
Return whether busy indicator is alive or in stalled stated.
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Set a property.
virtual void setAlive(bool newAlive)
Send a keep alive message to prevent BusyIndicator from changing to 'stalled' state.
virtual void setTimeout(int newTimeout)
Set the timeout in milliseconds after that the widget shows 'stalled' when no new tick is received.
virtual const YPropertySet & propertySet()
Return this class's property set.
A set of properties to check names and types against.
Transport class for the value of simple properties.