File indexing completed on 2024-04-21 04:50:09

0001 /*
0002     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef K3BBURNPROGRESSDIALOG_H
0007 #define K3BBURNPROGRESSDIALOG_H
0008 
0009 #include "k3bjobprogressdialog.h"
0010 #include "k3bdevicetypes.h"
0011 
0012 class QProgressBar;
0013 class QLabel;
0014 
0015 namespace K3b {
0016     class BurnJob;
0017     class ThemedLabel;
0018 
0019     /**
0020      *@author Sebastian Trueg
0021      */
0022     class BurnProgressDialog : public JobProgressDialog  {
0023 
0024         Q_OBJECT
0025 
0026     public:
0027         explicit BurnProgressDialog( QWidget* parent = 0, bool showSubProgress = true );
0028         ~BurnProgressDialog() override;
0029 
0030         void setJob( Job* ) override;
0031         void setBurnJob( BurnJob* );
0032 
0033     protected Q_SLOTS:
0034         void slotWriteSpeed( int, K3b::Device::SpeedMultiplicator );
0035         void slotBufferStatus( int );
0036         void slotDeviceBuffer( int );
0037         void slotFinished(bool) override;
0038 
0039     protected:
0040         ThemedLabel* m_labelWriter;
0041         QProgressBar* m_progressWritingBuffer;
0042         QProgressBar* m_progressDeviceBuffer;
0043         QLabel* m_labelWritingSpeed;
0044     };
0045 }
0046 
0047 #endif