From b90456697755dba61395bd373c594be3d8ac3b93 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Mon, 3 Aug 2020 20:02:42 +0200 Subject: [PATCH] - implemented basic competition mode that comes with a few restrictions. --- ScStwLibraries/headers/ScStw.hpp | 3 ++- ScStwLibraries/headers/scstwsettings.h | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ScStwLibraries/headers/ScStw.hpp b/ScStwLibraries/headers/ScStw.hpp index f5dbcb2..c353675 100644 --- a/ScStwLibraries/headers/ScStw.hpp +++ b/ScStwLibraries/headers/ScStw.hpp @@ -127,7 +127,8 @@ public: SettingNotAccessibleError = 901, InternalError = 950, InternalErrorTimerOperationFailed = 951, - ApiVersionNotSupportedError = 952 + ApiVersionNotSupportedError = 952, + CompetitionModeProhibitsThisError = 953 }; Q_ENUM(ScStw::StatusCode) diff --git a/ScStwLibraries/headers/scstwsettings.h b/ScStwLibraries/headers/scstwsettings.h index be0afb6..19026b8 100644 --- a/ScStwLibraries/headers/scstwsettings.h +++ b/ScStwLibraries/headers/scstwsettings.h @@ -53,7 +53,8 @@ public: ReadySoundDelaySetting, AtYourMarksSoundEnableSetting, AtYourMarksSoundDelaySetting, - SoundVolumeSetting + SoundVolumeSetting, + CompetitionModeSetting }; Q_ENUM(BaseStationSetting) @@ -86,7 +87,8 @@ public: {ReadySoundDelaySetting, QVariant::Double}, {AtYourMarksSoundEnableSetting, QVariant::Bool}, {AtYourMarksSoundDelaySetting, QVariant::Double}, - {SoundVolumeSetting, QVariant::Double} + {SoundVolumeSetting, QVariant::Double}, + {CompetitionModeSetting, QVariant::Bool} }; if(types.contains(BaseStationSetting(key)))