diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/schema/fileprovider.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/schema/fileprovider.cpp')
-rw-r--r-- | kode/kwsdl/schema/fileprovider.cpp | 28 |
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; |