summaryrefslogtreecommitdiffstats
path: root/src/core/netaccess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netaccess.cpp')
-rw-r--r--src/core/netaccess.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/netaccess.cpp b/src/core/netaccess.cpp
index b9d2799..2187735 100644
--- a/src/core/netaccess.cpp
+++ b/src/core/netaccess.cpp
@@ -33,10 +33,10 @@ TQStringList* NetAccess::s_tmpFiles = 0;
bool NetAccess::download(const KURL& url_, TQString& target_, TQWidget* window_) {
if(url_.isLocalFile()) {
- return KIO::NetAccess::download(url_, target_, window_);
+ return TDEIO::NetAccess::download(url_, target_, window_);
}
-// if(!KIO::NetAccess::exists(url_, true, window_)) {
+// if(!TDEIO::NetAccess::exists(url_, true, window_)) {
// myDebug() << "NetAccess::download() - does not exist: " << url_ << endl;
// return false;
// }
@@ -53,8 +53,8 @@ bool NetAccess::download(const KURL& url_, TQString& target_, TQWidget* window_)
KURL dest;
dest.setPath(target_);
- KIO::Job* job = KIO::file_copy(url_, dest, -1, true /*overwrite*/, false /*resume*/, false /*showProgress*/);
- return KIO::NetAccess::synchronousRun(job, window_);
+ TDEIO::Job* job = TDEIO::file_copy(url_, dest, -1, true /*overwrite*/, false /*resume*/, false /*showProgress*/);
+ return TDEIO::NetAccess::synchronousRun(job, window_);
}
void NetAccess::removeTempFile(const TQString& name_) {
@@ -72,11 +72,11 @@ TQPixmap NetAccess::filePreview(const KURL& url, int size) {
KURL::List list;
list.append(url);
- KIO::Job* previewJob = KIO::filePreview(list, size, size);
+ TDEIO::Job* previewJob = TDEIO::filePreview(list, size, size);
connect(previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
&netaccess, TQT_SLOT(slotPreview(const KFileItem*, const TQPixmap&)));
- KIO::NetAccess::synchronousRun(previewJob, Kernel::self()->widget());
+ TDEIO::NetAccess::synchronousRun(previewJob, Kernel::self()->widget());
return netaccess.m_preview;
}
@@ -85,11 +85,11 @@ TQPixmap NetAccess::filePreview(KFileItem* item, int size) {
KFileItemList list;
list.append(item);
- KIO::Job* previewJob = KIO::filePreview(list, size, size);
+ TDEIO::Job* previewJob = TDEIO::filePreview(list, size, size);
connect(previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
&netaccess, TQT_SLOT(slotPreview(const KFileItem*, const TQPixmap&)));
- KIO::NetAccess::synchronousRun(previewJob, Kernel::self()->widget());
+ TDEIO::NetAccess::synchronousRun(previewJob, Kernel::self()->widget());
return netaccess.m_preview;
}