summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Client/ClientSessionStanzaChannel.h')
-rw-r--r--Swiften/Client/ClientSessionStanzaChannel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Client/ClientSessionStanzaChannel.h b/Swiften/Client/ClientSessionStanzaChannel.h
index 0527a5c..c4ee393 100644
--- a/Swiften/Client/ClientSessionStanzaChannel.h
+++ b/Swiften/Client/ClientSessionStanzaChannel.h
@@ -6,47 +6,47 @@
#pragma once
#include <memory>
#include <Swiften/Base/API.h>
#include <Swiften/Base/IDGenerator.h>
#include <Swiften/Client/ClientSession.h>
#include <Swiften/Client/StanzaChannel.h>
#include <Swiften/Elements/IQ.h>
#include <Swiften/Elements/Message.h>
#include <Swiften/Elements/Presence.h>
namespace Swift {
/**
* StanzaChannel implementation around a ClientSession.
*/
class SWIFTEN_API ClientSessionStanzaChannel : public StanzaChannel {
public:
virtual ~ClientSessionStanzaChannel();
void setSession(std::shared_ptr<ClientSession> session);
void sendIQ(std::shared_ptr<IQ> iq);
void sendMessage(std::shared_ptr<Message> message);
void sendPresence(std::shared_ptr<Presence> presence);
bool getStreamManagementEnabled() const;
virtual std::vector<Certificate::ref> getPeerCertificateChain() const;
bool isAvailable() const {
- return session && session->getState() == ClientSession::Initialized;
+ return session && session->getState() == ClientSession::State::Initialized;
}
private:
std::string getNewIQID();
void send(std::shared_ptr<Stanza> stanza);
void handleSessionFinished(std::shared_ptr<Error> error);
void handleStanza(std::shared_ptr<Stanza> stanza);
void handleStanzaAcked(std::shared_ptr<Stanza> stanza);
void handleSessionInitialized();
private:
IDGenerator idGenerator;
std::shared_ptr<ClientSession> session;
};
}