summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/kdecmpeg2.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /k9decmpeg/kdecmpeg2.h
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9decmpeg/kdecmpeg2.h')
-rwxr-xr-xk9decmpeg/kdecmpeg2.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/k9decmpeg/kdecmpeg2.h b/k9decmpeg/kdecmpeg2.h
index 525aa27..4476231 100755
--- a/k9decmpeg/kdecmpeg2.h
+++ b/k9decmpeg/kdecmpeg2.h
@@ -24,31 +24,31 @@
#include "mpeg2.h"
#include <stdio.h>
#include <stdlib.h>
-#include <qimage.h>
+#include <tqimage.h>
#include "ac.h"
-#include <qmutex.h>
-#include <qwidget.h>
-#include <qobject.h>
-#include <qthread.h>
-#include <qdatetime.h>
+#include <tqmutex.h>
+#include <tqwidget.h>
+#include <tqobject.h>
+#include <tqthread.h>
+#include <tqdatetime.h>
/**
*@author
*/
class kDecMPEG2;
-class k9DisplayThread:public QThread {
+class k9DisplayThread:public TQThread {
public:
k9DisplayThread(kDecMPEG2 *_dec) {m_dec=_dec;}
- void setImage(QImage _image);
+ void setImage(TQImage _image);
void setRawImage(uchar *_buffer,int _width,int _height,int size);
protected:
kDecMPEG2 *m_dec;
uchar *m_buffer;
int m_size,m_width,m_height;
- QImage m_image;
- QMutex m_mutex;
+ TQImage m_image;
+ TQMutex m_mutex;
bool m_raw;
void run();
@@ -57,8 +57,9 @@ protected:
class k9DecodeThread;
-class kDecMPEG2 : public QObject {
+class kDecMPEG2 : public TQObject {
Q_OBJECT
+ TQ_OBJECT
public:
kDecMPEG2(k9DecodeThread *_thread);
kDecMPEG2();
@@ -68,7 +69,7 @@ public:
void start();
void stop();
void pause();
- void draw(QImage *image) {emit pixmapReady(image);}
+ void draw(TQImage *image) {emit pixmapReady(image);}
void drawRaw(uchar *_buffer,int width,int height,int size) {emit ppmReady (_buffer,width,height,size);}
void setUseGL(bool _value) {m_useGL = _value;}
@@ -77,12 +78,12 @@ private:
bool m_useGL;
bool m_pause;
k9DecodeThread *m_thread;
- QImage pix;
- QTime m_timer;
+ TQImage pix;
+ TQTime m_timer;
bool m_opened;
int demux_pid;
int demux_track;
- QMutex mutex;
+ TQMutex mutex;
mpeg2dec_t * decoder;
k9DisplayThread *m_display;
int demux (uint8_t * buf, uint8_t * end, int flags);
@@ -92,7 +93,7 @@ private:
void sync();
signals: // Signals
/** No descriptions */
- void pixmapReady(QImage *image);
+ void pixmapReady(TQImage *image);
void ppmReady(uchar *buffer,int width,int height,int size);
};