27 #ifndef ACCOUNTS_ERROR_H 28 #define ACCOUNTS_ERROR_H 33 #include <Accounts/accountscommon.h> 37 typedef struct _GError GError;
61 Error(): m_type(NoError), m_message(QString()) { registerType(); }
68 m_type(src.type()), m_message(src.message()) {}
76 m_type(type), m_message(message)
84 { m_type = src.
type(); m_message = src.
message();
return *
this; }
99 QString
message()
const {
return m_message; }
103 friend class Account;
105 Error(
const GError *error);
107 inline void registerType();
121 void Accounts::Error::registerType()
123 qRegisterMetaType<Accounts::Error>(
"Accounts::Error");
126 #endif // ACCOUNTS_ERROR_H virtual ~Error()
Destructor.
Manager of accounts, services and providers.
ErrorType
Error codes for all the accounts errors.
Error(const Error &src)
Copy constructor.
Error & operator=(const Error &src)
Assignment operator.
Error()
Basic constructor.
Base object definition for accounts error handling.
Error(ErrorType type, const QString &message=QString())
Constructor.