diff options
Diffstat (limited to 'Swiften/StreamStack/WhitespacePingLayer.h')
-rw-r--r-- | Swiften/StreamStack/WhitespacePingLayer.h | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/Swiften/StreamStack/WhitespacePingLayer.h b/Swiften/StreamStack/WhitespacePingLayer.h index 7ed56ca..c9ffe92 100644 --- a/Swiften/StreamStack/WhitespacePingLayer.h +++ b/Swiften/StreamStack/WhitespacePingLayer.h @@ -6,35 +6,36 @@ #pragma once +#include <memory> + #include <boost/noncopyable.hpp> -#include <boost/shared_ptr.hpp> #include <Swiften/Base/API.h> #include <Swiften/StreamStack/StreamLayer.h> namespace Swift { - class Timer; - class TimerFactory; - - class SWIFTEN_API WhitespacePingLayer : public StreamLayer, boost::noncopyable { - public: - WhitespacePingLayer(TimerFactory* timerFactory); - virtual ~WhitespacePingLayer(); - - void setActive(); - void setInactive(); - void writeData(const SafeByteArray& data); - void handleDataRead(const SafeByteArray& data); - - bool getIsActive() const { - return isActive; - } - - private: - void handleTimerTick(); - - private: - bool isActive; - boost::shared_ptr<Timer> timer; - }; + class Timer; + class TimerFactory; + + class SWIFTEN_API WhitespacePingLayer : public StreamLayer, boost::noncopyable { + public: + WhitespacePingLayer(TimerFactory* timerFactory); + virtual ~WhitespacePingLayer(); + + void setActive(); + void setInactive(); + void writeData(const SafeByteArray& data); + void handleDataRead(const SafeByteArray& data); + + bool getIsActive() const { + return isActive; + } + + private: + void handleTimerTick(); + + private: + bool isActive; + std::shared_ptr<Timer> timer; + }; } |