mirror of
https://gitlab.com/comunic/comunicmessages
synced 2025-03-14 10:12:39 +00:00
44 lines
654 B
C
44 lines
654 B
C
![]() |
/**
|
||
|
* Account login request
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
#ifndef ACCOUNTLOGINREQUEST_H
|
||
|
#define ACCOUNTLOGINREQUEST_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
/**
|
||
|
* Possible login results
|
||
|
*/
|
||
|
enum LoginResult {
|
||
|
LOGIN_SUCCESS,
|
||
|
INVALID_CREDENTIALS,
|
||
|
TOO_MANY_REQUEST,
|
||
|
NETWORK_ERROR,
|
||
|
OTHER_ERROR
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* Login request
|
||
|
*/
|
||
|
class AccountLoginRequest
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
AccountLoginRequest();
|
||
|
|
||
|
QString emailAddress() const;
|
||
|
void setEmailAddress(const QString &emailAddress);
|
||
|
|
||
|
QString password() const;
|
||
|
void setPassword(const QString &password);
|
||
|
|
||
|
private:
|
||
|
QString mEmailAddress;
|
||
|
QString mPassword;
|
||
|
};
|
||
|
|
||
|
#endif // ACCOUNTLOGINREQUEST_H
|