summaryrefslogtreecommitdiffstats
path: root/kresources/remote/resourceremote.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kresources/remote/resourceremote.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'kresources/remote/resourceremote.cpp')
-rw-r--r--kresources/remote/resourceremote.cpp28
1 files changed, 14 insertions, 14 deletions
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 <typeinfo>
#include <stdlib.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
#include <kdebug.h>
#include <kurl.h>
@@ -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("<b>") + i18n("Remote data access failure") + QString("</b><p>") + i18n("Detailed information") \
- + QString(":<br>") + job->errorString() + QString("<p>") + i18n("What would you like to do?");
+ TQString warningString = TQString("<b>") + i18n("Remote data access failure") + TQString("</b><p>") + i18n("Detailed information") \
+ + TQString(":<br>") + job->errorString() + TQString("<p>") + 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 += "<br>";
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 ) );