diff options
Diffstat (limited to 'Swiften/Parser/PayloadParserFactory.h')
-rw-r--r-- | Swiften/Parser/PayloadParserFactory.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Swiften/Parser/PayloadParserFactory.h b/Swiften/Parser/PayloadParserFactory.h index e265e5b..84f11ff 100644 --- a/Swiften/Parser/PayloadParserFactory.h +++ b/Swiften/Parser/PayloadParserFactory.h @@ -1,7 +1,7 @@ /* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. + * Copyright (c) 2010 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. */ #pragma once @@ -10,24 +10,24 @@ #include <Swiften/Parser/AttributeMap.h> namespace Swift { - - class PayloadParser; - /** - * A factory for PayloadParsers. - */ - class SWIFTEN_API PayloadParserFactory { - public: - virtual ~PayloadParserFactory(); + class PayloadParser; - /** - * Checks whether this factory can parse the given top-level element in the given namespace (with the given attributes). - */ - virtual bool canParse(const std::string& element, const std::string& ns, const AttributeMap& attributes) const = 0; + /** + * A factory for PayloadParsers. + */ + class SWIFTEN_API PayloadParserFactory { + public: + virtual ~PayloadParserFactory(); - /** - * Creates a new payload parser. - */ - virtual PayloadParser* createPayloadParser() = 0; - }; + /** + * Checks whether this factory can parse the given top-level element in the given namespace (with the given attributes). + */ + virtual bool canParse(const std::string& element, const std::string& ns, const AttributeMap& attributes) const = 0; + + /** + * Creates a new payload parser. + */ + virtual PayloadParser* createPayloadParser() = 0; + }; } |