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