diff options
Diffstat (limited to 'Swiften/FileTransfer/FileTransferError.h')
-rw-r--r-- | Swiften/FileTransfer/FileTransferError.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/FileTransferError.h b/Swiften/FileTransfer/FileTransferError.h new file mode 100644 index 0000000..b718927 --- /dev/null +++ b/Swiften/FileTransfer/FileTransferError.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +namespace Swift { + class FileTransferError { + public: + enum Type { + UnknownError, + PeerError, + ReadError, + }; + + FileTransferError(Type type = UnknownError) : type(type) {} + + Type getType() const { + return type; + } + + private: + Type type; + }; +} |