diff options
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/IQ.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/Elements/IQ.h b/Swiften/Elements/IQ.h index 790d032..2bb55e1 100644 --- a/Swiften/Elements/IQ.h +++ b/Swiften/Elements/IQ.h @@ -8,10 +8,11 @@ #include "Swiften/Elements/Stanza.h" #include "Swiften/Elements/ErrorPayload.h" +#include "Swiften/Base/Shared.h" namespace Swift { - class IQ : public Stanza + class IQ : public Stanza, public Shared<IQ> { public: enum Type { Get, Set, Result, Error }; @@ -33,8 +34,8 @@ namespace Swift static boost::shared_ptr<IQ> createError( const JID& to, const String& id, - ErrorPayload::Condition condition, - ErrorPayload::Type type); + ErrorPayload::Condition condition = ErrorPayload::BadRequest, + ErrorPayload::Type type = ErrorPayload::Cancel); private: Type type_; |