diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9vamps/k9vamps.h | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-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 'k9vamps/k9vamps.h')
-rwxr-xr-x | k9vamps/k9vamps.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/k9vamps/k9vamps.h b/k9vamps/k9vamps.h index 8f0b945..b757db7 100755 --- a/k9vamps/k9vamps.h +++ b/k9vamps/k9vamps.h @@ -13,9 +13,9 @@ #define K9VAMPS_H #include "k9common.h" -#include <qfile.h> -#include <qthread.h> -#include <qobject.h> +#include <tqfile.h> +#include <tqthread.h> +#include <tqobject.h> #include <stdio.h> #include <errno.h> #include <stdarg.h> @@ -25,8 +25,8 @@ #include <getopt.h> #include <pthread.h> #include <sys/stat.h> -#include <qmutex.h> -#include <qwaitcondition.h> +#include <tqmutex.h> +#include <tqwaitcondition.h> #include "k9dvdbackup.h" #include "k9requant.h" #include "k9fifo.h" @@ -47,13 +47,13 @@ -class k9bgUpdate : public QThread +class k9bgUpdate : public TQThread { private: uchar * m_buffer; k9DVDBackup *m_backup; uint32_t m_size; - QMutex mutex; + TQMutex mutex; public: k9bgUpdate(k9DVDBackup * _backup); void update(uchar *_buffer, uint32_t size); @@ -65,7 +65,7 @@ protected: -class k9vamps:public QThread +class k9vamps:public TQThread { private: uchar *rbuf;// [RBUF_SIZE]; // the PS read buffer @@ -100,20 +100,20 @@ private: bool m_preserve; // preserve audio/spu track numbers float vap_fact; // vaporization factor from cmd line bool noData; - QMutex mutex; + TQMutex mutex; k9bgUpdate *m_bgUpdate; k9fifo m_fifo; - QString m_errMsg; + TQString m_errMsg; bool m_error; double avgdiff; double m_totfact,m_nbfact,m_avgfact; - QFile *m_output; + TQFile *m_output; private: // prototypes void vaporize (void); - void fatal (QString _msg); + void fatal (TQString _msg); int lock(int size); void copy(int size); void skip (int size); @@ -137,8 +137,8 @@ private: int readData(uchar *data,uint size); - QWaitCondition wDataRead; - QWaitCondition wDataReady; + TQWaitCondition wDataRead; + TQWaitCondition wDataReady; k9DVDBackup *m_dvdbackup; k9requant *m_requant; k9SaveImage *m_saveImage; @@ -155,9 +155,9 @@ public: void setInputSize(uint64_t size); void setVapFactor(float factor); void setSaveImage(k9SaveImage*); - void setOutput(QFile *_output); + void setOutput(TQFile *_output); uint64_t getOutputBytes(); - QString & geterrMsg(); + TQString & geterrMsg(); bool geterror(); void abort(); void setPreserve(bool _value); |