/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2000 Stephan Kulow SPDX-FileCopyrightText: 2000-2009 David Faure SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KIO_JOB_H #define KIO_JOB_H #include "job_base.h" // IWYU pragma: export #include "kiocore_export.h" #include namespace KIO { /** * Returns a translated error message for @p errorCode using the * additional error information provided by @p errorText. * @param errorCode the error code * @param errorText the additional error text * @return the created error string */ KIOCORE_EXPORT QString buildErrorString(int errorCode, const QString &errorText); /** * Returns translated error details for @p errorCode using the * additional error information provided by @p errorText , @p reqUrl * (the request URL), and the KIO worker @p method . * * @param errorCode the error code * @param errorText the additional error text * @param reqUrl the request URL * @param method the KIO worker method * @return the following data: * @li QString errorName - the name of the error * @li QString techName - if not null, the more technical name of the error * @li QString description - a description of the error * @li QStringList causes - a list of possible causes of the error * @li QStringList solutions - a liso of solutions for the error */ KIOCORE_EXPORT QByteArray rawErrorDetail(int errorCode, const QString &errorText, const QUrl *reqUrl = nullptr, int method = -1); } #endif