00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef YQDownloadProgress_h
00022 #define YQDownloadProgress_h
00023
00024 #include <qvbox.h>
00025 #include <ycp/YCPString.h>
00026
00027 #include "YDownloadProgress.h"
00028
00029
00030 class QLabel;
00031 class QProgressBar;
00032
00033 class YQDownloadProgress : public QVBox, public YDownloadProgress
00034 {
00035 Q_OBJECT
00036
00037 public:
00038
00042 YQDownloadProgress( QWidget * parent,
00043 const YWidgetOpt & opt,
00044 const YCPString & label,
00045 const YCPString & filename,
00046 int expectedSize );
00047
00052 void setEnabling( bool enabled );
00053
00058 long nicesize( YUIDimension dim );
00059
00064 void setSize( long newWidth, long newHeight );
00065
00071 void setLabel( const YCPString & label );
00072
00073
00079 void setExpectedSize( int expectedSize );
00080
00081
00082 public slots:
00086 void pollFileSize( void );
00087
00088
00089 protected:
00090
00091 QLabel * _qt_label;
00092 QProgressBar * _qt_progress;
00093 QTimer * _timer;
00094 };
00095
00096
00097 #endif // YQDownloadProgress_h