OpenClonk
C4LeagueReportDisconnectHead Class Reference

#include <C4League.h>

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

Public Member Functions

 C4LeagueReportDisconnectHead (const char *szCSID, C4LeagueDisconnectReason eReason)
 
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 73 of file C4League.h.

Constructor & Destructor Documentation

◆ C4LeagueReportDisconnectHead()

C4LeagueReportDisconnectHead::C4LeagueReportDisconnectHead ( const char *  szCSID,
C4LeagueDisconnectReason  eReason 
)
inline

Definition at line 78 of file C4League.h.

References C4LeagueRequestHead::CompileFunc().

78 : C4LeagueRequestHead(C4LA_ReportDisconnect, szCSID, nullptr), eReason(eReason) {}
C4LeagueRequestHead(C4LeagueAction eAction, const char *szCSID="", const char *szAUID="")
Definition: C4League.h:49
Here is the call graph for this function:

Member Function Documentation

◆ CompileFunc()

void C4LeagueReportDisconnectHead::CompileFunc ( StdCompiler pComp)

Definition at line 75 of file C4League.cpp.

References C4LDR_ConnectionFailed, C4LDR_Desync, C4LDR_Unknown, C4LeagueRequestHead::CompileFunc(), mkNamingAdapt(), and StdCompiler::Value().

76 {
77  // inherited fields
79  // reason
81  {
82  { "", C4LDR_Unknown },
83  { "ConnectionFailed", C4LDR_ConnectionFailed},
84  { "Desync", C4LDR_Desync },
85  };
86  pComp->Value(mkNamingAdapt(mkEnumAdaptT<uint8_t>(eReason, Reasons), "Reason", C4LDR_Unknown));
87 }
Definition: StdAdaptors.h:780
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
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.

Referenced by C4LeagueClient::Auth(), and C4LeagueRequestHead::C4LeagueRequestHead().

57 {
58  Account = szAccount;
59  Password = szPassword;
60  this->fRememberLogin = fRememberLogin;
61 }
Here is the caller graph for this function:

◆ SetNewAccount()

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

Definition at line 63 of file C4League.cpp.

Referenced by C4LeagueClient::Auth(), and C4LeagueRequestHead::C4LeagueRequestHead().

64 {
65  NewAccount = szNewAccount;
66 }
Here is the caller graph for this function:

◆ SetNewPassword()

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

Definition at line 68 of file C4League.cpp.

Referenced by C4LeagueClient::Auth(), and C4LeagueRequestHead::C4LeagueRequestHead().

69 {
70  NewPassword = szNewPassword;
71 }
Here is the caller graph for this function:

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