PxCrypt v0.1
Encrypt data within an image
|
The EncodeError class is used to report errors during image encoding. More...
#include <>>
Public Types | |
enum | Type { NoError = 0 , MissingPayload = 1 , InvalidImage = 2 , WontFit = 3 , InvalidBpc = 4 } |
Public Member Functions | |
EncodeError () | |
QString | errorString () const |
bool | isValid () const |
Type | type () const |
Friends | |
class | Encoder |
This enum specifies the type of encoding error that occurred.
PxCrypt::EncodeError::EncodeError | ( | ) |
Constructs an invalid encoder error.
QString PxCrypt::EncodeError::errorString | ( | ) | const |
Returns the string representation of the error.
bool PxCrypt::EncodeError::isValid | ( | ) | const |
Returns true
if the error's type is one other than NoError; otherwise, returns false
.
EncodeError::Type PxCrypt::EncodeError::type | ( | ) | const |
Returns the type of encoding error.