summaryrefslogtreecommitdiffstats
path: root/kresources/remote
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
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')
-rw-r--r--kresources/remote/resourceremote.cpp28
-rw-r--r--kresources/remote/resourceremote.h10
-rw-r--r--kresources/remote/resourceremoteconfig.cpp12
-rw-r--r--kresources/remote/resourceremoteconfig.h6
4 files changed, 28 insertions, 28 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 ) );
diff --git a/kresources/remote/resourceremote.h b/kresources/remote/resourceremote.h
index 5d32b0fc6..3cea7ef1f 100644
--- a/kresources/remote/resourceremote.h
+++ b/kresources/remote/resourceremote.h
@@ -21,9 +21,9 @@
#ifndef KCAL_RESOURCEREMOTEDIR_H
#define KCAL_RESOURCEREMOTEDIR_H
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qdatetime.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqdatetime.h>
#include <kurl.h>
#include <kconfig.h>
@@ -89,7 +89,7 @@ class KDE_EXPORT ResourceRemote : public ResourceCached
void dump() const;
- bool setValue( const QString &key, const QString &value );
+ bool setValue( const TQString &key, const TQString &value );
protected slots:
@@ -102,7 +102,7 @@ class KDE_EXPORT ResourceRemote : public ResourceCached
bool doLoad();
bool doSave();
- void addInfoText( QString & ) const;
+ void addInfoText( TQString & ) const;
private:
void init();
diff --git a/kresources/remote/resourceremoteconfig.cpp b/kresources/remote/resourceremoteconfig.cpp
index 3128eaade..67d7f4b94 100644
--- a/kresources/remote/resourceremoteconfig.cpp
+++ b/kresources/remote/resourceremoteconfig.cpp
@@ -21,8 +21,8 @@
#include <typeinfo>
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kdebug.h>
@@ -38,21 +38,21 @@
using namespace KCal;
-ResourceRemoteConfig::ResourceRemoteConfig( QWidget* parent, const char* name )
+ResourceRemoteConfig::ResourceRemoteConfig( TQWidget* parent, const char* name )
: KRES::ConfigWidget( parent, name )
{
resize( 245, 115 );
- QGridLayout *mainLayout = new QGridLayout( this, 2, 2 );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 2, 2 );
mainLayout->setSpacing( KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "Download from:" ), this );
+ TQLabel *label = new TQLabel( i18n( "Download from:" ), this );
mDownloadUrl = new KURLRequester( this );
mDownloadUrl->setMode( KFile::File );
mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mDownloadUrl, 1, 1 );
- label = new QLabel( i18n( "Upload to:" ), this );
+ label = new TQLabel( i18n( "Upload to:" ), this );
mUploadUrl = new KURLRequester( this );
mUploadUrl->setMode( KFile::File );
mainLayout->addWidget( label, 2, 0 );
diff --git a/kresources/remote/resourceremoteconfig.h b/kresources/remote/resourceremoteconfig.h
index a102bd0bd..20ab3fcf0 100644
--- a/kresources/remote/resourceremoteconfig.h
+++ b/kresources/remote/resourceremoteconfig.h
@@ -23,8 +23,8 @@
#ifndef KCAL_RESOURCEREMOTECONFIG_H
#define KCAL_RESOURCEREMOTECONFIG_H
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
#include <kurlrequester.h>
#include <kresources/resource.h>
@@ -46,7 +46,7 @@ class KDE_EXPORT ResourceRemoteConfig : public KRES::ConfigWidget
{
Q_OBJECT
public:
- ResourceRemoteConfig( QWidget *parent = 0, const char *name = 0 );
+ ResourceRemoteConfig( TQWidget *parent = 0, const char *name = 0 );
public slots:
virtual void loadSettings( KRES::Resource *resource );