Changeset View
Changeset View
Standalone View
Standalone View
kded/engine/commandresult.cpp
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "commandresult.h" | 21 | #include "commandresult.h" | ||
22 | 22 | | |||
23 | namespace PlasmaVault { | 23 | namespace PlasmaVault { | ||
24 | 24 | | |||
25 | Error::Error(Code code, const QString &message) | 25 | Error::Error(Code code, const QString &message, const QString &out, const QString &err) | ||
26 | : m_code(code) | 26 | : m_code(code) | ||
27 | , m_message(message) | 27 | , m_message(message) | ||
28 | , m_out(out) | ||||
29 | , m_err(err) | ||||
28 | { | 30 | { | ||
29 | } | 31 | } | ||
30 | 32 | | |||
31 | Error::Code Error::code() const | 33 | Error::Code Error::code() const | ||
32 | { | 34 | { | ||
33 | return m_code; | 35 | return m_code; | ||
34 | } | 36 | } | ||
35 | 37 | | |||
36 | QString Error::message() const | 38 | QString Error::message() const | ||
37 | { | 39 | { | ||
38 | return m_message; | 40 | return m_message; | ||
39 | } | 41 | } | ||
40 | 42 | | |||
43 | QString Error::out() const | ||||
44 | { | ||||
45 | return m_out; | ||||
46 | } | ||||
47 | | ||||
48 | QString Error::err() const | ||||
49 | { | ||||
50 | return m_err; | ||||
51 | } | ||||
52 | | ||||
41 | } // namespace PlasmaVault | 53 | } // namespace PlasmaVault | ||
42 | 54 | |