diff options
Diffstat (limited to 'src/newstuff/providerloader.cpp')
-rw-r--r-- | src/newstuff/providerloader.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/newstuff/providerloader.cpp b/src/newstuff/providerloader.cpp index b3f95ae..1cad0ef 100644 --- a/src/newstuff/providerloader.cpp +++ b/src/newstuff/providerloader.cpp @@ -26,17 +26,17 @@ #include <kmessagebox.h> #include <klocale.h> -#include <qdom.h> +#include <tqdom.h> using Tellico::NewStuff::ProviderLoader; -ProviderLoader::ProviderLoader( QWidget *parentWidget ) : - mParentWidget( parentWidget ), mTryAlt(true) +ProviderLoader::ProviderLoader( TQWidget *tqparentWidget ) : + mParentWidget( tqparentWidget ), mTryAlt(true) { mProviders.setAutoDelete( true ); } -void ProviderLoader::load( const QString &type, const QString &providersList ) +void ProviderLoader::load( const TQString &type, const TQString &providersList ) { mProviders.clear(); mJobData.truncate(0); @@ -44,21 +44,21 @@ void ProviderLoader::load( const QString &type, const QString &providersList ) // myLog() << "ProviderLoader::load(): providersList: " << providersList << endl; KIO::TransferJob *job = KIO::get( KURL( providersList ), false, false ); - connect( job, SIGNAL( result( KIO::Job * ) ), - SLOT( slotJobResult( KIO::Job * ) ) ); - connect( job, SIGNAL( data( KIO::Job *, const QByteArray & ) ), - SLOT( slotJobData( KIO::Job *, const QByteArray & ) ) ); - connect( job, SIGNAL( percent (KIO::Job *, unsigned long) ), - SIGNAL( percent (KIO::Job *, unsigned long) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotJobResult( KIO::Job * ) ) ); + connect( job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ), + TQT_SLOT( slotJobData( KIO::Job *, const TQByteArray & ) ) ); + connect( job, TQT_SIGNAL( percent (KIO::Job *, unsigned long) ), + TQT_SIGNAL( percent (KIO::Job *, unsigned long) ) ); // job->dumpObjectInfo(); } -void ProviderLoader::slotJobData( KIO::Job *, const QByteArray &data ) +void ProviderLoader::slotJobData( KIO::Job *, const TQByteArray &data ) { if ( data.size() == 0 ) return; - QCString str( data, data.size() + 1 ); - mJobData.append( QString::fromUtf8( str ) ); + TQCString str( data, data.size() + 1 ); + mJobData.append( TQString::fromUtf8( str ) ); } void ProviderLoader::slotJobResult( KIO::Job *job ) @@ -67,29 +67,29 @@ void ProviderLoader::slotJobResult( KIO::Job *job ) job->showErrorDialog( mParentWidget ); if(mTryAlt && !mAltProvider.isEmpty()) { mTryAlt = false; - load(QString(), mAltProvider); + load(TQString(), mAltProvider); } else { emit error(); } return; } - QDomDocument doc; + TQDomDocument doc; if ( !doc.setContent( mJobData ) ) { myDebug() << "ProviderLoader::slotJobResult() - error parsing providers list." << endl; if(mTryAlt && !mAltProvider.isEmpty()) { mTryAlt = false; - load(QString(), mAltProvider); + load(TQString(), mAltProvider); } else { emit error(); } return; } - QDomElement providers = doc.documentElement(); - QDomNode n; + TQDomElement providers = doc.documentElement(); + TQDomNode n; for ( n = providers.firstChild(); !n.isNull(); n = n.nextSibling() ) { - QDomElement p = n.toElement(); + TQDomElement p = n.toElement(); if ( p.tagName() == Latin1Literal("provider") ) { mProviders.append( new KNS::Provider( p ) ); |