diff options
Diffstat (limited to 'Swiften/Client/DummyStanzaChannel.h')
| -rw-r--r-- | Swiften/Client/DummyStanzaChannel.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Client/DummyStanzaChannel.h b/Swiften/Client/DummyStanzaChannel.h index 4cc0f7e..1ba70ad 100644 --- a/Swiften/Client/DummyStanzaChannel.h +++ b/Swiften/Client/DummyStanzaChannel.h @@ -42,20 +42,24 @@ namespace Swift { id += "-" + std::to_string(idCounter_++); } return id; } virtual bool isAvailable() const { return available_; } + virtual void setStreamManagementEnabled(bool enable) { + streamManagement_ = enable; + } + virtual bool getStreamManagementEnabled() const { - return false; + return streamManagement_; } template<typename T> bool isRequestAtIndex(size_t index, const JID& jid, IQ::Type type) { if (index >= sentStanzas.size()) { return false; } std::shared_ptr<IQ> iqStanza = std::dynamic_pointer_cast<IQ>(sentStanzas[index]); return iqStanza && iqStanza->getType() == type && iqStanza->getTo() == jid && iqStanza->getPayload<T>(); } @@ -95,11 +99,12 @@ namespace Swift { std::vector<Certificate::ref> getPeerCertificateChain() const { return std::vector<Certificate::ref>(); } std::vector<std::shared_ptr<Stanza> > sentStanzas; bool available_ = true; bool uniqueIDs_ = false; unsigned int idCounter_ = 0; + bool streamManagement_ = false; }; } |
Swift