summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9ifo2.cpp
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 /libk9copy/k9ifo2.cpp
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 'libk9copy/k9ifo2.cpp')
-rw-r--r--libk9copy/k9ifo2.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libk9copy/k9ifo2.cpp b/libk9copy/k9ifo2.cpp
index 56ba072..8d5672e 100644
--- a/libk9copy/k9ifo2.cpp
+++ b/libk9copy/k9ifo2.cpp
@@ -23,7 +23,7 @@
k9Ifo2::k9Ifo2(k9DVDRead *_dvdread)
- : QObject(NULL,"") {
+ : TQObject(NULL,"") {
_ifo=NULL;
m_dvd=_dvdread;
}
@@ -36,17 +36,17 @@ k9Ifo2::~k9Ifo2() {
}
/*!
- \fn k9Ifo2::setDevice(QString &_device)
+ \fn k9Ifo2::setDevice(TQString &_device)
*/
-void k9Ifo2::setDevice(QString &_device) {
+void k9Ifo2::setDevice(TQString &_device) {
device=_device;
}
/*!
- \fn k9Ifo2::setOutput(QString &_output)
+ \fn k9Ifo2::setOutput(TQString &_output)
*/
-void k9Ifo2::setOutput(QString &_output) {
+void k9Ifo2::setOutput(TQString &_output) {
output=_output;
}
@@ -85,7 +85,7 @@ void k9Ifo2::saveIFO() {
k9DVDFile *dvdfile;
bool mainIfo = (numIfo==0);
- QString filename,filename2;
+ TQString filename,filename2;
if (mainIfo) {
filename="/VIDEO_TS/VIDEO_TS.IFO";
} else {
@@ -174,17 +174,17 @@ void k9Ifo2::saveIFO() {
filename2=output + filename2;
}
- QFile ifofile (filename);
+ TQFile ifofile (filename);
ifofile.open(IO_WriteOnly);
if (ifofile.writeBlock((char*)m_buffer,m_position) == -1) {
- QString sError("erreur");
+ TQString sError("erreur");
}
ifofile.close();
- QFile ifofile2 (filename2);
+ TQFile ifofile2 (filename2);
ifofile2.open(IO_WriteOnly);
if (ifofile2.writeBlock((char*)m_buffer,m_position) == -1) {
- QString sError("erreur");
+ TQString sError("erreur");
}
ifofile2.close();
@@ -419,7 +419,7 @@ void k9Ifo2::updateTT_SRPT(uchar *_buffer) {
for(int i = 0; i < tt_srpt->nr_of_srpts; i++) {
B2N_16(title_info[i].nr_of_ptts);
- B2N_16(title_info[i].parental_id);
+ B2N_16(title_info[i].tqparental_id);
B2N_32(title_info[i].title_set_sector);
}
memcpy(m_buffer+offset+TT_SRPT_SIZE,title_info,info_length);
@@ -511,7 +511,7 @@ void k9Ifo2::updatePGCIT_internal(uchar *_buffer, pgcit_t *_pgcit, int _offset)
m_position+=_pgcit->nr_of_pgci_srp*PGCI_SRP_SIZE;
for(int i = 0; i < _pgcit->nr_of_pgci_srp; i++) {
- B2N_16(pgci_srp[i].ptl_id_mask);
+ B2N_16(pgci_srp[i].ptl_id_tqmask);
pgci_srp[i].pgc_start_byte=m_position-_offset;
B2N_32(pgci_srp[i].pgc_start_byte); //JMP:faux
updatePGC(_buffer,_pgcit->pgci_srp[i].pgc,m_position);
@@ -856,7 +856,7 @@ void k9Ifo2::updateVTS_TMAPT(uchar *_buffer) {
}
-void k9Ifo2::checkBuffer(QString lib,uchar* _buffer) {
+void k9Ifo2::checkBuffer(TQString lib,uchar* _buffer) {
/* for (int j=0;j<bufCopySize;j++) {
uchar *c,*c2;
c=(uchar*) (_buffer+j);
@@ -868,7 +868,7 @@ void k9Ifo2::checkBuffer(QString lib,uchar* _buffer) {
*/
return;
if (memcmp(bufCopy,_buffer,bufCopySize)!=0) {
- QString c;
+ TQString c;
c="Buffer de sortie altéré: " +lib;
qDebug(c.latin1());
}
@@ -903,7 +903,7 @@ void k9Ifo2::navRead_PCI(pci_t *pci, uchar *buffer) {
for(j = 0; j < 2; j++)
B2N_32(pci->hli.btn_colit.btn_coli[i][j]);
- /* NOTE: I've had to change the structure from the disk layout to get
+ /* NOTE: I've had to change the structure from the disk tqlayout to get
* the packing to work with Sun's Forte C compiler. */
/* pci hli btni */