blob: 6f55eef45eba9d24b490cc1c32605171c9b6696b (
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
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <utils/id.h>
#include <utils/settingsaccessor.h>
namespace CMakeProjectManager {
class CMakeTool;
namespace Internal {
class CMakeToolSettingsAccessor : public Utils::UpgradingSettingsAccessor
{
public:
CMakeToolSettingsAccessor();
struct CMakeTools {
Utils::Id defaultToolId;
std::vector<std::unique_ptr<CMakeTool>> cmakeTools;
};
CMakeTools restoreCMakeTools(QWidget *parent) const;
void saveCMakeTools(const QList<CMakeTool *> &cmakeTools,
const Utils::Id &defaultId,
QWidget *parent);
private:
CMakeTools cmakeTools(const QVariantMap &data, bool fromSdk) const;
};
} // namespace Internal
} // namespace CMakeProjectManager
|