summaryrefslogtreecommitdiffstats
blob: d7bdc11a73451b3debbb23b3bb83190e4f7acd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * 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/InputEventPayload.h>

#include <boost/shared_ptr.hpp>

namespace Swift {
	class InputEventSerializer : public GenericPayloadSerializer<InputEventPayload> {
		public:
			virtual std::string serializePayload(boost::shared_ptr<InputEventPayload>) const;

		private:
			static std::string actionToString(InputEventPayload::Action action);
			static std::string eventTypeToString(InputEventPayload::Event::EventType eventType);
	};
}