diff options
author | Tobias Markmann <tm@ayena.de> | 2015-03-01 20:56:38 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-03-02 15:35:01 (GMT) |
commit | ed3cd92d0ed1109dfcfd8f81bb43c91a6f73201e (patch) | |
tree | 4b094e56e07c739980cfe604cd217b1e8b9b772a /Swiften/FileTransfer/FailingTransportSession.h | |
parent | db98c3283af01ccaf904b8e65879c026c4b181ec (diff) | |
download | swift-ed3cd92d0ed1109dfcfd8f81bb43c91a6f73201e.zip swift-ed3cd92d0ed1109dfcfd8f81bb43c91a6f73201e.tar.bz2 |
Move *TransportSession to their own files
Test-Information:
Builds.
Change-Id: I1d8a942a2063c6bc0f7322161a33c0413a6899a3
Diffstat (limited to 'Swiften/FileTransfer/FailingTransportSession.h')
-rw-r--r-- | Swiften/FileTransfer/FailingTransportSession.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/FailingTransportSession.h b/Swiften/FileTransfer/FailingTransportSession.h new file mode 100644 index 0000000..c197052 --- /dev/null +++ b/Swiften/FileTransfer/FailingTransportSession.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2015 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. + */ + +#pragma once + +#include <Swiften/Base/API.h> +#include <Swiften/FileTransfer/TransportSession.h> + +namespace Swift { + +class SWIFTEN_API FailingTransportSession : public TransportSession { + public: + virtual ~FailingTransportSession() { + } + + virtual void start() SWIFTEN_OVERRIDE { + assert(false); + onFinished(FileTransferError(FileTransferError::PeerError)); + } + + virtual void stop() SWIFTEN_OVERRIDE { + } +}; + +} |