diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-22 08:55:08 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-24 17:10:23 (GMT) |
commit | b6a34463dfcedd454ab42230a47cdb7294a76f21 (patch) | |
tree | 832b0243325451932c0d15e9e33d53948fce0110 /Swiften/Elements | |
parent | 6e4b357141a6d09632f1e96d0eaf54f79daf52c9 (diff) | |
download | swift-b6a34463dfcedd454ab42230a47cdb7294a76f21.zip swift-b6a34463dfcedd454ab42230a47cdb7294a76f21.tar.bz2 |
Implemented VCardManager.
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_; |