From 249a28910a7126a8368788df467d10241a82118f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 5 Aug 2014 17:37:24 +0200 Subject: [PATCH] Make it possible to update message and details fields of a JobResult --- src/libcalamares/Job.cpp | 14 ++++++++++++++ src/libcalamares/Job.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/src/libcalamares/Job.cpp b/src/libcalamares/Job.cpp index 9e32ff47f..5a63c100e 100644 --- a/src/libcalamares/Job.cpp +++ b/src/libcalamares/Job.cpp @@ -35,6 +35,13 @@ JobResult::message() const } +void +JobResult::setMessage( const QString& message ) +{ + m_message = message; +} + + QString JobResult::details() const { @@ -42,6 +49,13 @@ JobResult::details() const } +void +JobResult::setDetails( const QString& details ) +{ + m_details = details; +} + + JobResult JobResult::ok() { diff --git a/src/libcalamares/Job.h b/src/libcalamares/Job.h index 85eb93cf4..f6a2f10dc 100644 --- a/src/libcalamares/Job.h +++ b/src/libcalamares/Job.h @@ -32,8 +32,10 @@ public: operator bool() const; QString message() const; + void setMessage( const QString& message ); QString details() const; + void setDetails( const QString& details ); static JobResult ok();