summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/XMLParserFactory.h')
-rw-r--r--Swiften/Parser/XMLParserFactory.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/Swiften/Parser/XMLParserFactory.h b/Swiften/Parser/XMLParserFactory.h
index 6979ea4..ae3c90e 100644
--- a/Swiften/Parser/XMLParserFactory.h
+++ b/Swiften/Parser/XMLParserFactory.h
@@ -1,21 +1,23 @@
/*
- * 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
+#include <memory>
+
#include <Swiften/Base/API.h>
namespace Swift {
- class XMLParser;
- class XMLParserClient;
+ class XMLParser;
+ class XMLParserClient;
- class SWIFTEN_API XMLParserFactory {
- public:
- virtual ~XMLParserFactory();
+ class SWIFTEN_API XMLParserFactory {
+ public:
+ virtual ~XMLParserFactory();
- virtual XMLParser* createXMLParser(XMLParserClient*) = 0;
- };
+ virtual std::unique_ptr<XMLParser> createXMLParser(XMLParserClient*, bool allowComments = false) = 0;
+ };
}