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

#pragma once

#include "project.h"

#include <utils/store.h>

#include <QJsonObject>
#include <qglobal.h>

namespace ProjectExplorer {

class PROJECTEXPLORER_EXPORT WorkspaceProject : public Project
{
    Q_OBJECT
public:
    WorkspaceProject(const Utils::FilePath &file, const QJsonObject &defaultConfiguration = {});

    Utils::FilePath projectDirectory() const override;
    RestoreResult fromMap(const Utils::Store &map, QString *errorMessage) override;

    void excludeNode(Node *node);

private:
    void updateBuildConfigurations();
    void saveProjectDefinition(const QJsonObject &json);
    void excludePath(const Utils::FilePath &path);
};

void setupWorkspaceProject(QObject *guard);

} // namespace ProjectExplorer