From a63fcb8c6bcf04a51c4c3040a2b9ff2317aeff5f Mon Sep 17 00:00:00 2001 From: Arto Hytnen Date: Sat, 18 Aug 2007 06:50:08 +0000 Subject: [PATCH] kdepim KIO::NetAccess::exists deprecated-- svn path=/trunk/KDE/kdepim/; revision=701396 --- kmcommands.cpp | 6 +++--- kmkernel.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kmcommands.cpp b/kmcommands.cpp index 0b9164ff8..672616ea4 100644 --- a/kmcommands.cpp +++ b/kmcommands.cpp @@ -633,7 +633,7 @@ KMCommand::Result KMUrlSaveCommand::execute() parentWidget() ); if ( saveUrl.isEmpty() ) return Canceled; - if ( KIO::NetAccess::exists( saveUrl, false, parentWidget() ) ) + if ( KIO::NetAccess::exists( saveUrl, KIO::NetAccess::DestinationSide, parentWidget() ) ) { if (KMessageBox::warningContinueCancel(0, i18n("File %1 exists.
Do you want to replace it?
", @@ -2493,7 +2493,7 @@ void KMSaveAttachmentsCommand::slotSaveAll() } - if ( KIO::NetAccess::exists( curUrl, false, parentWidget() ) ) { + if ( KIO::NetAccess::exists( curUrl, KIO::NetAccess::DestinationSide, parentWidget() ) ) { if ( KMessageBox::warningContinueCancel( parentWidget(), i18n( "A file named %1 already exists. Do you want to overwrite it?" , curUrl.fileName() ), @@ -3150,7 +3150,7 @@ void KMHandleAttachmentCommand::atmEncryptWithChiasmus() // return true if we should proceed, false if we should abort static bool checkOverwrite( const KUrl& url, bool& overwrite, QWidget* w ) { - if ( KIO::NetAccess::exists( url, false /*dest*/, w ) ) { + if ( KIO::NetAccess::exists( url, KIO::NetAccess::DestinationSide /*dest*/, w ) ) { if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel( w, diff --git a/kmkernel.cpp b/kmkernel.cpp index 2b49c81d4..b9e9b79d2 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -1693,7 +1693,7 @@ bool KMKernel::transferMail( QString & destinationDir ) // disabled for now since moving fails in certain cases (e.g. if symbolic links are involved) const QString kmailName = KGlobal::mainComponent().aboutData()()->programName(); QString msg; - if ( KIO::NetAccess::exists( destinationDir, true, 0 ) ) { + if ( KIO::NetAccess::exists( destinationDir, KIO::NetAccess::SourceSide, 0 ) ) { // if destinationDir exists, we need to warn about possible // overwriting of files. otherwise, we don't have to msg = ki18nc( "%1-%3 is the application name, %4-%7 are folder path",