Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQDownloadProgress.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:       YQDownloadProgress.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
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

Generated on Wed Nov 12 06:11:15 2008 for yast2-qt by  doxygen 1.3.9.1