From b0e912c8b3d02a518fedda28c3180eb4794a7520 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 23:37:00 +0000 Subject: 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 --- libk9copy/k9ifo2.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'libk9copy/k9ifo2.cpp') 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;jhli.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 */ -- cgit v1.2.1