summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/StanzaParser.h')
-rw-r--r--Swiften/Parser/StanzaParser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Parser/StanzaParser.h b/Swiften/Parser/StanzaParser.h
index 0af6b43..fc60b47 100644
--- a/Swiften/Parser/StanzaParser.h
+++ b/Swiften/Parser/StanzaParser.h
@@ -1,11 +1,11 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2014 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#pragma once
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
@@ -22,19 +22,19 @@ namespace Swift {
class SWIFTEN_API StanzaParser : public ElementParser, public boost::noncopyable {
public:
StanzaParser(PayloadParserFactoryCollection* factories);
~StanzaParser();
void handleStartElement(const std::string& element, const std::string& ns, const AttributeMap& attributes);
void handleEndElement(const std::string& element, const std::string& ns);
void handleCharacterData(const std::string& data);
- virtual boost::shared_ptr<Element> getElement() const = 0;
+ virtual boost::shared_ptr<ToplevelElement> getElement() const = 0;
virtual void handleStanzaAttributes(const AttributeMap&) {}
virtual boost::shared_ptr<Stanza> getStanza() const {
return boost::dynamic_pointer_cast<Stanza>(getElement());
}
private:
bool inPayload() const {
return currentDepth_ > 1;