00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YProgressBar.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Stefan Hundhammer <sh@suse.de> 00017 00018 /-*/ 00019 00020 #ifndef YProgressBar_h 00021 #define YProgressBar_h 00022 00023 #include "YWidget.h" 00024 #include <ycp/YCPString.h> 00025 #include <ycp/YCPInteger.h> 00026 00030 class YProgressBar : public YWidget 00031 { 00032 public: 00033 00037 YProgressBar( const YWidgetOpt & opt, 00038 const YCPString & label, 00039 const YCPInteger & maxProgress, 00040 const YCPInteger & initialProgress ); 00041 00046 virtual char *widgetClass() { return "YProgressBar"; } 00047 00051 YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue ); 00052 00056 YCPValue queryWidget( const YCPSymbol & property ); 00057 00062 virtual void setLabel( const YCPString & label ); 00063 00070 YCPString getLabel(); 00071 00076 virtual void setProgress( const YCPInteger & progress ); 00077 00084 YCPInteger getProgress(); 00085 00086 00087 protected: 00091 YCPString label; 00092 00097 YCPInteger maxProgress; 00098 00102 YCPInteger progress; 00103 }; 00104 00105 00106 #endif // YProgressBar_h