#pragma once #include #include #include "Swiften/StreamStack/StreamLayer.h" namespace Swift { class Timer; class WhitespacePingLayer : public StreamLayer, boost::noncopyable { public: WhitespacePingLayer(); void writeData(const ByteArray& data); void handleDataRead(const ByteArray& data); private: void handleTimerTick(); private: boost::shared_ptr timer; }; }