summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/schema/fileprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kwsdl/schema/fileprovider.cpp')
-rw-r--r--kode/kwsdl/schema/fileprovider.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kode/kwsdl/schema/fileprovider.cpp b/kode/kwsdl/schema/fileprovider.cpp
index 642592bf4..2a7448c4f 100644
--- a/kode/kwsdl/schema/fileprovider.cpp
+++ b/kode/kwsdl/schema/fileprovider.cpp
@@ -21,9 +21,9 @@
#include <unistd.h>
-#include <qapplication.h>
-#include <qeventloop.h>
-#include <qfile.h>
+#include <tqapplication.h>
+#include <tqeventloop.h>
+#include <tqfile.h>
#include <kio/job.h>
#include <ktempfile.h>
@@ -33,11 +33,11 @@
using namespace Schema;
FileProvider::FileProvider()
- : QObject( 0 ), mBlocked( false )
+ : TQObject( 0 ), mBlocked( false )
{
}
-bool FileProvider::get( const QString &url, QString &target )
+bool FileProvider::get( const TQString &url, TQString &target )
{
if ( !mFileName.isEmpty() )
cleanUp();
@@ -53,14 +53,14 @@ bool FileProvider::get( const QString &url, QString &target )
qDebug( "Downloading external schema '%s'", url.latin1() );
KIO::TransferJob* job = KIO::get( KURL( url ), false, false );
- connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ),
- this, SLOT( slotData( KIO::Job*, const QByteArray& ) ) );
- connect( job, SIGNAL( result( KIO::Job* ) ),
- this, SLOT( slotResult( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ),
+ this, TQT_SLOT( slotData( KIO::Job*, const TQByteArray& ) ) );
+ connect( job, TQT_SIGNAL( result( KIO::Job* ) ),
+ this, TQT_SLOT( slotResult( KIO::Job* ) ) );
mBlocked = true;
while ( mBlocked ) {
- qApp->eventLoop()->processEvents( QEventLoop::ExcludeUserInput );
+ qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
usleep( 500 );
}
@@ -69,11 +69,11 @@ bool FileProvider::get( const QString &url, QString &target )
void FileProvider::cleanUp()
{
- ::unlink( QFile::encodeName( mFileName ) );
- mFileName = QString();
+ ::unlink( TQFile::encodeName( mFileName ) );
+ mFileName = TQString();
}
-void FileProvider::slotData( KIO::Job*, const QByteArray &data )
+void FileProvider::slotData( KIO::Job*, const TQByteArray &data )
{
unsigned int oldSize = mData.size();
mData.resize( oldSize + data.size() );
@@ -87,7 +87,7 @@ void FileProvider::slotResult( KIO::Job *job )
return;
}
- QFile file( mFileName );
+ TQFile file( mFileName );
if ( !file.open( IO_WriteOnly ) ) {
qDebug( "Unable to create temporary file" );
return;