mirror-chatterino2/account.h
2017-01-11 18:52:09 +01:00

50 lines
695 B
C++

#ifndef ACCOUNT_H
#define ACCOUNT_H
#include "QString"
class Account
{
public:
Account(QString username, QString oauthToken, QString oauthClient);
static const Account *
anon()
{
return m_anon;
}
const QString &
username()
{
return m_username;
}
const QString &
oauthToken()
{
return m_oauthToken;
}
const QString &
oauthClient()
{
return m_oauthClient;
}
bool
isAnon()
{
return m_username.startsWith("justinfan");
}
private:
const static Account *m_anon;
QString m_username;
QString m_oauthClient;
QString m_oauthToken;
};
#endif // ACCOUNT_H