diff options
Diffstat (limited to 'Swiften/FileTransfer/FileTransferOptions.h')
| -rw-r--r-- | Swiften/FileTransfer/FileTransferOptions.h | 34 | 
1 files changed, 34 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/FileTransferOptions.h b/Swiften/FileTransfer/FileTransferOptions.h new file mode 100644 index 0000000..993b14b --- /dev/null +++ b/Swiften/FileTransfer/FileTransferOptions.h @@ -0,0 +1,34 @@ +/* + * 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) { +			} +			SWIFTEN_DEFAULT_COPY_CONSTRUCTOR(FileTransferOptions) +			~FileTransferOptions(); + +			FileTransferOptions& withInBandAllowed(bool b) { +				allowInBand = b; +				return *this; +			} + +			bool isInBandAllowed() const { +				return allowInBand; +			} + +			SWIFTEN_DEFAULT_COPY_ASSIGMNENT_OPERATOR(FileTransferOptions) + +		private: +			bool allowInBand; +	}; +}  | 
 Swift