summaryrefslogtreecommitdiffstats
path: root/libkcddb/asynchttplookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcddb/asynchttplookup.cpp')
-rw-r--r--libkcddb/asynchttplookup.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkcddb/asynchttplookup.cpp b/libkcddb/asynchttplookup.cpp
index 97a91e5d..45eb4353 100644
--- a/libkcddb/asynchttplookup.cpp
+++ b/libkcddb/asynchttplookup.cpp
@@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qstringlist.h>
-#include <qapplication.h>
+#include <tqstringlist.h>
+#include <tqapplication.h>
#include <kdebug.h>
#include <kio/job.h>
@@ -42,7 +42,7 @@ namespace KCDDB
CDDB::Result
AsyncHTTPLookup::lookup
(
- const QString & hostName,
+ const TQString & hostName,
uint port,
const TrackOffsetList & trackOffsetList
)
@@ -52,8 +52,8 @@ namespace KCDDB
trackOffsetList_ = trackOffsetList;
- connect( this, SIGNAL( queryReady() ), SLOT( slotQueryReady() ) );
- connect( this, SIGNAL( readReady() ), SLOT( requestCDInfoForMatch() ) );
+ connect( this, TQT_SIGNAL( queryReady() ), TQT_SLOT( slotQueryReady() ) );
+ connect( this, TQT_SIGNAL( readReady() ), TQT_SLOT( requestCDInfoForMatch() ) );
initURL( hostName, port );
@@ -66,7 +66,7 @@ namespace KCDDB
CDDB::Result
AsyncHTTPLookup::runQuery()
{
- data_ = QByteArray();
+ data_ = TQByteArray();
state_ = WaitingForQueryResponse;
result_ = sendQuery();
@@ -101,7 +101,7 @@ namespace KCDDB
CDDBMatch match = matchList_.first();
matchList_.remove( match );
- data_ = QByteArray();
+ data_ = TQByteArray();
state_ = WaitingForReadResponse;
result_ = sendRead( match );
@@ -111,11 +111,11 @@ namespace KCDDB
}
void
- AsyncHTTPLookup::slotData( KIO::Job *, const QByteArray &data )
+ AsyncHTTPLookup::slotData( KIO::Job *, const TQByteArray &data )
{
if (data.size() > 0)
{
- QDataStream stream(data_, IO_WriteOnly | IO_Append);
+ TQDataStream stream(data_, IO_WriteOnly | IO_Append);
stream.writeRawBytes(data.data(), data.size());
}
}
@@ -144,10 +144,10 @@ namespace KCDDB
if ( 0 == job )
return ServerError;
- connect( job, SIGNAL( data( KIO::Job *, const QByteArray & ) ),
- SLOT( slotData( KIO::Job *, const QByteArray & ) ) );
- connect( job, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotResult( KIO::Job * ) ) );
+ connect( job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotData( KIO::Job *, const TQByteArray & ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( slotResult( KIO::Job * ) ) );
return Success;
}