summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-05-30 09:15:50 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-05-30 09:15:50 (GMT)
commitdb95fac71be96a8279d987edf2abc1fa448c0cae (patch)
tree1dfc2361bcc8f4638d9d89d7efbc61c13e3b5a91 /Swiften/Elements/ErrorPayload.h
parent1729793f2a5e9bd78138e86084a6efc386badfd0 (diff)
downloadswift-contrib-db95fac71be96a8279d987edf2abc1fa448c0cae.zip
swift-contrib-db95fac71be96a8279d987edf2abc1fa448c0cae.tar.bz2
Allow payloads inside Errors
Diffstat (limited to 'Swiften/Elements/ErrorPayload.h')
-rw-r--r--Swiften/Elements/ErrorPayload.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Swiften/Elements/ErrorPayload.h b/Swiften/Elements/ErrorPayload.h
index 9245a83..6d31a98 100644
--- a/Swiften/Elements/ErrorPayload.h
+++ b/Swiften/Elements/ErrorPayload.h
@@ -69,9 +69,18 @@ namespace Swift {
return text_;
}
+ void setPayload(boost::shared_ptr<Payload> payload) {
+ payload_ = payload;
+ }
+
+ boost::shared_ptr<Payload> getPayload() {
+ return payload_;
+ }
+
private:
Type type_;
Condition condition_;
std::string text_;
+ boost::shared_ptr<Payload> payload_;
};
}