OpenClonk
C4LeagueRequestHeadEnd Class Reference

#include <C4League.h>

Inheritance diagram for C4LeagueRequestHeadEnd:
[legend]
Collaboration diagram for C4LeagueRequestHeadEnd:
[legend]

Public Member Functions

 C4LeagueRequestHeadEnd (C4LeagueAction eAction, const char *szCSID, const char *szRecordName=nullptr, const BYTE *pRecordSHA=nullptr)
 
void CompileFunc (StdCompiler *pComp)
 
void SetAuth (const char *szAccount, const char *szPassword, bool fRememberLogin)
 
void SetNewAccount (const char *szNewAccount)
 
void SetNewPassword (const char *szNewPassword)
 

Detailed Description

Definition at line 84 of file C4League.h.

Constructor & Destructor Documentation

◆ C4LeagueRequestHeadEnd()

C4LeagueRequestHeadEnd::C4LeagueRequestHeadEnd ( C4LeagueAction  eAction,
const char *  szCSID,
const char *  szRecordName = nullptr,
const BYTE pRecordSHA = nullptr 
)
inline

Definition at line 87 of file C4League.h.

88  : C4LeagueRequestHead(eAction, szCSID), RecordName(szRecordName)
89  {
90  if (pRecordSHA)
91  memcpy(RecordSHA, pRecordSHA, SHA_DIGEST_LENGTH);
92  }
#define SHA_DIGEST_LENGTH
Definition: SHA1.h:42
C4LeagueRequestHead(C4LeagueAction eAction, const char *szCSID="", const char *szAUID="")
Definition: C4League.h:49

References SHA_DIGEST_LENGTH.

Member Function Documentation

◆ CompileFunc()

void C4LeagueRequestHeadEnd::CompileFunc ( StdCompiler pComp)

Definition at line 91 of file C4League.cpp.

92 {
94  pComp->Value(mkNamingAdapt(mkParAdapt(RecordName, StdCompiler::RCT_All), "RecordName", ""));
95  if (RecordName.getLength())
96  pComp->Value(mkNamingAdapt(mkHexAdapt(RecordSHA, sizeof(RecordSHA)), "RecordSHA"));
97 }
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:490
StdHexAdapt mkHexAdapt(void *pData, size_t iSize)
Definition: StdAdaptors.h:1037
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void CompileFunc(StdCompiler *pComp)
Definition: C4League.cpp:27
void Value(const T &rStruct)
Definition: StdCompiler.h:161
size_t getLength() const
Definition: StdBuf.h:445

References C4LeagueRequestHead::CompileFunc(), StdStrBuf::getLength(), mkHexAdapt(), mkNamingAdapt(), mkParAdapt(), StdCompiler::RCT_All, and StdCompiler::Value().

Here is the call graph for this function:

◆ SetAuth()

void C4LeagueRequestHead::SetAuth ( const char *  szAccount,
const char *  szPassword,
bool  fRememberLogin 
)
inherited

Definition at line 56 of file C4League.cpp.

57 {
58  Account = szAccount;
59  Password = szPassword;
60  this->fRememberLogin = fRememberLogin;
61 }

Referenced by C4LeagueClient::Auth().

Here is the caller graph for this function:

◆ SetNewAccount()

void C4LeagueRequestHead::SetNewAccount ( const char *  szNewAccount)
inherited

Definition at line 63 of file C4League.cpp.

64 {
65  NewAccount = szNewAccount;
66 }

Referenced by C4LeagueClient::Auth().

Here is the caller graph for this function:

◆ SetNewPassword()

void C4LeagueRequestHead::SetNewPassword ( const char *  szNewPassword)
inherited

Definition at line 68 of file C4League.cpp.

69 {
70  NewPassword = szNewPassword;
71 }

Referenced by C4LeagueClient::Auth().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: