File indexing completed on 2024-06-16 07:42:02

0001 /*
0002     SPDX-FileCopyrightText: 2005-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-FileCopyrightText: 2011 Michal Malek <michalm@jabster.pl>
0004     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef _K3B_AUDIO_CUE_FILEWRITING_JOB_H_
0010 #define _K3B_AUDIO_CUE_FILEWRITING_JOB_H_
0011 
0012 #include "k3bjob.h"
0013 #include "k3b_export.h"
0014 #include "k3bglobals.h"
0015 
0016 namespace K3b {
0017 
0018     namespace Device {
0019         class Device;
0020     }
0021 
0022 
0023     class LIBK3B_EXPORT AudioCueFileWritingJob : public BurnJob
0024     {
0025         Q_OBJECT
0026 
0027     public:
0028         explicit AudioCueFileWritingJob( JobHandler*, QObject* parent = 0 );
0029         ~AudioCueFileWritingJob() override;
0030 
0031         Device::Device* writer() const override;
0032 
0033         QString jobDescription() const override;
0034         QString jobDetails() const override;
0035         QString jobSource() const override;
0036         QString jobTarget() const override;
0037 
0038         QString cueFile() const;
0039 
0040     public Q_SLOTS:
0041         void start() override;
0042         void cancel() override;
0043 
0044         void setCueFile( const QString& );
0045         void setSpeed( int s );
0046         void setBurnDevice( K3b::Device::Device* dev );
0047         void setWritingMode( K3b::WritingMode mode );
0048         void setSimulate( bool b );
0049         void setCopies( int c );
0050         void setOnTheFly( bool b );
0051         void setTempDir( const QString& );
0052 
0053     private Q_SLOTS:
0054         void slotAnalyserJobFinished(bool);
0055 
0056     private:
0057         void importCueInProject();
0058 
0059         class Private;
0060         Private* const d;
0061     };
0062 }
0063 
0064 #endif