summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/FileTransfer/FileTransferOptions.h')
-rw-r--r--Swiften/FileTransfer/FileTransferOptions.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/FileTransferOptions.h b/Swiften/FileTransfer/FileTransferOptions.h
new file mode 100644
index 0000000..304ced8
--- /dev/null
+++ b/Swiften/FileTransfer/FileTransferOptions.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2013 Remko Tronçon
+ * Licensed under the GNU General Public License.
+ * See the COPYING file for more information.
+ */
+
+#pragma once
+
+#include <Swiften/Base/Override.h>
+#include <Swiften/Base/API.h>
+
+namespace Swift {
+ class SWIFTEN_API FileTransferOptions {
+ public:
+ FileTransferOptions() : allowInBand(false) {
+ }
+
+ ~FileTransferOptions();
+
+ FileTransferOptions& withInBandAllowed(bool b) {
+ allowInBand = b;
+ return *this;
+ }
+
+ bool isInBandAllowed() const {
+ return allowInBand;
+ }
+
+ private:
+ bool allowInBand;
+ };
+}