blob: 095933f9870631e39e0405b856f897be7eb7011a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "core_global.h"
#include <utils/aspects.h>
#include <utils/environment.h>
namespace Core::Internal {
const char kEnvironmentChanges[] = "Core/EnvironmentChanges";
const char kEnvVarSeparators[] = "Core/EnvVarSeparators";
class CORE_TEST_EXPORT SystemSettings final : public Utils::AspectContainer
{
public:
SystemSettings();
Utils::BoolAspect useDbusFileManagers{this};
Utils::FilePathAspect patchCommand{this};
Utils::BoolAspect autoSaveModifiedFiles{this};
Utils::IntegerAspect autoSaveInterval{this};
Utils::BoolAspect autoSaveAfterRefactoring{this};
Utils::BoolAspect autoSuspendEnabled{this};
Utils::IntegerAspect autoSuspendMinDocumentCount{this};
Utils::BoolAspect warnBeforeOpeningBigFiles{this};
Utils::IntegerAspect bigFileSizeLimitInMB{this};
Utils::IntegerAspect maxRecentFiles{this};
Utils::SelectionAspect reloadSetting{this};
#ifdef ENABLE_CRASHREPORTING
Utils::BoolAspect enableCrashReporting{this};
#endif
Utils::BoolAspect askBeforeExit{this};
Utils::EnvironmentItems environmentChanges() const;
void setEnvironmentChanges(const Utils::EnvironmentItems &changes);
Utils::NameValueDictionary envVarSeparators() const { return m_envVarSeparators; }
void setEnvVarSeparators(const Utils::NameValueDictionary &separators);
static QString msgCrashpadInformation();
private:
static Utils::NameValueDictionary defaultEnvVarSeparators();
Utils::EnvironmentItems m_environmentChanges;
Utils::NameValueDictionary m_envVarSeparators = defaultEnvVarSeparators();
const Utils::Environment m_startupSystemEnvironment;
};
CORE_TEST_EXPORT SystemSettings &systemSettings();
} // Core::Internal
|