28#ifndef ACCOUNTS_ERROR_H
29#define ACCOUNTS_ERROR_H
34#include <Accounts/accountscommon.h>
38 typedef struct _GError GError;
62 Error(): m_type(NoError), m_message(QString()) { registerType(); }
85 { m_type = src.
type(); m_message = src.
message();
return *
this; }
104 friend class Account;
106 Error(
const GError *error);
108 inline void registerType();
122void Accounts::Error::registerType()
124 qRegisterMetaType<Accounts::Error>(
"Accounts::Error");
Base object definition for accounts error handling.
Error()
Basic constructor.
Error(ErrorType type, const QString &message=QString())
Constructor.
virtual ~Error()
Destructor.
Error & operator=(const Error &src)
Assignment operator.
ErrorType
Error codes for all the accounts errors.
Error(const Error &src)
Copy constructor.
Manager of accounts, services and providers.