OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4LeagueRequestHead Class Reference

#include <C4League.h>

Inheritance diagram for C4LeagueRequestHead:
[legend]

Public Member Functions

 C4LeagueRequestHead (C4LeagueAction eAction, const char *szCSID="", const char *szAUID="")
 
void SetAuth (const char *szAccount, const char *szPassword, bool fRememberLogin)
 
void SetNewAccount (const char *szNewAccount)
 
void SetNewPassword (const char *szNewPassword)
 
void CompileFunc (StdCompiler *pComp)
 

Detailed Description

Definition at line 46 of file C4League.h.

Constructor & Destructor Documentation

C4LeagueRequestHead::C4LeagueRequestHead ( C4LeagueAction  eAction,
const char *  szCSID = "",
const char *  szAUID = "" 
)
inline

Definition at line 49 of file C4League.h.

50  : eAction(eAction), CSID(szCSID), AUID(szAUID), fRememberLogin(false)
51  { }

Member Function Documentation

void C4LeagueRequestHead::CompileFunc ( StdCompiler pComp)

Definition at line 28 of file C4League.cpp.

References C4LA_End, C4LA_PlrAuth, C4LA_PlrAuthCheck, C4LA_RefQuery, C4LA_ReportDisconnect, C4LA_Start, C4LA_Update, mkNamingAdapt(), mkParAdapt(), StdCompiler::RCT_All, StdCompiler::RCT_IdtfAllowEmpty, and StdCompiler::Value().

Referenced by C4LeagueReportDisconnectHead::CompileFunc(), and C4LeagueRequestHeadEnd::CompileFunc().

29 {
30 
32  {
33  { "Start", C4LA_Start },
34  { "Update", C4LA_Update },
35  { "End", C4LA_End },
36  { "Join", C4LA_PlrAuthCheck },
37 
38  { "", C4LA_RefQuery },
39  { "Auth", C4LA_PlrAuth },
40 
41  { "ReportDisconnect", C4LA_ReportDisconnect },
42  };
43 
44  pComp->Value(mkNamingAdapt(mkEnumAdaptT<uint8_t>(eAction, Actions), "Action", C4LA_RefQuery));
47 
48  // Auth
49  pComp->Value(mkNamingAdapt(mkParAdapt(Account, StdCompiler::RCT_All), "Account", ""));
50  pComp->Value(mkNamingAdapt(mkParAdapt(Password, StdCompiler::RCT_All), "Password", ""));
51  pComp->Value(mkNamingAdapt(mkParAdapt(NewAccount, StdCompiler::RCT_All), "NewAccount", ""));
52  pComp->Value(mkNamingAdapt(mkParAdapt(NewPassword, StdCompiler::RCT_All), "NewPassword", ""));
53  pComp->Value(mkNamingAdapt(fRememberLogin, "RememberLogin", false));
54 
55 }
Definition: StdAdaptors.h:763
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void Value(const T &rStruct)
Definition: StdCompiler.h:171
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:459

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 57 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

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

Here is the caller graph for this function:

void C4LeagueRequestHead::SetNewAccount ( const char *  szNewAccount)

Definition at line 64 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

65 {
66  NewAccount = szNewAccount;
67 }

Here is the caller graph for this function:

void C4LeagueRequestHead::SetNewPassword ( const char *  szNewPassword)

Definition at line 69 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

70 {
71  NewPassword = szNewPassword;
72 }

Here is the caller graph for this function:


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