forked from Silverfish/proton-bridge
feat(GODT-2555): add local telemetry settings.
feat(GODT-2555): add 'TelemetryDisabled' settings to vault. feat(GODT-2555): CLI and GUI implementation. feat(GODT-2555): implemented setting in bridge-gui-tester. feat(GODT-2555): added unit tests. feat(GODT-2555): feature tests.
This commit is contained in:
@ -24,7 +24,6 @@
|
||||
#include <bridgepp/Log/LogUtils.h>
|
||||
#include <bridgepp/GRPC/GRPCClient.h>
|
||||
#include <bridgepp/Worker/Overseer.h>
|
||||
#include <bridgepp/BridgeUtils.h>
|
||||
|
||||
|
||||
#define HANDLE_EXCEPTION(x) try { x } \
|
||||
@ -335,6 +334,18 @@ bool QMLBackend::isAllMailVisible() const {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The value for the 'isAllMailVisible' property.
|
||||
//****************************************************************************************************************************************************
|
||||
bool QMLBackend::isTelemetryDisabled() const {
|
||||
HANDLE_EXCEPTION_RETURN_BOOL(
|
||||
bool v;
|
||||
app().grpc().isTelemetryDisabled(v);
|
||||
return v;
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The value for the 'colorSchemeName' property.
|
||||
//****************************************************************************************************************************************************
|
||||
@ -569,6 +580,18 @@ void QMLBackend::changeIsAllMailVisible(bool isVisible) {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] isDisabled The new state of the 'Is telemetry disabled property'.
|
||||
//****************************************************************************************************************************************************
|
||||
void QMLBackend::toggleIsTelemetryDisabled(bool isDisabled) {
|
||||
HANDLE_EXCEPTION(
|
||||
app().grpc().setIsTelemetryDisabled(isDisabled);
|
||||
emit isTelemetryDisabledChanged(isDisabled);
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \param[in] scheme the scheme name
|
||||
//****************************************************************************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user