summaryrefslogtreecommitdiffstats
path: root/libkcddb/asynchttplookup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /libkcddb/asynchttplookup.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}