From 0d382a262c0638d0f572fc37193ccc5ed3dc895f Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 17 Feb 2010 00:32:19 +0000 Subject: 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 --- libk9copy/k9dvdread.h | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 libk9copy/k9dvdread.h (limited to 'libk9copy/k9dvdread.h') 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 , (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// +#ifndef K9DVDREAD_H +#define K9DVDREAD_H + +#include "k9common.h" +#include + +/** + @author Jean-Michel PETIT +*/ + +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 files; + QPtrList 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 -- cgit v1.2.1