diff options
Diffstat (limited to 'Swiften/Serializer/IQSerializer.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/Serializer/IQSerializer.h | 30 |
2 files changed, 0 insertions, 30 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/Serializer/IQSerializer.h b/Swiften/Serializer/IQSerializer.h deleted file mode 100644 index 3623f24..0000000 --- a/Swiften/Serializer/IQSerializer.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef SWIFTEN_IQSerializer_H -#define SWIFTEN_IQSerializer_H - -#include <cassert> - -#include "Swiften/Serializer/GenericStanzaSerializer.h" -#include "Swiften/Elements/IQ.h" -#include "Swiften/Serializer/XML/XMLElement.h" - -namespace Swift { - class IQSerializer : public GenericStanzaSerializer<IQ> { - public: - IQSerializer(PayloadSerializerCollection* payloadSerializers) : - GenericStanzaSerializer<IQ>("iq", payloadSerializers) {} - - private: - virtual void setStanzaSpecificAttributesGeneric( - boost::shared_ptr<IQ> iq, - XMLElement& element) const { - switch (iq->getType()) { - case IQ::Get: element.setAttribute("type","get"); break; - case IQ::Set: element.setAttribute("type","set"); break; - case IQ::Result: element.setAttribute("type","result"); break; - case IQ::Error: element.setAttribute("type","error"); break; - } - } - }; -} - -#endif |