Commit f4d447a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port away from ERR_SLAVE_DEFINED

parent eaade567
Pipeline #199510 passed with stage
in 4 minutes and 29 seconds
......@@ -11,6 +11,7 @@
#include "k3bdevice.h"
#include "videodvd_export.h"
#include "videodvd_i18n.h"
#include <kio_version.h>
#include <QCoreApplication>
#include <QDateTime>
......@@ -161,7 +162,11 @@ K3b::Iso9660* kio_videodvdProtocol::openIso( const QUrl& url, QString& plainIsoP
}
}
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
error( ERR_WORKER_DEFINED, i18n("No Video DVD found") );
#else
error( ERR_SLAVE_DEFINED, i18n("No Video DVD found") );
#endif
return 0;
}
......@@ -201,8 +206,13 @@ void kio_videodvdProtocol::get(const QUrl& url )
if( read == 0 )
finished();
else
else {
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
error( ERR_WORKER_DEFINED, i18n("Read error.") );
#else
error( ERR_SLAVE_DEFINED, i18n("Read error.") );
#endif
}
}
else
error( ERR_DOES_NOT_EXIST, url.path() );
......@@ -290,7 +300,11 @@ void kio_videodvdProtocol::listVideoDVDs()
finished();
}
else {
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
error( ERR_WORKER_DEFINED, i18n("No Video DVD found") );
#else
error( ERR_SLAVE_DEFINED, i18n("No Video DVD found") );
#endif
}
}
......@@ -366,8 +380,14 @@ void kio_videodvdProtocol::mimetype( const QUrl& url )
finished();
// FIXME: do we need to emit finished() after emitting the end of data()?
}
else
else {
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
error( ERR_WORKER_DEFINED, i18n("Read error.") );
#else
error( ERR_SLAVE_DEFINED, i18n("Read error.") );
#endif
}
}
}
delete iso;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment