39#include <SignOn/libsignoncommon.h>
51:
public QObject { Q_OBJECT
132 Error() : m_type((int)
Unknown), m_message(QString()) { registerType(); }
140#ifdef SIGNON_INTERNAL
151 m_type(
type), m_message(
message) { registerType(); }
158 { m_type = src.
type(); m_message = src.
message();
return *
this; }
183 int type()
const {
return m_type; }
191 inline void registerType();
200Q_DECLARE_METATYPE(SignOn::Error)
202void SignOn::Error::registerType() {
203 qRegisterMetaType<SignOn::Error>(
"SignOn::Error");
Error(const Error &src)
Copy constructor.
Error(int type, const QString &message=QString())
For convenience constructor.
ErrorType
Error codes for all the Signon by default supported errors.
@ MethodOrMechanismNotAllowed
@ CredentialsNotAvailable
@ IdentityOperationCanceled
Error & operator=(const Error &src)
Assignment operator.
void setType(int type)
Sets the type of the error.
void setMessage(const QString &message)
Sets the error message.
virtual ~Error()
Destructor.