/usr/include/k3bcdrdaowriter.h is in libk3b-dev 2.0.3-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /*
*
* Copyright (C) 2003-2008 Sebastian Trueg <trueg@k3b.org>
* Copyright (C) 2003 Klaus-Dieter Krannich <kd@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2008 Sebastian Trueg <trueg@k3b.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* See the file "COPYING" for the exact licensing terms.
*/
#ifndef K3B_CDRDAO_WRITER_H
#define K3B_CDRDAO_WRITER_H
#include <qprocess.h>
#include "k3babstractwriter.h"
#include "k3b_export.h"
class Q3Socket;
namespace K3b {
class ExternalBin;
class Process;
class LIBK3B_EXPORT CdrdaoWriter : public AbstractWriter
{
Q_OBJECT
public:
enum Command { WRITE, COPY, READ, BLANK };
enum SubMode { None, RW, RW_RAW };
CdrdaoWriter( Device::Device* dev, JobHandler*,
QObject* parent = 0 );
~CdrdaoWriter();
/**
* to be used in chain: addArgument(x)->addArgument(y)
*/
CdrdaoWriter* addArgument( const QString& );
Device::Device* sourceDevice() { return m_sourceDevice; };
bool active() const;
private:
void reinitParser();
void parseCdrdaoLine( const QString& line );
void parseCdrdaoWrote( const QString& line );
void parseCdrdaoError( const QString& line );
public Q_SLOTS:
void start();
void cancel();
// options
// ---------------------
void setCommand( int c ) { m_command = c; }
void setBlankMode( FormattingMode b ) { m_blankMode = b; }
void setMulti( bool b ) { m_multi = b; }
void setForce( bool b ) { m_force = b; }
void setOnTheFly( bool b ) { m_onTheFly = b; }
void setDataFile( const QString& s ) { m_dataFile = s; }
void setTocFile( const QString& s ) { m_tocFile = s; }
void setSourceDevice( Device::Device* dev ) { m_sourceDevice = dev; }
void setFastToc( bool b ) { m_fastToc = b; }
void setReadRaw( bool b ) { m_readRaw = b; }
void setReadSubchan(SubMode m) { m_readSubchan=m; };
void setParanoiaMode( int i ) { m_paranoiaMode = i; }
void setTaoSource(bool b) { m_taoSource=b; };
void setTaoSourceAdjust(int a) { m_taoSourceAdjust=a; };
void setSession(int s) { m_session=s; };
void setEject(bool e) { m_eject=e; };
// ---------------------
private Q_SLOTS:
void slotStdLine( const QString& line );
void slotProcessExited( int exitCode, QProcess::ExitStatus exitStatus );
void parseCdrdaoMessage();
void slotThroughput( int t );
private:
void unknownCdrdaoLine( const QString& );
void prepareArgumentList();
void setWriteArguments();
void setReadArguments();
void setCopyArguments();
void setBlankArguments();
void setCommonArguments();
bool cueSheet();
QString findDriverFile( const ExternalBin* bin );
bool defaultToGenericMMC( Device::Device* dev, bool writer );
// options
// ---------------------
int m_command;
int m_blankMode;
Device::Device* m_sourceDevice;
QString m_dataFile;
QString m_tocFile;
QString m_cueFileLnk;
QString m_binFileLnk;
QString m_backupTocFile;
bool m_readRaw;
bool m_multi;
bool m_force;
bool m_onTheFly;
bool m_fastToc;
SubMode m_readSubchan;
bool m_taoSource;
int m_taoSourceAdjust;
int m_paranoiaMode;
int m_session;
bool m_eject;
// ---------------------
const ExternalBin* m_cdrdaoBinObject;
Process* m_process;
int m_cdrdaoComm[2];
Q3Socket *m_comSock;
bool m_canceled;
bool m_knownError;
// parser
int m_size;
int m_currentTrack;
class Private;
Private* d;
};
}
#endif
|