aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/toolchainsettingsaccessor.h
blob: c068e7f1282a5e9629f3a7f3e1c2b0e1ffd672e5 (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
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/settingsaccessor.h>

#include <QList>

namespace ProjectExplorer {

class Toolchain;

namespace Internal {

class ToolchainSettingsAccessor : public Utils::UpgradingSettingsAccessor
{
public:
    ToolchainSettingsAccessor();

    QList<Toolchain *> restoreToolchains(QWidget *parent) const;

    void saveToolchains(const QList<Toolchain *> &toolchains, QWidget *parent);

private:
    QList<Toolchain *> toolChains(const Utils::Store &data) const;
};

} // namespace Internal
} // namespace ProjectExplorer