File indexing completed on 2024-04-28 04:50:21
0001 /* 0002 SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _K3B_CUE_FILE_WRITER_H_ 0008 #define _K3B_CUE_FILE_WRITER_H_ 0009 0010 #include <QTextStream> 0011 0012 #include "k3btoc.h" 0013 #include "k3bcdtext.h" 0014 0015 /** 0016 * Write a CDRWIN cue file. 0017 * For now this writer only supports audio CDs 0018 * for usage in the K3b audio CD ripper. 0019 */ 0020 0021 namespace K3b { 0022 class CueFileWriter 0023 { 0024 public: 0025 CueFileWriter(); 0026 0027 bool save( QTextStream& ); 0028 bool save( const QString& filename ); 0029 0030 void setData( const Device::Toc& toc ) { m_toc = toc; } 0031 void setCdText( const Device::CdText& text ) { m_cdText = text; } 0032 void setImage( const QString& name, const QString& type ) { m_image = name; m_dataType = type; } 0033 0034 private: 0035 Device::Toc m_toc; 0036 Device::CdText m_cdText; 0037 QString m_image; 0038 QString m_dataType; 0039 }; 0040 } 0041 0042 #endif