libyui

/data/gitorious.org/libyui/libyui-master/src/YBusyIndicator.h

00001 /**************************************************************************
00002 Copyright (C) 2000 - 2010 Novell, Inc.
00003 All Rights Reserved.
00004 
00005 This program is free software; you can redistribute it and/or modify
00006 it under the terms of the GNU General Public License as published by
00007 the Free Software Foundation; either version 2 of the License, or
00008 (at your option) any later version.
00009 
00010 This program is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License along
00016 with this program; if not, write to the Free Software Foundation, Inc.,
00017 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018 
00019 **************************************************************************/
00020 
00021 
00022 /*---------------------------------------------------------------------\
00023 |                                                                      |
00024 |                      __   __    ____ _____ ____                      |
00025 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00026 |                       \ V / _` \___ \ | |   __) |                    |
00027 |                        | | (_| |___) || |  / __/                     |
00028 |                        |_|\__,_|____/ |_| |_____|                    |
00029 |                                                                      |
00030 |                               core system                            |
00031 |                                                        (C) SuSE GmbH |
00032 \----------------------------------------------------------------------/
00033 
00034   File:         YBusyIndicator.h
00035 
00036   Author:       Thomas Goettlicher <tgoettlicher@suse.de>
00037 
00038 /-*/
00039 
00040 #ifndef YBusyIndicator_h
00041 #define YBusyIndicator_h
00042 
00043 #include "YWidget.h"
00044 
00045 class YBusyIndicatorPrivate;
00046 
00047 
00048 class YBusyIndicator : public YWidget
00049 {
00050 protected:
00054     YBusyIndicator( YWidget *           parent,
00055                   const string &        label,
00056                   int                   timeout = 1000,
00057                   bool                  alive = true );
00058 
00059 public:
00063     virtual ~YBusyIndicator();
00064     
00069     virtual const char * widgetClass() const { return "YBusyIndicator"; }
00070 
00074     string label();
00075 
00082     virtual void setLabel( const string & label );
00083 
00087     int timeout() const;
00088 
00096     virtual void setTimeout( int newTimeout );
00097 
00101     bool alive() const;
00102 
00103 
00111     virtual void setAlive( bool newAlive );
00112 
00113 
00124     virtual bool setProperty( const string & propertyName,
00125                               const YPropertyValue & val );
00126 
00133     virtual YPropertyValue getProperty( const string & propertyName );
00134 
00141     virtual const YPropertySet & propertySet();
00142 
00143 
00144 private:
00145 
00146     ImplPtr<YBusyIndicatorPrivate> priv;
00147 };
00148 
00149 
00150 #endif // YBusyIndicator_h
 All Classes Functions Variables Enumerations Friends