summaryrefslogtreecommitdiffstats
path: root/ktouch/src/ktouchlecture.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:32:27 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:32:27 -0600
commit9f2c757e1a1694373c11427a00502c2ff4c2d403 (patch)
tree7d90e91214976a7d23d89ec3474515cf46069704 /ktouch/src/ktouchlecture.cpp
parentcee429821aa6f1acc97fb482d325fb4eb37376ca (diff)
downloadtdeedu-9f2c757e1a1694373c11427a00502c2ff4c2d403.tar.gz
tdeedu-9f2c757e1a1694373c11427a00502c2ff4c2d403.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'ktouch/src/ktouchlecture.cpp')
-rw-r--r--ktouch/src/ktouchlecture.cpp16
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;