diff options
Diffstat (limited to 'Swiften/Serializer/XMPPSerializer.h')
-rw-r--r-- | Swiften/Serializer/XMPPSerializer.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Swiften/Serializer/XMPPSerializer.h b/Swiften/Serializer/XMPPSerializer.h index f77e14b..38ba3ff 100644 --- a/Swiften/Serializer/XMPPSerializer.h +++ b/Swiften/Serializer/XMPPSerializer.h @@ -1,5 +1,4 @@ -#ifndef SWIFTEN_XMPPSERIALIZER_H -#define SWIFTEN_XMPPSERIALIZER_H +#pragma once #include <boost/shared_ptr.hpp> #include <vector> @@ -11,12 +10,13 @@ namespace Swift { class PayloadSerializerCollection; class CompressRequestSerializer; + class ProtocolHeader; class XMPPSerializer { public: XMPPSerializer(PayloadSerializerCollection*); - String serializeHeader(const String& from, const String& to, const String& id = "") const; + String serializeHeader(const ProtocolHeader&) const; String serializeElement(boost::shared_ptr<Element> stanza) const; String serializeFooter() const; @@ -24,5 +24,3 @@ namespace Swift { std::vector< boost::shared_ptr<ElementSerializer> > serializers_; }; } - -#endif |