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 /libk9copy/k9dvdbackup.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 'libk9copy/k9dvdbackup.h')
-rwxr-xr-x | libk9copy/k9dvdbackup.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/libk9copy/k9dvdbackup.h b/libk9copy/k9dvdbackup.h index 36349ef..1b56e17 100755 --- a/libk9copy/k9dvdbackup.h +++ b/libk9copy/k9dvdbackup.h @@ -24,9 +24,9 @@ #include "k9cell.h" #include "k9cellcopylist.h" #include "k9dvdread.h" -#include <qptrqueue.h> -#include <qmutex.h> -#include <qfile.h> +#include <tqptrqueue.h> +#include <tqmutex.h> +#include <tqfile.h> /** @author Jean-Michel Petit */ @@ -34,8 +34,9 @@ class k9BackupDlg; class k9Ifo2; -class k9TitleSet : public QObject { +class k9TitleSet : public TQObject { Q_OBJECT + TQ_OBJECT public: k9TitleSet(int _VTS); ~k9TitleSet(); @@ -50,37 +51,38 @@ public: private: }; -class k9TitleSetList:public QPtrList <k9TitleSet> { +class k9TitleSetList:public TQPtrList <k9TitleSet> { protected: - int compareItems ( QPtrCollection::Item item1, QPtrCollection::Item item2 ); + int compareItems ( TQPtrCollection::Item item1, TQPtrCollection::Item item2 ); }; -class k9CadtList:public QPtrList<cell_adr_t> { +class k9CadtList:public TQPtrList<cell_adr_t> { protected: - int compareItems(QPtrCollection::Item item1,QPtrCollection::Item item2); + int compareItems(TQPtrCollection::Item item1,TQPtrCollection::Item item2); }; class k9vamps; -class k9DVDBackup : public QObject { +class k9DVDBackup : public TQObject { Q_OBJECT + TQ_OBJECT public: - k9DVDBackup(QObject *_dvd,const char* name=0,const QStringList& args=0) ; + k9DVDBackup(TQObject *_dvd,const char* name=0,const TQStringList& args=0) ; ~k9DVDBackup(); - virtual void setDevice(QString _device); - virtual void setOutput(QString _output); - virtual QString getErrMsg(); + virtual void setDevice(TQString _device); + virtual void setOutput(TQString _output); + virtual TQString getErrMsg(); virtual void execute(); virtual bool geterror(); virtual void setWithMenus(bool _value); - virtual QWidget *getDialog() {return (QWidget*)backupDlg;}; + virtual TQWidget *getDialog() {return (TQWidget*)backupDlg;}; public slots: void getOutput(uchar *buffer,uint32_t size); protected: - QString device; - QString output; + TQString device; + TQString output; bool wrote; private: k9DVDRead *m_dvdread; @@ -88,9 +90,9 @@ private: bool m_withMenu; bool m_forcedFactor; k9DVD *DVD; - QString errMsg; - QString vampsMsg; - QFile* outputFile; + TQString errMsg; + TQString vampsMsg; + TQFile* outputFile; long cellSize; long currVTS; k9TitleSet *currTS; @@ -129,10 +131,10 @@ private: void calcFactor(); void forceFactor(double _factor); bool error; - void seterror(const QString &_msg); + void seterror(const TQString &_msg); k9vamps *vamps; - QPtrQueue <k9Vobu> vobuQueue; - QMutex mutex; + TQPtrQueue <k9Vobu> vobuQueue; + TQMutex mutex; }; |