diff options
| author | Remko Tronçon <git@el-tramo.be> | 2009-11-12 19:48:32 (GMT) |
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2009-11-12 20:41:59 (GMT) |
| commit | 8231ecc07c1c7d5e260a2795b0660de157501850 (patch) | |
| tree | 935baa855914d632086fcac5f26330c2f0261216 /Swiften/Session/BasicSessionStream.h | |
| parent | 48bb7441f913144d6a20687ff79264e4631156f0 (diff) | |
| download | swift-8231ecc07c1c7d5e260a2795b0660de157501850.zip swift-8231ecc07c1c7d5e260a2795b0660de157501850.tar.bz2 | |
Created a TimerFactory, and abstracted Timer.
Diffstat (limited to 'Swiften/Session/BasicSessionStream.h')
| -rw-r--r-- | Swiften/Session/BasicSessionStream.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/Session/BasicSessionStream.h b/Swiften/Session/BasicSessionStream.h index 07bae81..f36df83 100644 --- a/Swiften/Session/BasicSessionStream.h +++ b/Swiften/Session/BasicSessionStream.h @@ -6,12 +6,13 @@ #include "Swiften/Network/Connection.h" #include "Swiften/Session/SessionStream.h" namespace Swift { class TLSLayerFactory; class TLSLayer; + class TimerFactory; class WhitespacePingLayer; class PayloadParserFactoryCollection; class PayloadSerializerCollection; class StreamStack; class XMPPLayer; class ConnectionLayer; @@ -21,13 +22,14 @@ namespace Swift { public boost::enable_shared_from_this<BasicSessionStream> { public: BasicSessionStream( boost::shared_ptr<Connection> connection, PayloadParserFactoryCollection* payloadParserFactories, PayloadSerializerCollection* payloadSerializers, - TLSLayerFactory* tlsLayerFactory + TLSLayerFactory* tlsLayerFactory, + TimerFactory* whitespacePingLayerFactory ); ~BasicSessionStream(); void initialize(); virtual bool isAvailable(); @@ -56,12 +58,13 @@ namespace Swift { private: bool available; boost::shared_ptr<Connection> connection; PayloadParserFactoryCollection* payloadParserFactories; PayloadSerializerCollection* payloadSerializers; TLSLayerFactory* tlsLayerFactory; + TimerFactory* timerFactory; boost::shared_ptr<XMPPLayer> xmppLayer; boost::shared_ptr<ConnectionLayer> connectionLayer; StreamStack* streamStack; boost::shared_ptr<TLSLayer> tlsLayer; boost::shared_ptr<WhitespacePingLayer> whitespacePingLayer; }; |
Swift