diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:32:19 +0000 |
commit | 0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch) | |
tree | 8578dcddfce4191f3f7a142a37769df7add48475 /libk9copy/k9dvdread.h | |
download | k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.tar.gz k9copy-0d382a262c0638d0f572fc37193ccc5ed3dc895f.zip |
Added old abandoned version of k9copy
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1091546 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/k9dvdread.h')
-rw-r--r-- | libk9copy/k9dvdread.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/libk9copy/k9dvdread.h b/libk9copy/k9dvdread.h new file mode 100644 index 0000000..b962c12 --- /dev/null +++ b/libk9copy/k9dvdread.h @@ -0,0 +1,70 @@ +// +// C++ Interface: k9dvdread +// +// Description: +// +// +// Author: Jean-Michel PETIT <[email protected]>, (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9DVDREAD_H +#define K9DVDREAD_H + +#include "k9common.h" +#include <qlibrary.h> + +/** + @author Jean-Michel PETIT <[email protected]> +*/ + +class k9DVDRead; +class k9Ifo2; + +class k9DVDFile { +friend class k9DVDRead; +private: + dvd_file_t *m_file; + k9DVDRead *m_dvd; + QLibrary *m_library; + void openIfo(uint _vts); + void openMenu(uint _vts); + void openTitle(uint _vts); + +public: + k9DVDFile(k9DVDRead *_dvd); + ~k9DVDFile(); + void close(); + int readBytes(uchar *_buffer,uint32_t _size); + int readBlocks(uint32_t _sector,uint32_t _size,uchar*_buffer); +}; + + +class k9DVDRead{ +friend class k9DVDTitle; +private: + dvd_reader_t *m_dvd; + QPtrList <k9DVDFile> files; + QPtrList <k9Ifo2> ifos; +public: + k9DVDRead(); + ~k9DVDRead(); + void openDevice(const QString & _device); + k9DVDFile *openIfo(uint _vts); + k9DVDFile *openMenu(uint _vts); + k9DVDFile *openTitle(uint _vts); + k9Ifo2 *getIfo(int _num); + QString getDiscId(); + void close(); + bool opened(); + + dvd_reader_t* getDvd() const { + return m_dvd; + } + + +}; + + +#endif |