summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-26 11:41:09 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-26 11:42:47 (GMT)
commit23e82d08519c747e6d8d2add53d7e84b363687bb (patch)
treec78b371e240eb07fb2cd413d46da4ec2305f708c /Swiften/Client/CoreClient.h
parent8d14d9b2e0e459df6ca974dadee447abb3293a98 (diff)
downloadswift-23e82d08519c747e6d8d2add53d7e84b363687bb.zip
swift-23e82d08519c747e6d8d2add53d7e84b363687bb.tar.bz2
Added an option to not use stream compression.
Diffstat (limited to 'Swiften/Client/CoreClient.h')
-rw-r--r--Swiften/Client/CoreClient.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h
index 92cd197..ee73396 100644
--- a/Swiften/Client/CoreClient.h
+++ b/Swiften/Client/CoreClient.h
@@ -143,6 +143,11 @@ namespace Swift {
*/
void setCertificateTrustChecker(CertificateTrustChecker*);
+ /**
+ * Sets whether ZLib stream compression should be used when available.
+ */
+ void setUseStreamCompression(bool b);
+
public:
/**
* Emitted when the client was disconnected from the network.
@@ -207,6 +212,7 @@ namespace Swift {
JID jid_;
std::string password_;
NetworkFactories* networkFactories;
+ bool useStreamCompression;
ClientSessionStanzaChannel* stanzaChannel_;
IQRouter* iqRouter_;
Connector::ref connector_;