Pages
API Documentation
On this page

KIO::WorkerResult Class

The result of a worker call. More...

  • Header: #include <KIO/WorkerBase>
  • CMake: find_package(KF6 REQUIRED COMPONENTS KIO)
    target_link_libraries(mytarget PRIVATE KF6::KIOCore)

List of all members, including inherited members

Public Functions

Static Public Members

Detailed Description

When using the Result type always mark the function Q_REQUIRED_RESULT to enforce handling of the Result.

Member Function Documentation

int WorkerResult::error() const

The error code (or ERR_UNKNOWN) of the result.

QString WorkerResult::errorString() const

The localized error description if applicable.

[static] KIO::WorkerResult WorkerResult::fail(int _error = KIO::ERR_UNKNOWN, const QString &_errorString = QString())

Constructs a failure results.

[static] KIO::WorkerResult WorkerResult::pass()

Constructs a success result.

bool WorkerResult::success() const

Whether or not the result was a success.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.