statusbarprogress.h
/* This file is part of the KDE libraries
Copyright (C) 2000 Matej Koss <koss@miesto.sk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __statusbarprogress_h__
#define __statusbarprogress_h__
#include "progressbase.h"
class QWidgetStack;
class QBoxLayout;
class QPushButton;
class QLabel;
class KProgress;
namespace KIO {
class Job;
class KIO_EXPORT StatusbarProgress : public ProgressBase {
Q_OBJECT
public:
StatusbarProgress( QWidget* parent, bool button = true );
~StatusbarProgress() {}
void setJob( KIO::Job *job );
public slots:
virtual void slotClean();
virtual void slotTotalSize( KIO::Job* job, KIO::filesize_t size );
virtual void slotPercent( KIO::Job* job, unsigned long percent );
virtual void slotSpeed( KIO::Job* job, unsigned long speed );
protected:
KProgress* m_pProgressBar;
QLabel* m_pLabel;
QPushButton* m_pButton;
KIO::filesize_t m_iTotalSize;
enum Mode { None, Label, Progress };
uint mode;
bool m_bShowButton;
void setMode();
virtual bool eventFilter( QObject *, QEvent * );
QBoxLayout *box;
QWidgetStack *stack;
protected:
virtual void virtual_hook( int id, void* data );
private:
class StatusbarProgressPrivate* d;
};
} /* namespace */
#endif // __statusbarprogress_h__
KIO::ProgressBase
This class does all initialization stuff for progress, like connecting signals to slots...
Definition: progressbase.h:70
KIO::filesize_t
Q_ULLONG filesize_t
64-bit file size
Definition: global.h:39
KIO::StatusbarProgress
This is a special IO progress widget.
Definition: statusbarprogress.h:60
KIO::Job
The base class for all jobs.
Definition: jobclasses.h:68

KDE Home | KDE Accessibility Home | Description of Access Keys