summaryrefslogtreecommitdiffstats
path: root/quanta/project/projectprivate.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
commitf9ced3b3f13f3136ef63c33ef163042010d6e80b (patch)
tree293ce93dfb0dcfd79f83674116d7b3bc56f29af2 /quanta/project/projectprivate.cpp
parent29df04c24350cc76a41e2410d1c92445f9338b98 (diff)
downloadtdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.tar.gz
tdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'quanta/project/projectprivate.cpp')
-rw-r--r--quanta/project/projectprivate.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/quanta/project/projectprivate.cpp b/quanta/project/projectprivate.cpp
index fd49f0ce..096ef83f 100644
--- a/quanta/project/projectprivate.cpp
+++ b/quanta/project/projectprivate.cpp
@@ -1010,7 +1010,7 @@ bool ProjectPrivate::createEmptyDom()
tempFile->close();
result = QExtFileInfo::createDir(baseURL, m_mainWindow);
if (result)
- result = KIO::NetAccess::upload(tempFile->name(), projectURL, m_mainWindow);
+ result = TDEIO::NetAccess::upload(tempFile->name(), projectURL, m_mainWindow);
if (result)
m_tmpProjectFile = tempFile->name();
@@ -1019,7 +1019,7 @@ bool ProjectPrivate::createEmptyDom()
sessionTempFile->textStream()->setEncoding(TQTextStream::UnicodeUTF8);
*(sessionTempFile->textStream()) << sessionStr;
sessionTempFile->close();
- result = KIO::NetAccess::upload(sessionTempFile->name(), sessionURL, m_mainWindow);
+ result = TDEIO::NetAccess::upload(sessionTempFile->name(), sessionURL, m_mainWindow);
if (result)
m_tmpSessionFile= sessionTempFile->name();
} else
@@ -1364,8 +1364,8 @@ bool ProjectPrivate::loadProject(const KURL &url)
TQString sessionTmpFile;
// test if url is writeable and download to local file
- if (KIO::NetAccess::exists(url, false, m_mainWindow) &&
- KIO::NetAccess::download(url, projectTmpFile, m_mainWindow))
+ if (TDEIO::NetAccess::exists(url, false, m_mainWindow) &&
+ TDEIO::NetAccess::download(url, projectTmpFile, m_mainWindow))
{
if (parent->hasProject())
{
@@ -1378,8 +1378,8 @@ bool ProjectPrivate::loadProject(const KURL &url)
else
fileName += ".session";
sessionURL.setFileName(fileName);
- if (KIO::NetAccess::exists(sessionURL, false, m_mainWindow))
- KIO::NetAccess::download(sessionURL, sessionTmpFile, m_mainWindow);
+ if (TDEIO::NetAccess::exists(sessionURL, false, m_mainWindow))
+ TDEIO::NetAccess::download(sessionURL, sessionTmpFile, m_mainWindow);
else
{
TQString sessionStr;
@@ -1635,7 +1635,7 @@ bool ProjectPrivate::uploadProjectFile()
m_tmpProjectFile = TQString();
return true;
}
- if (KIO::NetAccess::upload(m_tmpProjectFile, projectURL, m_mainWindow) && KIO::NetAccess::upload(m_tmpSessionFile, sessionURL, m_mainWindow))
+ if (TDEIO::NetAccess::upload(m_tmpProjectFile, projectURL, m_mainWindow) && TDEIO::NetAccess::upload(m_tmpSessionFile, sessionURL, m_mainWindow))
{
removeFromConfig(projectURL.url()); // remove the project from the list of open projects
if (quantaApp)
@@ -1647,11 +1647,11 @@ bool ProjectPrivate::uploadProjectFile()
delete sessionTempFile;
sessionTempFile = 0L;
// second the one from downloading a project
- KIO::NetAccess::removeTempFile(m_tmpProjectFile);
- KIO::NetAccess::removeTempFile(m_tmpSessionFile);
+ TDEIO::NetAccess::removeTempFile(m_tmpProjectFile);
+ TDEIO::NetAccess::removeTempFile(m_tmpSessionFile);
// third if we recovered after crash
- KIO::NetAccess::del(KURL().fromPathOrURL(m_tmpProjectFile), m_mainWindow);
- KIO::NetAccess::del(KURL().fromPathOrURL(m_tmpSessionFile), m_mainWindow);
+ TDEIO::NetAccess::del(KURL().fromPathOrURL(m_tmpProjectFile), m_mainWindow);
+ TDEIO::NetAccess::del(KURL().fromPathOrURL(m_tmpSessionFile), m_mainWindow);
m_tmpProjectFile = "";
m_tmpSessionFile = "";
}
@@ -1660,7 +1660,7 @@ bool ProjectPrivate::uploadProjectFile()
if (quantaApp)
{
parent->statusMsg(TQString() );
- KMessageBox::error(m_mainWindow, KIO::NetAccess::lastErrorString());
+ KMessageBox::error(m_mainWindow, TDEIO::NetAccess::lastErrorString());
}
return false;
}