summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-05-07 17:20:10 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-05-07 17:20:10 (GMT)
commitad14f307e7b9647ac2ff96cd1947e709dd45f73d (patch)
tree0f9b23a0e9ca999cec0eaa3c8cdf3f15d01cb00e /Swiften/Elements/IQ.h
parent0dcd8ae902a7902a32b9e4bfbb1ec12a98d00ce4 (diff)
downloadswift-ad14f307e7b9647ac2ff96cd1947e709dd45f73d.zip
swift-ad14f307e7b9647ac2ff96cd1947e709dd45f73d.tar.bz2
Added convenience method for responding with a custom error payload.
Diffstat (limited to 'Swiften/Elements/IQ.h')
-rw-r--r--Swiften/Elements/IQ.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/Elements/IQ.h b/Swiften/Elements/IQ.h
index 05cd96a..99561f8 100644
--- a/Swiften/Elements/IQ.h
+++ b/Swiften/Elements/IQ.h
@@ -41,13 +41,15 @@ namespace Swift {
const JID& to,
const std::string& id,
ErrorPayload::Condition condition = ErrorPayload::BadRequest,
- ErrorPayload::Type type = ErrorPayload::Cancel);
+ ErrorPayload::Type type = ErrorPayload::Cancel,
+ boost::shared_ptr<Payload> payload = boost::shared_ptr<Payload>());
static boost::shared_ptr<IQ> createError(
const JID& to,
const JID& from,
const std::string& id,
ErrorPayload::Condition condition = ErrorPayload::BadRequest,
- ErrorPayload::Type type = ErrorPayload::Cancel);
+ ErrorPayload::Type type = ErrorPayload::Cancel,
+ boost::shared_ptr<Payload> payload = boost::shared_ptr<Payload>());
private:
Type type_;