diff options
Diffstat (limited to 'louloulibs/xmpp/xmpp_parser.hpp')
-rw-r--r-- | louloulibs/xmpp/xmpp_parser.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/louloulibs/xmpp/xmpp_parser.hpp b/louloulibs/xmpp/xmpp_parser.hpp index 3474b13..93c6c53 100644 --- a/louloulibs/xmpp/xmpp_parser.hpp +++ b/louloulibs/xmpp/xmpp_parser.hpp @@ -32,13 +32,13 @@ class XmppParser public: explicit XmppParser(); ~XmppParser(); + XmppParser(const XmppParser&) = delete; + XmppParser& operator=(const XmppParser&) = delete; + XmppParser(XmppParser&&) = delete; + XmppParser& operator=(XmppParser&&) = delete; public: /** - * Init the XML parser and install the callbacks - */ - void init_xml_parser(); - /** * Feed the parser with some XML data */ int feed(const char* data, const int len, const bool is_final); @@ -99,6 +99,11 @@ public: private: /** + * Init the XML parser and install the callbacks + */ + void init_xml_parser(); + + /** * Expat structure. */ XML_Parser parser; @@ -123,9 +128,6 @@ private: std::vector<std::function<void(const Stanza&)>> stanza_callbacks; std::vector<std::function<void(const XmlNode&)>> stream_open_callbacks; std::vector<std::function<void(const XmlNode&)>> stream_close_callbacks; - - XmppParser(const XmppParser&) = delete; - XmppParser& operator=(const XmppParser&) = delete; }; #endif // XMPP_PARSER_INCLUDED |