! * \brief Internally handles an error. */
| 400 | * \brief Internally handles an error. |
| 401 | */ |
| 402 | void SyncthingProcess::handleError(int error, const QString &errorMessage, bool closed) |
| 403 | { |
| 404 | setErrorString(errorMessage); |
| 405 | emit errorOccurred(static_cast<QProcess::ProcessError>(error)); |
| 406 | if (closed) { |
| 407 | setOpenMode(QIODevice::NotOpen); |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | /*! |
| 412 | * \brief Returns the process' state. |
nothing calls this directly
no outgoing calls
no test coverage detected