diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-29 15:20:29 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-29 17:32:41 (GMT) |
commit | 46b13c4d25270c6933d20c6aa790619e30e4cfe8 (patch) | |
tree | 36fb78a6eb49180ddbffe2d50e5034f89474e72e /Swiften/Client/Client.h | |
parent | f2301a18167bc1221cc0b70b71692ce9d1021119 (diff) | |
download | swift-contrib-46b13c4d25270c6933d20c6aa790619e30e4cfe8.zip swift-contrib-46b13c4d25270c6933d20c6aa790619e30e4cfe8.tar.bz2 |
Added stanza acking support to client.
Diffstat (limited to 'Swiften/Client/Client.h')
-rw-r--r-- | Swiften/Client/Client.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h index 313f856..10e7c38 100644 --- a/Swiften/Client/Client.h +++ b/Swiften/Client/Client.h @@ -44,6 +44,8 @@ namespace Swift { bool isAvailable(); + bool getStreamManagementEnabled() const; + virtual void sendIQ(boost::shared_ptr<IQ>); virtual void sendMessage(boost::shared_ptr<Message>); virtual void sendPresence(boost::shared_ptr<Presence>); @@ -53,16 +55,18 @@ 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); void send(boost::shared_ptr<Stanza>); virtual String getNewIQID(); - void handleElement(boost::shared_ptr<Element>); + void handleStanza(boost::shared_ptr<Stanza>); void handleSessionFinished(boost::shared_ptr<Error>); void handleNeedCredentials(); void handleDataRead(const String&); void handleDataWritten(const String&); + void handleStanzaAcked(boost::shared_ptr<Stanza>); void closeConnection(); |