summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-09 21:57:09 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-09 21:57:09 (GMT)
commit08cc79dfe35b0735ef49108b82c52f94aab02e84 (patch)
tree6592881a96f7298ed6b1fc28073da4395d7ac368 /Swiften/Parser
parent6c9ab286f209266e627bd011847c3b5d6476ddab (diff)
downloadswift-contrib-08cc79dfe35b0735ef49108b82c52f94aab02e84.zip
swift-contrib-08cc79dfe35b0735ef49108b82c52f94aab02e84.tar.bz2
Upgraded stream errors to new RFC3920bis.
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/StreamErrorParser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swiften/Parser/StreamErrorParser.cpp b/Swiften/Parser/StreamErrorParser.cpp
index 3d30d77..d222c40 100644
--- a/Swiften/Parser/StreamErrorParser.cpp
+++ b/Swiften/Parser/StreamErrorParser.cpp
@@ -60,12 +60,18 @@ void StreamErrorParser::handleEndElement(const String& element, const String& ns
else if(element == "not-authorized") {
getElementGeneric()->setType(StreamError::NotAuthorized);
}
+ else if(element == "not-well-formed") {
+ getElementGeneric()->setType(StreamError::NotWellFormed);
+ }
else if(element == "policy-violation") {
getElementGeneric()->setType(StreamError::PolicyViolation);
}
else if(element == "remote-connection-failed") {
getElementGeneric()->setType(StreamError::RemoteConnectionFailed);
}
+ else if(element == "reset") {
+ getElementGeneric()->setType(StreamError::Reset);
+ }
else if(element == "resource-constraint") {
getElementGeneric()->setType(StreamError::ResourceConstraint);
}
@@ -90,9 +96,6 @@ void StreamErrorParser::handleEndElement(const String& element, const String& ns
else if(element == "unsupported-version") {
getElementGeneric()->setType(StreamError::UnsupportedVersion);
}
- else if(element == "xml-not-well-formed") {
- getElementGeneric()->setType(StreamError::XMLNotWellFormed);
- }
else {
getElementGeneric()->setType(StreamError::UndefinedCondition);
}