mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[libcalamares] Document the pseudo-constructors for JobResult
This commit is contained in:
parent
9cbfd200a1
commit
c8229733b0
1 changed files with 9 additions and 2 deletions
|
@ -68,9 +68,16 @@ public:
|
|||
|
||||
/// @brief an "ok status" result
|
||||
static JobResult ok();
|
||||
/// @brief an "error" result resulting from the execution of the job
|
||||
/** @brief an "error" result resulting from the execution of the job
|
||||
*
|
||||
* The error code is set to GenericError.
|
||||
*/
|
||||
static JobResult error( const QString& message, const QString& details = QString() );
|
||||
/// @brief an "internal error" meaning the job itself has a problem (usually for python)
|
||||
/** @brief an "internal error" meaning the job itself has a problem (usually for python)
|
||||
*
|
||||
* Pass in a suitable error code; using 0 (which would normally mean "ok") instead
|
||||
* gives you a GenericError code.
|
||||
*/
|
||||
static JobResult internalError( const QString&, const QString& details, int errorCode );
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue