diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/paranoia.h | |
download | soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip |
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/paranoia.h')
-rwxr-xr-x | src/paranoia.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/paranoia.h b/src/paranoia.h new file mode 100755 index 0000000..f1a5ae8 --- /dev/null +++ b/src/paranoia.h @@ -0,0 +1,59 @@ +/*************************************************************************** + paranoia.h - description + ------------------- + copyright : (C) 2002-2006 by Christophe Thommeret + email : [email protected] + modified : 2006 Daniel Faust <[email protected]> + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#ifndef PARANOIA_H +#define PARANOIA_H + +#include <qstringlist.h> + +extern "C" +{ +#include <cdda_interface.h> +#include <cdda_paranoia.h> +} + + + +class Paranoia +{ +public: + Paranoia(); + bool init( QString dev ); + ~Paranoia(); + long getTracks(); + long trackTime( int t ); + int trackFirstSector( int t ); + int discFirstSector(); + int discLastSector(); + +private: + bool findCdrom(); + bool procCdrom( QString name ); + bool initTrack( int t ); + void setMode( int mode ); + bool isAudio( int t ); + QString trackSize( int t ); + long trackSectorSize( int t ); + + long nTracks; + cdrom_drive *d; + cdrom_paranoia *p; + long currentSector, endOfTrack; + int paraMode; + int progress; +}; +#endif |