diff options
Diffstat (limited to 'Swiften/Client')
-rw-r--r-- | Swiften/Client/ClientSession.cpp | 6 | ||||
-rw-r--r-- | Swiften/Client/ClientSession.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp index ae98ee6..a0e1289 100644 --- a/Swiften/Client/ClientSession.cpp +++ b/Swiften/Client/ClientSession.cpp @@ -115,7 +115,7 @@ void ClientSession::handleElement(boost::shared_ptr<Element> element) { } else { state_ = SessionStarted; - setInitialized(); + onSessionStarted(); } } } @@ -171,7 +171,7 @@ void ClientSession::handleElement(boost::shared_ptr<Element> element) { else if (state_ == StartingSession) { if (iq->getType() == IQ::Result) { state_ = SessionStarted; - setInitialized(); + onSessionStarted(); } else if (iq->getType() == IQ::Error) { finishSession(SessionStartError); @@ -187,7 +187,7 @@ void ClientSession::handleElement(boost::shared_ptr<Element> element) { else { // FIXME Not correct? state_ = SessionStarted; - setInitialized(); + onSessionStarted(); } } diff --git a/Swiften/Client/ClientSession.h b/Swiften/Client/ClientSession.h index cb1e098..fead182 100644 --- a/Swiften/Client/ClientSession.h +++ b/Swiften/Client/ClientSession.h @@ -74,6 +74,7 @@ namespace Swift { public: boost::signal<void ()> onNeedCredentials; + boost::signal<void ()> onSessionStarted; private: TLSLayerFactory* tlsLayerFactory_; |