Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YDownloadProgress.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YDownloadProgress.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 #ifndef YDownloadProgress_h
00020 #define YDownloadProgress_h
00021 
00022 #include "YWidget.h"
00023 #include <ycp/YCPString.h>
00024 #include <ycp/YCPInteger.h>
00025 
00029 class YDownloadProgress : public YWidget
00030 {
00031 public:
00032 
00036     YDownloadProgress( const YWidgetOpt &       opt,
00037                        const YCPString &        label,
00038                        const YCPString &        filename,
00039                        int                      expectedSize );
00040 
00045     virtual char *widgetClass() { return "YDownloadProgress"; }
00046 
00050     YCPValue changeWidget( const YCPSymbol & property,
00051                            const YCPValue &  newValue );
00052 
00056     YCPValue queryWidget( const YCPSymbol & property );
00057 
00064     virtual void setLabel( const YCPString & label );
00065 
00072     virtual void setFilename( const YCPString & newFilename );
00073 
00080     virtual void setExpectedSize( int newExpectedSize );
00081 
00082 
00083     YCPString   label()         { return _label;        }
00084     YCPString   filename()      { return _filename;     }
00085     int         expectedSize()  { return _expectedSize; }
00086 
00087 
00092     long currentFileSize();
00093 
00094 
00095 private:
00096 
00097     YCPString   _label;
00098     YCPString   _filename;
00099     int         _expectedSize;
00100 };
00101 
00102 
00103 #endif // YDownloadProgress_h

Generated on Fri Nov 9 18:15:23 2007 for yast2-core by doxygen 1.3.6