summaryrefslogtreecommitdiffstats
path: root/kweather/weatherlib.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:58 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:58 -0600
commit9ea931fb1bda0802797c1d38fd903b5451b91a5a (patch)
tree52871b68f40404504f789e2abefc24080510e51e /kweather/weatherlib.cpp
parent2178da111f72dc574457d5242d120b4d10ea5edd (diff)
downloadtdetoys-9ea931fb1bda0802797c1d38fd903b5451b91a5a.tar.gz
tdetoys-9ea931fb1bda0802797c1d38fd903b5451b91a5a.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kweather/weatherlib.cpp')
-rw-r--r--kweather/weatherlib.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp
index 22b2047..a595cae 100644
--- a/kweather/weatherlib.cpp
+++ b/kweather/weatherlib.cpp
@@ -57,7 +57,7 @@ class WeatherLib::Data
KTempFile *target;
bool downloading;
bool updated;
- KIO::Job *job;
+ TDEIO::Job *job;
};
WeatherLib::Data::Data()
@@ -94,14 +94,14 @@ WeatherLib::~WeatherLib()
{
}
-void WeatherLib::slotCopyDone(KIO::Job* job)
+void WeatherLib::slotCopyDone(TDEIO::Job* job)
{
kdDebug(12006) << "Copy done..." << endl;
if( job->error())
{
kdDebug(12006) << "Error code: " << job->error() << endl;
//job->showErrorDialog(0L);
- if ((job->error() == KIO::ERR_COULD_NOT_CONNECT || job->error() == KIO::ERR_UNKNOWN_HOST)
+ if ((job->error() == TDEIO::ERR_COULD_NOT_CONNECT || job->error() == TDEIO::ERR_UNKNOWN_HOST)
&& !hostDown)
{
hostDown= true;
@@ -164,15 +164,15 @@ void WeatherLib::slotCopyDone(KIO::Job* job)
d->job = 0L;
}
- else if( job->error() == KIO::ERR_DOES_NOT_EXIST)
+ else if( job->error() == TDEIO::ERR_DOES_NOT_EXIST)
{
data.remove(d->wi.reportLocation);
kdDebug( 12006 ) << "Bad station data so i am going to remove it" << endl;
KPassivePopup::message( i18n("KWeather Error!"),
i18n("The requested station does not exist."), 0L,"error" );
}
- else if(job->error() == KIO::ERR_COULD_NOT_CONNECT ||
- job->error() == KIO::ERR_UNKNOWN_HOST)
+ else if(job->error() == TDEIO::ERR_COULD_NOT_CONNECT ||
+ job->error() == TDEIO::ERR_UNKNOWN_HOST)
{
kdDebug( 12006 ) << "Offline now..." << endl;
d->clear();
@@ -207,10 +207,10 @@ void WeatherLib::getData(Data *d, bool force /* try even if host was down last t
KURL url(u);
KURL local(d->target->name());
- d->job = KIO::file_copy( url, local, -1, true, false, false);
+ d->job = TDEIO::file_copy( url, local, -1, true, false, false);
d->job->addMetaData("cache", "reload"); // Make sure to get fresh info
- connect( d->job, TQT_SIGNAL( result( KIO::Job *)),
- TQT_SLOT(slotCopyDone(KIO::Job *)));
+ connect( d->job, TQT_SIGNAL( result( TDEIO::Job *)),
+ TQT_SLOT(slotCopyDone(TDEIO::Job *)));
kdDebug( 12006 ) << "Copying " << url.prettyURL() << " to "
<< local.prettyURL() << endl;
emit fileUpdating(d->wi.reportLocation);