From 9f2c757e1a1694373c11427a00502c2ff4c2d403 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:32:27 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- ktouch/src/ktouchlecture.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ktouch/src/ktouchlecture.cpp') 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; -- cgit v1.2.1