summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-06-02 22:41:35 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 08:49:55 (GMT)
commit174d01d9812694d201f6f3939fc7b8bf4650cfa2 (patch)
tree2662370404afd5027afea8dd8f990a81d9df83b2 /Swiften/Serializer/PayloadSerializers/JingleRTPDescriptionSerializer.h
parented95bc3cb17285a16a201f8ffe26ac38a4403f47 (diff)
downloadswift-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.h28
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;
+ };
+}