libyui
YBusyIndicator.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YBusyIndicator.h
20 
21  Author: Thomas Goettlicher <tgoettlicher@suse.de>
22 
23 /-*/
24 
25 #ifndef YBusyIndicator_h
26 #define YBusyIndicator_h
27 
28 #include "YWidget.h"
29 
31 
32 
38 class YBusyIndicator : public YWidget
39 {
40 protected:
45  const std::string & label,
46  int timeout = 1000,
47  bool alive = true );
48 
49 public:
53  virtual ~YBusyIndicator();
54 
59  virtual const char * widgetClass() const { return "YBusyIndicator"; }
60 
64  std::string label();
65 
72  virtual void setLabel( const std::string & label );
73 
77  int timeout() const;
78 
86  virtual void setTimeout( int newTimeout );
87 
91  bool alive() const;
92 
93 
101  virtual void setAlive( bool newAlive );
102 
103 
114  virtual bool setProperty( const std::string & propertyName,
115  const YPropertyValue & val );
116 
123  virtual YPropertyValue getProperty( const std::string & propertyName );
124 
131  virtual const YPropertySet & propertySet();
132 
133 
134 private:
135 
137 };
138 
139 
140 #endif // YBusyIndicator_h
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition: YBusyIndicator.cc:151
Definition: YProperty.h:104
virtual void setAlive(bool newAlive)
Definition: YBusyIndicator.cc:101
virtual ~YBusyIndicator()
Definition: YBusyIndicator.cc:68
Definition: YProperty.h:197
int timeout() const
Definition: YBusyIndicator.cc:86
virtual const char * widgetClass() const
Definition: YBusyIndicator.h:59
YWidget * parent() const
Definition: YWidget.cc:271
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition: YBusyIndicator.cc:134
bool alive() const
Definition: YBusyIndicator.cc:106
virtual void setLabel(const std::string &label)
Definition: YBusyIndicator.cc:80
virtual void setTimeout(int newTimeout)
Definition: YBusyIndicator.cc:92
Definition: YBusyIndicator.cc:35
virtual const YPropertySet & propertySet()
Definition: YBusyIndicator.cc:112
Definition: YBusyIndicator.h:38
std::string label()
Definition: YBusyIndicator.cc:74
YBusyIndicator(YWidget *parent, const std::string &label, int timeout=1000, bool alive=true)
Definition: YBusyIndicator.cc:54
Definition: YWidget.h:54