19 #ifndef C4LEAGUE_H_INCLUDED
20 #define C4LEAGUE_H_INCLUDED
26 #define C4League_Name_Valid_Characters "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD9\xDA\xDB\xDC\xDD\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF\x20\x2E\x2D\x5F"
50 : eAction(eAction), CSID(szCSID), AUID(szAUID), fRememberLogin(false)
66 void SetAuth(
const char *szAccount,
const char *szPassword,
bool fRememberLogin);
175 int32_t
getScore(
const char *szLeague)
const;
176 int32_t
getRank(
const char *szLeague)
const;
202 void AddFBID(
const char *szFBID,
const char *szAccount);
232 bool Auth(
const C4PlayerInfo &PlrInfo,
const char *szAccount,
const char *szPassword,
const char *szNewAccount =
nullptr,
const char *szNewPassword =
nullptr,
bool fRememberLogin =
false);
251 int32_t iEdtPassSpace;
254 C4LeagueSignupDialog(
const char *szPlayerName,
const char *szLeagueName,
const char *szLeagueServerName,
const char *szAccountPref,
const char *szPassPref,
bool fWarnThirdParty,
bool fRegister,
bool fRememberLogin);
266 static bool ShowModal(
const char *szPlayerName,
const char *szLeagueName,
const char *szLeagueServerName,
StdStrBuf *psAccount,
StdStrBuf *psPass,
bool fWarnThirdParty,
bool fRegister,
bool *pfRememberLogin);
269 void OnChkPassword();
const int32_t C4NetMaxLeagues
#define SHA_DIGEST_LENGTH
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
const char * GetText() const
C4LeagueAction getCurrentAction() const
bool Start(const C4Network2Reference &Ref)
bool GetAuthReply(StdStrBuf *pMessage, StdStrBuf *pAUID, StdStrBuf *pAccount, bool *pRegister, StdStrBuf *pLoginToken)
bool GetStartReply(StdStrBuf *pMessage, StdStrBuf *pLeague, StdStrBuf *pStreamingAddr, int32_t *pSeed, int32_t *pMaxPlayers)
bool GetReportDisconnectReply(StdStrBuf *pMessage)
bool GetAuthCheckReply(StdStrBuf *pMessage, const char *szLeague, class C4PlayerInfo *pPlrInfo)
const char * getCSID() const
void ResetCurrentAction()
bool ReportDisconnect(const C4ClientPlayerInfos &rSendPlayerFBIDs, C4LeagueDisconnectReason eReason)
bool Auth(const C4PlayerInfo &PlrInfo, const char *szAccount, const char *szPassword, const char *szNewAccount=nullptr, const char *szNewPassword=nullptr, bool fRememberLogin=false)
bool GetEndReply(StdStrBuf *pMessage, class C4RoundResultsPlayers *pRoundResults)
bool Update(const C4Network2Reference &Ref)
bool GetUpdateReply(StdStrBuf *pMessage, C4ClientPlayerInfos *pPlayerLeagueInfos)
bool AuthCheck(const C4PlayerInfo &PlrInfo)
bool End(const C4Network2Reference &Ref, const char *szRecordName, const BYTE *pRecordSHA)
void RemoveFBIDByAccount(const char *szAccount)
bool FindFBIDByAccount(const char *szAccount, StdStrBuf *pFBIDOut)
void AddFBID(const char *szFBID, const char *szAccount)
C4LeagueFBIDList()=default
void CompileFunc(StdCompiler *pComp)
C4LeagueReportDisconnectHead(const char *szCSID, C4LeagueDisconnectReason eReason)
void CompileFunc(StdCompiler *pComp)
C4LeagueRequestHeadEnd(C4LeagueAction eAction, const char *szCSID, const char *szRecordName=nullptr, const BYTE *pRecordSHA=nullptr)
C4LeagueRequestHead(C4LeagueAction eAction, const char *szCSID="", const char *szAUID="")
void SetNewPassword(const char *szNewPassword)
void CompileFunc(StdCompiler *pComp)
void SetAuth(const char *szAccount, const char *szPassword, bool fRememberLogin)
void SetNewAccount(const char *szNewAccount)
int32_t getRank(const char *szLeague) const
int32_t getRankSymbol(const char *szLeague) const
void CompileFunc(StdCompiler *pComp)
const char * getClanTag() const
int32_t getScore(const char *szLeague) const
const char * getProgressData(const char *szLeague) const
bool isStatusRegister() const
const char * getAUID() const
C4LeagueResponseHead()=default
void CompileFunc(StdCompiler *pComp)
const char * getFBID() const
const char * getAccount() const
const char * getLoginToken() const
const char * getCSID() const
const char * getMessage() const
void CompileFunc(StdCompiler *pComp)
const char * getStreamingAddr() const
const char * getLeague() const
int32_t getMaxPlayers() const
const C4ClientPlayerInfos & GetPlrInfos() const
const char * getLeague() const
void CompileFunc(StdCompiler *pComp)
void UserClose(bool fOK) override
~C4LeagueSignupDialog() override=default
static bool ShowModal(const char *szPlayerName, const char *szLeagueName, const char *szLeagueServerName, StdStrBuf *psAccount, StdStrBuf *psPass, bool fWarnThirdParty, bool fRegister, bool *pfRememberLogin)
C4LeagueSignupDialog(const char *szPlayerName, const char *szLeagueName, const char *szLeagueServerName, const char *szAccountPref, const char *szPassPref, bool fWarnThirdParty, bool fRegister, bool fRememberLogin)
const char * GetAccount()
const char * getData() const