diff options
Diffstat (limited to 'Swiften/Serializer/PayloadSerializerCollection.h')
-rw-r--r-- | Swiften/Serializer/PayloadSerializerCollection.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Swiften/Serializer/PayloadSerializerCollection.h b/Swiften/Serializer/PayloadSerializerCollection.h index d0cf20e..53b3135 100644 --- a/Swiften/Serializer/PayloadSerializerCollection.h +++ b/Swiften/Serializer/PayloadSerializerCollection.h @@ -1,30 +1,30 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once +#include <memory> #include <vector> -#include <boost/shared_ptr.hpp> #include <Swiften/Base/API.h> #include <Swiften/Elements/Payload.h> namespace Swift { - class PayloadSerializer; - + class PayloadSerializer; - class SWIFTEN_API PayloadSerializerCollection { - public: - PayloadSerializerCollection(); + class SWIFTEN_API PayloadSerializerCollection { + public: + PayloadSerializerCollection(); + virtual ~PayloadSerializerCollection(); - void addSerializer(PayloadSerializer* factory); - void removeSerializer(PayloadSerializer* factory); - PayloadSerializer* getPayloadSerializer(boost::shared_ptr<Payload>) const; + void addSerializer(PayloadSerializer* factory); + void removeSerializer(PayloadSerializer* factory); + PayloadSerializer* getPayloadSerializer(std::shared_ptr<Payload>) const; - private: - std::vector<PayloadSerializer*> serializers_; - }; + private: + std::vector<PayloadSerializer*> serializers_; + }; } |