blob: df0182abc6067f7588196a658a0a0e25ca7bb322 (
plain)
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
|
/*
*
* $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
* Copyright (C) 2006 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_AUDIORIP_JOB_H_
#define _K3B_AUDIORIP_JOB_H_
#include <k3bjob.h>
#include "k3baudioripthread.h"
#include <k3bdevice.h>
#include <k3bcddbresult.h>
#include <k3baudioencoder.h>
#include <tqvaluevector.h>
class K3bInterferingSystemsHandler;
class K3bThreadJob;
class K3bAudioRipJob : public K3bJob
{
Q_OBJECT
public:
K3bAudioRipJob( K3bJobHandler* hdl, TQObject* parent );
~K3bAudioRipJob();
TQString jobDescription() const;
TQString jobDetails() const;
public slots:
void start();
void cancel();
void setDevice( K3bDevice::Device* dev ) { m_thread->setDevice( dev ); }
void setCddbEntry( const K3bCddbResultEntry& entry ) { m_thread->setCddbEntry( entry ); }
void setTracksToRip( const TQValueVector<TQPair<int, TQString> >& tracksToRip ) { m_thread->setTracksToRip( tracksToRip ); }
void setParanoiaMode( int mode ) { m_thread->setParanoiaMode( mode ); }
void setMaxRetries( int retries ) { m_thread->setMaxRetries( retries ); }
void setNeverSkip( bool neverSkip ) { m_thread->setNeverSkip( neverSkip ); }
void setSingleFile( bool singleFile ) { m_thread->setSingleFile( singleFile ); }
void setWriteCueFile( bool cue ) { m_thread->setWriteCueFile( cue ); }
void setEncoder( K3bAudioEncoder* encoder ) { m_thread->setEncoder( encoder ); }
void setWritePlaylist( bool playlist ) { m_thread->setWritePlaylist( playlist ); }
void setPlaylistFilename( const TQString& filename ) { m_thread->setPlaylistFilename( filename ); }
void setUseRelativePathInPlaylist( bool relative ) { m_thread->setUseRelativePathInPlaylist( relative ); }
void setUseIndex0( bool index0 ) { m_thread->setUseIndex0( index0 ); }
void setFileType( const TQString& filetype ) { m_thread->setFileType( filetype ); }
private slots:
void slotRippingFinished( bool );
private:
K3bInterferingSystemsHandler* m_interferingSystemsHandler;
K3bThreadJob* m_threadJob;
K3bAudioRipThread* m_thread;
};
#endif
|