summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Serializer/PayloadSerializers/JingleRawUDPTransportPayloadSerializer.h')
-rw-r--r--Swiften/Serializer/PayloadSerializers/JingleRawUDPTransportPayloadSerializer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/JingleRawUDPTransportPayloadSerializer.h b/Swiften/Serializer/PayloadSerializers/JingleRawUDPTransportPayloadSerializer.h
new file mode 100644
index 0000000..5479d1d
--- /dev/null
+++ b/Swiften/Serializer/PayloadSerializers/JingleRawUDPTransportPayloadSerializer.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2012 Yoann Blein
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <Swiften/Serializer/GenericPayloadSerializer.h>
+#include <Swiften/Elements/JingleRawUDPTransportPayload.h>
+
+namespace Swift {
+ class JingleRawUDPTransportPayloadSerializer : public GenericPayloadSerializer<JingleRawUDPTransportPayload> {
+ public:
+ JingleRawUDPTransportPayloadSerializer();
+
+ virtual std::string serializePayload(boost::shared_ptr<JingleRawUDPTransportPayload>) const;
+
+ private:
+ std::string typeToString(JingleRawUDPTransportPayload::Candidate::Type) const;
+
+ };
+}