From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kresources/remote/resourceremote.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kresources/remote/resourceremote.cpp') diff --git a/kresources/remote/resourceremote.cpp b/kresources/remote/resourceremote.cpp index 68d484c01..2aceaad0c 100644 --- a/kresources/remote/resourceremote.cpp +++ b/kresources/remote/resourceremote.cpp @@ -22,9 +22,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -101,7 +101,7 @@ void ResourceRemote::init() void ResourceRemote::readConfig( const KConfig *config ) { - QString url = config->readEntry( "DownloadUrl" ); + TQString url = config->readEntry( "DownloadUrl" ); mDownloadUrl = KURL( url ); url = config->readEntry( "UploadUrl" ); @@ -195,11 +195,11 @@ bool ResourceRemote::doLoad() mDownloadJob = KIO::file_copy( mDownloadUrl, KURL( cacheFile() ), -1, true, false, !mUseProgressManager ); - connect( mDownloadJob, SIGNAL( result( KIO::Job * ) ), - SLOT( slotLoadJobResult( KIO::Job * ) ) ); + connect( mDownloadJob, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotLoadJobResult( KIO::Job * ) ) ); if ( mUseProgressManager ) { - connect( mDownloadJob, SIGNAL( percent( KIO::Job *, unsigned long ) ), - SLOT( slotPercent( KIO::Job *, unsigned long ) ) ); + connect( mDownloadJob, TQT_SIGNAL( percent( KIO::Job *, unsigned long ) ), + TQT_SLOT( slotPercent( KIO::Job *, unsigned long ) ) ); mProgress = KPIM::ProgressManager::createProgressItem( KPIM::ProgressManager::getUniqueID(), i18n("Downloading Calendar") ); @@ -222,8 +222,8 @@ void ResourceRemote::slotLoadJobResult( KIO::Job *job ) { if ( job->error() ) { // TODO: Should detect 404, 401 etc. vs host not found and prompt to create new resource only when 404 is returned - QString warningString = QString("") + i18n("Remote data access failure") + QString("

") + i18n("Detailed information") \ - + QString(":
") + job->errorString() + QString("

") + i18n("What would you like to do?"); + TQString warningString = TQString("") + i18n("Remote data access failure") + TQString("

") + i18n("Detailed information") \ + + TQString(":
") + job->errorString() + TQString("

") + i18n("What would you like to do?"); int rc = KMessageBox::warningContinueCancel(0, warningString, i18n("Remote Data Access Failure"), i18n("&Continue with cached resource")); if ( rc == KMessageBox::Continue ) { @@ -281,8 +281,8 @@ bool ResourceRemote::doSave() saveCache(); mUploadJob = KIO::file_copy( KURL( cacheFile() ), mUploadUrl, -1, true ); - connect( mUploadJob, SIGNAL( result( KIO::Job * ) ), - SLOT( slotSaveJobResult( KIO::Job * ) ) ); + connect( mUploadJob, TQT_SIGNAL( result( KIO::Job * ) ), + TQT_SLOT( slotSaveJobResult( KIO::Job * ) ) ); return true; } @@ -325,13 +325,13 @@ void ResourceRemote::dump() const kdDebug(5800) << " ReloadPolicy: " << reloadPolicy() << endl; } -void ResourceRemote::addInfoText( QString &txt ) const +void ResourceRemote::addInfoText( TQString &txt ) const { txt += "
"; txt += i18n("URL: %1").arg( mDownloadUrl.prettyURL() ); } -bool ResourceRemote::setValue( const QString &key, const QString &value ) +bool ResourceRemote::setValue( const TQString &key, const TQString &value ) { if ( key == "URL" ) { setUploadUrl( KURL( value ) ); -- cgit v1.2.1