summaryrefslogtreecommitdiffstats
path: root/src/gvcore/thumbnailloadjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/thumbnailloadjob.cpp')
-rw-r--r--src/gvcore/thumbnailloadjob.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gvcore/thumbnailloadjob.cpp b/src/gvcore/thumbnailloadjob.cpp
index d7650ba..4670709 100644
--- a/src/gvcore/thumbnailloadjob.cpp
+++ b/src/gvcore/thumbnailloadjob.cpp
@@ -372,7 +372,7 @@ void ThumbnailLoadJob::deleteImageThumbnail(const KURL& url) {
*/
ThumbnailLoadJob::ThumbnailLoadJob(const TQValueVector<const KFileItem*>* items, int size)
-: KIO::Job(false), mState( STATE_NEXTTHUMB ),
+: TDEIO::Job(false), mState( STATE_NEXTTHUMB ),
mCurrentVisibleIndex( -1 ), mFirstVisibleIndex( -1 ), mLastVisibleIndex( -1 ),
mThumbnailSize(size), mSuspended( false )
{
@@ -545,7 +545,7 @@ void ThumbnailLoadJob::determineNextIcon() {
// Do direct stat instead of using KIO if the file is local (faster)
if( mCurrentURL.isLocalFile()
- && !KIO::probably_slow_mounted( mCurrentURL.path())) {
+ && !TDEIO::probably_slow_mounted( mCurrentURL.path())) {
KDE_struct_stat buff;
if ( KDE_stat( TQFile::encodeName(mCurrentURL.path()), &buff ) == 0 ) {
mOriginalTime = buff.st_mtime;
@@ -553,15 +553,15 @@ void ThumbnailLoadJob::determineNextIcon() {
}
}
if( mOriginalTime == 0 ) { // KIO must be used
- KIO::Job* job = KIO::stat(mCurrentURL,false);
+ TDEIO::Job* job = TDEIO::stat(mCurrentURL,false);
job->setWindow(TDEApplication::kApplication()->mainWidget());
- LOG( "KIO::stat orig " << mCurrentURL.url() );
+ LOG( "TDEIO::stat orig " << mCurrentURL.url() );
addSubjob(job);
}
}
-void ThumbnailLoadJob::slotResult(KIO::Job * job) {
+void ThumbnailLoadJob::slotResult(TDEIO::Job * job) {
LOG(mState);
subjobs.remove(job);
Q_ASSERT(subjobs.isEmpty()); // We should have only one job at a time ...
@@ -581,11 +581,11 @@ void ThumbnailLoadJob::slotResult(KIO::Job * job) {
}
// 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();
mOriginalTime = 0;
for (; it!=entry.end(); ++it) {
- if ((*it).m_uds == KIO::UDS_MODIFICATION_TIME) {
+ if ((*it).m_uds == TDEIO::UDS_MODIFICATION_TIME) {
mOriginalTime = (time_t)((*it).m_long);
break;
}
@@ -700,7 +700,7 @@ void ThumbnailLoadJob::checkThumbnail() {
mTempPath=tmpFile.name();
KURL url;
url.setPath(mTempPath);
- KIO::Job* job=KIO::file_copy(mCurrentURL, url,-1,true,false,false);
+ TDEIO::Job* job=TDEIO::file_copy(mCurrentURL, url,-1,true,false,false);
job->setWindow(TDEApplication::kApplication()->mainWidget());
LOG("Download remote file " << mCurrentURL.prettyURL());
addSubjob(job);
@@ -710,7 +710,7 @@ void ThumbnailLoadJob::checkThumbnail() {
mState=STATE_PREVIEWJOB;
KFileItemList list;
list.append(mCurrentItem);
- KIO::Job* job=KIO::filePreview(list, mThumbnailSize);
+ TDEIO::Job* job=TDEIO::filePreview(list, mThumbnailSize);
job->setWindow(TDEApplication::kApplication()->mainWidget());
connect(job, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
this, TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)) );