summaryrefslogtreecommitdiffstats
path: root/src/gvcore/imageloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/imageloader.cpp')
-rw-r--r--src/gvcore/imageloader.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp
index ee43c5b..ffd06c2 100644
--- a/src/gvcore/imageloader.cpp
+++ b/src/gvcore/imageloader.cpp
@@ -326,22 +326,22 @@ void ImageLoader::startLoading() {
void ImageLoader::checkPendingStat() {
if( d->mSuspended || d->mGetState != GET_PENDING_STAT ) return;
- KIO::Job* job=KIO::stat( d->mURL, false );
+ TDEIO::Job* job=TDEIO::stat( d->mURL, false );
job->setWindow(TDEApplication::kApplication()->mainWidget());
- connect(job, TQT_SIGNAL(result(KIO::Job*)),
- this, TQT_SLOT(slotStatResult(KIO::Job*)) );
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)),
+ this, TQT_SLOT(slotStatResult(TDEIO::Job*)) );
d->mGetState = GET_STATING;
}
-void ImageLoader::slotStatResult(KIO::Job* job) {
+void ImageLoader::slotStatResult(TDEIO::Job* job) {
LOG("error code: " << job->error());
// Get modification time of the original file
- KIO::UDSEntry entry = static_cast<KIO::StatJob*>(job)->statResult();
- KIO::UDSEntry::ConstIterator it= entry.begin();
+ TDEIO::UDSEntry entry = static_cast<TDEIO::StatJob*>(job)->statResult();
+ TDEIO::UDSEntry::ConstIterator it= entry.begin();
TQDateTime urlTimestamp;
for (; it!=entry.end(); it++) {
- if ((*it).m_uds == KIO::UDS_MODIFICATION_TIME) {
+ if ((*it).m_uds == TDEIO::UDS_MODIFICATION_TIME) {
urlTimestamp.setTime_t( (*it).m_long );
break;
}
@@ -392,21 +392,21 @@ void ImageLoader::checkPendingGet() {
if( d->mSuspended || d->mGetState != GET_PENDING_GET ) return;
// Start loading the image
- KIO::Job* getJob=KIO::get( d->mURL, false, false);
+ TDEIO::Job* getJob=TDEIO::get( d->mURL, false, false);
getJob->setWindow(TDEApplication::kApplication()->mainWidget());
- connect(getJob, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),
- this, TQT_SLOT(slotDataReceived(KIO::Job*, const TQByteArray&)) );
+ connect(getJob, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
+ this, TQT_SLOT(slotDataReceived(TDEIO::Job*, const TQByteArray&)) );
- connect(getJob, TQT_SIGNAL(result(KIO::Job*)),
- this, TQT_SLOT(slotGetResult(KIO::Job*)) );
+ connect(getJob, TQT_SIGNAL(result(TDEIO::Job*)),
+ this, TQT_SLOT(slotGetResult(TDEIO::Job*)) );
d->mTimeSinceLastUpdate.start();
d->mGetState = GET_GETTING;
}
-void ImageLoader::slotGetResult(KIO::Job* job) {
+void ImageLoader::slotGetResult(TDEIO::Job* job) {
LOG("error code: " << job->error());
if( job->error() != 0 ) {
// failed
@@ -449,7 +449,7 @@ static TQString mimeTypeFromFormat(const char* format) {
return mimeTypes[pos];
}
-void ImageLoader::slotDataReceived(KIO::Job* job, const TQByteArray& chunk) {
+void ImageLoader::slotDataReceived(TDEIO::Job* job, const TQByteArray& chunk) {
LOG2("size: " << chunk.size());
if (chunk.size()<=0) return;