Formats minimally release source files based on former clang-format
This commit is contained in:
387 files changed
+37323
-38074
No files matched your search
@@ -26,19 +26,19 @@
|
||||
|
||||
namespace PrtCnv
|
||||
{
|
||||
struct BiteError
|
||||
{
|
||||
int errorNumber = 0;
|
||||
int canDeviceNumber = 0;
|
||||
int subdeviceNumber = 0;
|
||||
int uniqueId = 0;
|
||||
};
|
||||
struct BiteError
|
||||
{
|
||||
int errorNumber = 0;
|
||||
int canDeviceNumber = 0;
|
||||
int subdeviceNumber = 0;
|
||||
int uniqueId = 0;
|
||||
};
|
||||
|
||||
class PrtCnvCentralThread;
|
||||
class PrtCnvMember;
|
||||
class PrtCnvRadioTrafficThread;
|
||||
class PrtCnvStoredRadioTelegram;
|
||||
/**
|
||||
/**
|
||||
* This class handles the protocol to radio. This includes:
|
||||
* - handle login and licensing of TNEs
|
||||
* - send and receive normal telegrams
|
||||
@@ -53,9 +53,8 @@ struct BiteError
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
PrtCnvRadioThread(int exerciseId, PrtCnvThreadStarter* a_parent);
|
||||
public:
|
||||
PrtCnvRadioThread(int exerciseId, PrtCnvThreadStarter *a_parent);
|
||||
/**
|
||||
* Creates all subcomponents and connects signals to slots
|
||||
*/
|
||||
@@ -86,12 +85,14 @@ public:
|
||||
void sendEnvironmentTelegramTimerNow();
|
||||
|
||||
void exerciseEquipmentChanged(const TrainingAreaBase::TetraIcd::ExerciseEquipmentAssignmentComplete &data);
|
||||
|
||||
protected:
|
||||
void onCheckMemberForValidLogin(int identity, int issi);
|
||||
void sendLoginAccept(int identity, int issi, int exerciseId, bool bWithMastering);
|
||||
bool isIdentityInCurrentExercise(int identity) const;
|
||||
int exerciseIdForIdentity(int identity) const;
|
||||
void removeMasteringMember(const N_CoPrtCnv::CoPrtCnvRadioTelegram &a_loginTelegram, PrtCnvMember *member,
|
||||
void removeMasteringMember(const N_CoPrtCnv::CoPrtCnvRadioTelegram &a_loginTelegram,
|
||||
PrtCnvMember *member,
|
||||
PrtCnvMember *issiMember,
|
||||
int masterIdentity,
|
||||
int masterIssi);
|
||||
@@ -107,8 +108,7 @@ public:
|
||||
*/
|
||||
PrtCnvRadioTrafficThread *m_radioTrafficThread;
|
||||
|
||||
public:
|
||||
|
||||
public:
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* Signal to start sending a telegram to central
|
||||
@@ -147,6 +147,7 @@ public:
|
||||
// a player was (un)licensed
|
||||
void playerLicencedChanged(int equipNo, N_CoPrtCnv::E_LicensingKind kind);
|
||||
void warehouseMessageFromPtrCnv(const QByteArray &jsonData);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Counts the sended telegrams
|
||||
@@ -250,7 +251,6 @@ public:
|
||||
void handleRegisterRsp(const uint8_t a_regsitrationStatus);
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* @author alois.wismer
|
||||
* @version 1.0
|
||||
@@ -263,6 +263,7 @@ public:
|
||||
HighLoad,
|
||||
FullLoad
|
||||
};
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Holds the radio-telegram for sending Umgebungsmeldung periodically
|
||||
@@ -405,8 +406,7 @@ public:
|
||||
uint32_t ergebnisAusstattung,
|
||||
uint32_t aktuelleKonfiguration,
|
||||
uint32_t konfigurationsvergleich,
|
||||
const QList<PrtCnv::BiteError> &fehlerListe
|
||||
);
|
||||
const QList<PrtCnv::BiteError> &fehlerListe);
|
||||
|
||||
/**
|
||||
* Sends a login-telegram to radio
|
||||
@@ -417,7 +417,9 @@ public:
|
||||
*/
|
||||
void sendLoginResponse(const N_CoPrtCnv::CoPrtCnvRadioTelegram::E_LoginStatus a_loginTelegramStatus, const uint16_t a_identity, const uint32_t a_ISSI);
|
||||
void sendLoginResponse(const N_CoPrtCnv::CoPrtCnvRadioTelegram::E_LoginStatus a_loginTelegramStatus,
|
||||
const uint16_t a_identity, const uint32_t a_ISSI, const TrainingAreaBase::TetraIcd::GroupIssiInformation &group);
|
||||
const uint16_t a_identity,
|
||||
const uint32_t a_ISSI,
|
||||
const TrainingAreaBase::TetraIcd::GroupIssiInformation &group);
|
||||
|
||||
/**
|
||||
* Sends a telegram "LizenzierungTNE" to radio
|
||||
@@ -427,7 +429,8 @@ public:
|
||||
* @param a_licensingKind
|
||||
* @param a_errorCause
|
||||
*/
|
||||
void sendLizenzierungTneToRadio(const uint16_t a_identity, const uint32_t a_issi,
|
||||
void sendLizenzierungTneToRadio(const uint16_t a_identity,
|
||||
const uint32_t a_issi,
|
||||
const N_CoPrtCnv::E_LicensingKind a_licensingKind,
|
||||
const N_CoPrtCnv::E_LicensingErrorCode a_errorCause);
|
||||
|
||||
@@ -453,7 +456,7 @@ public:
|
||||
* @param a_line
|
||||
* @param a_fileName
|
||||
*/
|
||||
uint16_t readIdentity(const QByteArray& a_idAsText, const uint32_t a_line, const QString& a_fileName);
|
||||
uint16_t readIdentity(const QByteArray &a_idAsText, const uint32_t a_line, const QString &a_fileName);
|
||||
/**
|
||||
* Checks whether the playerId is allowd.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user