diff options
Diffstat (limited to 'kresources/remote')
-rw-r--r-- | kresources/remote/resourceremote.cpp | 28 | ||||
-rw-r--r-- | kresources/remote/resourceremote.h | 10 | ||||
-rw-r--r-- | kresources/remote/resourceremoteconfig.cpp | 12 | ||||
-rw-r--r-- | kresources/remote/resourceremoteconfig.h | 6 |
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 ); |