diff options
author | dknn <yoann.blein@free.fr> | 2012-06-02 22:41:35 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 08:49:55 (GMT) |
commit | 174d01d9812694d201f6f3939fc7b8bf4650cfa2 (patch) | |
tree | 2662370404afd5027afea8dd8f990a81d9df83b2 /Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h | |
parent | ed95bc3cb17285a16a201f8ffe26ac38a4403f47 (diff) | |
download | swift-contrib-174d01d9812694d201f6f3939fc7b8bf4650cfa2.zip swift-contrib-174d01d9812694d201f6f3939fc7b8bf4650cfa2.tar.bz2 |
Major part of a RTP description element
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h new file mode 100644 index 0000000..3d23d85 --- /dev/null +++ b/Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2012 Yoann Blein + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + + +#pragma once + +#include <Swiften/Serializer/GenericPayloadSerializer.h> +#include <Swiften/Elements/JingleRTPDescription.h> + + + +namespace Swift { + class PayloadSerializerCollection; + class XMLElement; + + class JingleRTPDescriptionSerializer : public GenericPayloadSerializer<JingleRTPDescription> { + public: + JingleRTPDescriptionSerializer(); + + virtual std::string serializePayload(boost::shared_ptr<JingleRTPDescription>) const; + + private: + std::string mediaTypeToString(JingleRTPDescription::MediaType mediaType) const; + }; +} |