diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-09-14 16:17:30 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-09-14 19:48:53 (GMT) |
commit | ef5a4dc3a5b0224628a225ef0dccc679287478be (patch) | |
tree | 126d8f752f18d3d5891cd32cacf2a21734ab0b92 /Swiften/Parser/PayloadParsers/FormParser.h | |
parent | 9ecba612d790c1f613dc959888f62e5d3575faae (diff) | |
download | swift-contrib-ef5a4dc3a5b0224628a225ef0dccc679287478be.zip swift-contrib-ef5a4dc3a5b0224628a225ef0dccc679287478be.tar.bz2 |
Add extended disco support to caps verifier.
Diffstat (limited to 'Swiften/Parser/PayloadParsers/FormParser.h')
-rw-r--r-- | Swiften/Parser/PayloadParsers/FormParser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Parser/PayloadParsers/FormParser.h b/Swiften/Parser/PayloadParsers/FormParser.h index 76a54b9..c41e27f 100644 --- a/Swiften/Parser/PayloadParsers/FormParser.h +++ b/Swiften/Parser/PayloadParsers/FormParser.h @@ -32,6 +32,7 @@ namespace Swift { class BoolFieldParseHelper : public FieldParseHelper { virtual void addValue(const String& s) { boost::dynamic_pointer_cast< GenericFormField<bool> >(getField())->setValue(s == "1" || s == "true"); + getField()->addRawValue(s); } }; class StringFieldParseHelper : public FieldParseHelper { @@ -43,6 +44,7 @@ namespace Swift { else { field->setValue(field->getValue() + "\n" + s); } + getField()->addRawValue(s); } }; class JIDFieldParseHelper : public FieldParseHelper { @@ -57,6 +59,7 @@ namespace Swift { std::vector<String> l = field->getValue(); l.push_back(s); field->setValue(l); + getField()->addRawValue(s); } }; class JIDListFieldParseHelper : public FieldParseHelper { @@ -66,6 +69,7 @@ namespace Swift { std::vector<JID> l = field->getValue(); l.push_back(JID(s)); field->setValue(l); + getField()->addRawValue(s); } }; @@ -92,6 +96,7 @@ namespace Swift { SWIFTEN_DECLARE_FORM_FIELD_PARSE_HELPER(JIDSingle, JID); SWIFTEN_DECLARE_FORM_FIELD_PARSE_HELPER(JIDMulti, JIDList); SWIFTEN_DECLARE_FORM_FIELD_PARSE_HELPER(ListMulti, StringList); + SWIFTEN_DECLARE_FORM_FIELD_PARSE_HELPER(Untyped, StringList); enum Level { TopLevel = 0, |