PxCrypt v0.1
Encrypt data within an image
|
The DecodeError class is used to report errors during image decoding. More...
#include <>>
Public Types | |
enum | Type { NoError = 0 , InvalidSource = 1 , MissingMedium = 2 , DimensionMismatch = 3 , NotLargeEnough = 4 , InvalidMeta = 5 , InvalidHeader = 6 , LengthMismatch = 7 , UnexpectedEnd = 8 , ChecksumMismatch = 9 } |
Public Member Functions | |
DecodeError () | |
QString | errorString () const |
bool | isValid () const |
Type | type () const |
Friends | |
class | Decoder |
This enum specifies the type of encoding error that occurred.
PxCrypt::DecodeError::DecodeError | ( | ) |
Constructs an invalid DecodeError error.
QString PxCrypt::DecodeError::errorString | ( | ) | const |
Returns the string representation of the error.
bool PxCrypt::DecodeError::isValid | ( | ) | const |
Returns true
if the error's type is one other than NoError; otherwise, returns false
.
DecodeError::Type PxCrypt::DecodeError::type | ( | ) | const |
Returns the type of decoding error.