/usr/include/k3bmixeddoc.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 | /*
*
* Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2007 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_MIXED_DOC_H
#define K3B_MIXED_DOC_H
#include "k3bdoc.h"
#include "k3bdatadoc.h"
#include "k3baudiodoc.h"
#include "k3btoc.h"
#include "k3b_export.h"
class QDomElement;
namespace K3b {
class BurnJob;
class LIBK3B_EXPORT MixedDoc : public Doc
{
Q_OBJECT
public:
MixedDoc( QObject* parent = 0 );
~MixedDoc();
virtual Type type() const { return MixedProject; }
virtual QString typeString() const { return QString::fromLatin1("mixed"); }
QString name() const;
Device::MediaTypes supportedMediaTypes() const;
bool newDocument();
void clear();
void setModified( bool m = true );
bool isModified() const;
KIO::filesize_t size() const;
Msf length() const;
int numOfTracks() const;
BurnJob* newBurnJob( JobHandler*, QObject* parent = 0 );
AudioDoc* audioDoc() const { return m_audioDoc; }
DataDoc* dataDoc() const { return m_dataDoc; }
enum MixedType { DATA_FIRST_TRACK,
DATA_LAST_TRACK,
DATA_SECOND_SESSION };
int mixedType() const { return m_mixedType; }
void setURL( const KUrl& url );
/**
* Represent the structure of the doc as CD Table of Contents.
* Be aware that the length of the data track is just an estimate
* and needs to be corrected if not specified here.
*
* @param dataMode mode of the data track (MODE1 or XA_FORM1)
* @param dataTrackLength exact length of the dataTrack
*/
Device::Toc toToc( K3b::Device::Track::DataMode dataMode, const Msf& dataTrackLength = 0 ) const;
public Q_SLOTS:
void setMixedType( MixedType t ) { m_mixedType = t; }
void addUrls( const KUrl::List& urls );
protected:
bool loadDocumentData( QDomElement* );
bool saveDocumentData( QDomElement* );
private:
DataDoc* m_dataDoc;
AudioDoc* m_audioDoc;
int m_mixedType;
};
}
#endif
|