summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/k9plaympeg2.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 00:32:19 +0000
commit0d382a262c0638d0f572fc37193ccc5ed3dc895f (patch)
tree8578dcddfce4191f3f7a142a37769df7add48475 /k9decmpeg/k9plaympeg2.h
downloadk9copy-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 'k9decmpeg/k9plaympeg2.h')
-rw-r--r--k9decmpeg/k9plaympeg2.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/k9decmpeg/k9plaympeg2.h b/k9decmpeg/k9plaympeg2.h
new file mode 100644
index 0000000..2b431e8
--- /dev/null
+++ b/k9decmpeg/k9plaympeg2.h
@@ -0,0 +1,66 @@
+//
+// C++ Interface: k9plaympeg2
+//
+// Description:
+//
+//
+// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2006
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef K9PLAYMPEG2_H
+#define K9PLAYMPEG2_H
+
+#include "k9common.h"
+#include "k9dvdtitle.h"
+
+
+#include <qthread.h>
+#include <qobject.h>
+#include <qmutex.h>
+#include <qwidget.h>
+#include "k9decodethread.h"
+/**
+ @author Jean-Michel PETIT <k9copy@free.fr>
+*/
+class k9PlayMPEG2 : public QObject,public QThread
+{
+Q_OBJECT
+private:
+ k9DVDTitle *m_title;
+ QString m_device;
+ k9DecodeThread m_decoder;
+ uint32_t m_idxLect;
+ uint32_t m_startSector;
+ uint32_t m_lastSector;
+ bool m_stopped;
+ dvd_file_t *dvdfile;
+ QMutex mutex;
+ dvd_reader_t *m_dvd;
+ int m_chapter;
+public:
+ k9PlayMPEG2();
+ void open (dvd_reader_t *dvd,const QString & device,k9DVDTitle * title,int chapter);
+ kDecMPEG2 *getDecoder();
+ void setDvd(dvd_reader_t* _value) { m_dvd = _value;}
+ dvd_reader_t* getDvd() const {return m_dvd;}
+ ~k9PlayMPEG2();
+protected:
+ void run();
+ void playTitle();
+public slots:
+ void stop();
+ void play();
+ void updatePos(uint32_t _position);
+
+signals:
+ void setPosition(uint32_t _position);
+ void setMin(uint32_t _sector);
+ void setMax(uint32_t _sector);
+
+ void setError(const QString & err);
+
+};
+
+#endif