summaryrefslogtreecommitdiffstats
path: root/kalarm/messagewin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/messagewin.cpp')
-rw-r--r--kalarm/messagewin.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalarm/messagewin.cpp b/kalarm/messagewin.cpp
index 3e63853ea..0315b8f44 100644
--- a/kalarm/messagewin.cpp
+++ b/kalarm/messagewin.cpp
@@ -348,7 +348,7 @@ void MessageWin::initView()
bool dir = false;
TQString tmpFile;
KURL url(mMessage);
- if (KIO::NetAccess::download(url, tmpFile, MainWindow::mainMainWindow()))
+ if (TDEIO::NetAccess::download(url, tmpFile, MainWindow::mainMainWindow()))
{
TQFile qfile(tmpFile);
TQFileInfo info(qfile);
@@ -368,12 +368,12 @@ void MessageWin::initView()
view->resize(TQSize(h, h).expandedTo(view->sizeHint()));
TQWhatsThis::add(view, i18n("The contents of the file to be displayed"));
}
- KIO::NetAccess::removeTempFile(tmpFile);
+ TDEIO::NetAccess::removeTempFile(tmpFile);
}
if (!opened)
{
// File couldn't be opened
- bool exists = KIO::NetAccess::exists(url, true, MainWindow::mainMainWindow());
+ bool exists = TDEIO::NetAccess::exists(url, true, MainWindow::mainMainWindow());
mErrorMsgs += dir ? i18n("File is a folder") : exists ? i18n("Failed to open file") : i18n("File not found");
}
break;
@@ -658,7 +658,7 @@ void MessageWin::setRemainingTextMinute()
* Save settings to the session managed config file, for restoration
* when the program is restored.
*/
-void MessageWin::saveProperties(KConfig* config)
+void MessageWin::saveProperties(TDEConfig* config)
{
if (mShown && !mErrorWindow)
{
@@ -701,7 +701,7 @@ void MessageWin::saveProperties(KConfig* config)
* This function is automatically called whenever the app is being restored.
* Read in whatever was saved in saveProperties().
*/
-void MessageWin::readProperties(KConfig* config)
+void MessageWin::readProperties(TDEConfig* config)
{
mInvalid = config->readBoolEntry(TQString::fromLatin1("Invalid"), false);
mEventID = config->readEntry(TQString::fromLatin1("EventID"));
@@ -853,8 +853,8 @@ void MessageWin::slotPlayAudio()
// First check that it exists, to avoid possible crashes if the filename is badly specified
MainWindow* mmw = MainWindow::mainMainWindow();
KURL url(mAudioFile);
- if (!url.isValid() || !KIO::NetAccess::exists(url, true, mmw)
- || !KIO::NetAccess::download(url, mLocalAudioFile, mmw))
+ if (!url.isValid() || !TDEIO::NetAccess::exists(url, true, mmw)
+ || !TDEIO::NetAccess::download(url, mLocalAudioFile, mmw))
{
kdError(5950) << "MessageWin::playAudio(): Open failure: " << mAudioFile << endl;
if (!haveErrorMessage(ErrMsg_AudioFile))
@@ -1057,7 +1057,7 @@ void MessageWin::stopPlay()
delete mArtsDispatcher; mArtsDispatcher = 0;
if (!mLocalAudioFile.isEmpty())
{
- KIO::NetAccess::removeTempFile(mLocalAudioFile); // removes it only if it IS a temporary file
+ TDEIO::NetAccess::removeTempFile(mLocalAudioFile); // removes it only if it IS a temporary file
mLocalAudioFile = TQString();
}
if (mSilenceButton)