summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-20 18:49:25 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-20 18:49:25 (GMT)
commitf2e720cef84f8e613b8c72a4a02da1c75db7d226 (patch)
tree81aac24270ccafd2f2e2bb1ac097de3a2b819b3f /Swiften/Client
parent0adf0ba15f8217ac760cfafa355f8d712b3c0b6d (diff)
downloadswift-f2e720cef84f8e613b8c72a4a02da1c75db7d226.zip
swift-f2e720cef84f8e613b8c72a4a02da1c75db7d226.tar.bz2
Added missing struct.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/ClientOptions.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/Swiften/Client/ClientOptions.h b/Swiften/Client/ClientOptions.h
new file mode 100644
index 0000000..1155b46
--- /dev/null
+++ b/Swiften/Client/ClientOptions.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2011 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+struct ClientOptions {
+ enum UseTLS {
+ NeverUseTLS,
+ UseTLSWhenAvailable
+ };
+
+ ClientOptions() : useStreamCompression(true), useTLS(UseTLSWhenAvailable), useStreamResumption(false) {
+ }
+
+ /**
+ * Whether ZLib stream compression should be used when available.
+ *
+ * Default: true
+ */
+ bool useStreamCompression;
+
+ /**
+ * Sets whether TLS encryption should be used.
+ *
+ * Default: UseTLSWhenAvailable
+ */
+ UseTLS useTLS;
+
+ /**
+ * Use XEP-196 stream resumption when available.
+ *
+ * Default: false
+ */
+ bool useStreamResumption;
+};
+