summaryrefslogtreecommitdiff
path: root/src/plugins/boostbuildprojectmanager/b2projectfile.h
blob: 83a610a6cfa4abe4b89ea86c6cbaa95e5d37659c (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
//
// Copyright (C) 2013 Mateusz Łoskot <mateusz@loskot.net>
//
// This file is part of Qt Creator Boost.Build plugin project.
//
// This is free software; you can redistribute and/or modify it under
// the terms of the GNU Lesser General Public License, Version 2.1
// as published by the Free Software Foundation.
// See accompanying file LICENSE.txt or copy at
// http://www.gnu.org/licenses/lgpl-2.1-standalone.html.
//
#ifndef BBPROJECTFILE_HPP
#define BBPROJECTFILE_HPP

#include <coreplugin/idocument.h>

namespace BoostBuildProjectManager {
namespace Internal {

class Project;

// Describes the root of a project for use in Project class.
// In the context of Boost.Build the implementation is mostly empty,
// as the modification of a project is done by editing Jamfile.v2 files.
class ProjectFile : public Core::IDocument
{
    Q_OBJECT

public:
    ProjectFile(Project* project, QString const& fileName);

    bool save(QString* errorString, QString const& fileName, bool autoSave);
    QString defaultPath() const;
    QString suggestedFileName() const;
    QString mimeType() const;
    bool isModified() const;
    bool isSaveAsAllowed() const;
    bool reload(QString* errorString, ReloadFlag flag, ChangeType type);

private:
    Project *m_project;
};

} // namespace Internal
} // namespace AutotoolsProjectManager

#endif // BBPROJECTFILE_HPP