diff options
Diffstat (limited to 'ktouch/src/ktouchlecture.cpp')
-rw-r--r-- | ktouch/src/ktouchlecture.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ktouch/src/ktouchlecture.cpp b/ktouch/src/ktouchlecture.cpp index 610c583a..40a86007 100644 --- a/ktouch/src/ktouchlecture.cpp +++ b/ktouch/src/ktouchlecture.cpp @@ -27,17 +27,17 @@ bool KTouchLecture::load(TQWidget * window, const KURL& url) { // File is only downloaded if not local, otherwise it's just opened TQString target; bool result = false; - if (KIO::NetAccess::download(url, target, window)) { + if (TDEIO::NetAccess::download(url, target, window)) { // Ok, that was successful, store the lectureURL and read the file TQFile infile(target); if ( !infile.open( IO_ReadOnly ) ) { - KIO::NetAccess::removeTempFile(target); + TDEIO::NetAccess::removeTempFile(target); return false; // Bugger it... couldn't open it... } TQTextStream in( &infile ); result = readLecture(in); }; - KIO::NetAccess::removeTempFile(target); + TDEIO::NetAccess::removeTempFile(target); return result; } // ---------------------------------------------------------------------------- @@ -47,18 +47,18 @@ bool KTouchLecture::loadXML(TQWidget * window, const KURL& url) { // File is only downloaded if not local, otherwise it's just opened TQString target; bool result = false; - if (KIO::NetAccess::download(url, target, window)) { + if (TDEIO::NetAccess::download(url, target, window)) { // Ok, that was successful, store the lectureURL and read the file TQFile infile(target); if ( !infile.open( IO_ReadOnly ) ) { - KIO::NetAccess::removeTempFile(target); + TDEIO::NetAccess::removeTempFile(target); return false; // Bugger it... couldn't open it... } TQDomDocument doc; doc.setContent( &infile ); result = readLecture(doc); } - KIO::NetAccess::removeTempFile(target); + TDEIO::NetAccess::removeTempFile(target); return result; } // ---------------------------------------------------------------------------- @@ -92,7 +92,7 @@ bool KTouchLecture::saveXML(TQWidget * window, const KURL& url) const { outfile.close(); // if we have a temporary file, we still need to upload it if (temp) { - KIO::NetAccess::upload(tmpFile, url, window); + TDEIO::NetAccess::upload(tmpFile, url, window); delete temp; } return true; @@ -270,7 +270,7 @@ bool KTouchLecture::save(TQWidget * window, const KURL& url) const { outfile.close(); // if we have a temporary file, we still need to upload it if (temp) { - KIO::NetAccess::upload(tmpFile, url, window); + TDEIO::NetAccess::upload(tmpFile, url, window); delete temp; } return true; |