diff options
Diffstat (limited to 'Swiften/Client')
-rw-r--r-- | Swiften/Client/Client.h | 1 | ||||
-rw-r--r-- | Swiften/Client/DummyStanzaChannel.h | 4 | ||||
-rw-r--r-- | Swiften/Client/StanzaChannel.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h index 10e7c38..57228ef 100644 --- a/Swiften/Client/Client.h +++ b/Swiften/Client/Client.h @@ -55,7 +55,6 @@ namespace Swift { boost::signal<void ()> onConnected; boost::signal<void (const String&)> onDataRead; boost::signal<void (const String&)> onDataWritten; - boost::signal<void (boost::shared_ptr<Stanza>)> onStanzaAcked; private: void handleConnectorFinished(boost::shared_ptr<Connection>, Connector::ref); diff --git a/Swiften/Client/DummyStanzaChannel.h b/Swiften/Client/DummyStanzaChannel.h index b35ed92..d43d68a 100644 --- a/Swiften/Client/DummyStanzaChannel.h +++ b/Swiften/Client/DummyStanzaChannel.h @@ -39,6 +39,10 @@ namespace Swift { return true; } + virtual bool getStreamManagementEnabled() const { + return false; + } + template<typename T> bool isRequestAtIndex(int index, const JID& jid, IQ::Type type) { boost::shared_ptr<IQ> iqStanza = boost::dynamic_pointer_cast<IQ>(sentStanzas[index]); return iqStanza && iqStanza->getType() == type && iqStanza->getTo() == jid && iqStanza->getPayload<T>(); diff --git a/Swiften/Client/StanzaChannel.h b/Swiften/Client/StanzaChannel.h index bfde05c..09a6db3 100644 --- a/Swiften/Client/StanzaChannel.h +++ b/Swiften/Client/StanzaChannel.h @@ -19,8 +19,10 @@ namespace Swift { virtual void sendMessage(boost::shared_ptr<Message>) = 0; virtual void sendPresence(boost::shared_ptr<Presence>) = 0; virtual bool isAvailable() = 0; + virtual bool getStreamManagementEnabled() const = 0; boost::signal<void (boost::shared_ptr<Message>)> onMessageReceived; boost::signal<void (boost::shared_ptr<Presence>) > onPresenceReceived; + boost::signal<void (boost::shared_ptr<Stanza>)> onStanzaAcked; }; } |