summaryrefslogtreecommitdiff
path: root/src/plugins/boostbuildprojectmanager/b2projectmanager.h
blob: d4222beb617c7aeb79e12973582c28201f01a769 (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
//
// 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 BBPROJECTMANAGER_HPP
#define BBPROJECTMANAGER_HPP

// Qt Creator
#include <projectexplorer/iprojectmanager.h>
// Qt
#include <QList>
#include <QString>

namespace ProjectExplorer {
class Project;
}

namespace BoostBuildProjectManager {
namespace Internal {

class Project;

// Sole implementation of the IProjectManager class for the extension.
class ProjectManager : public ProjectExplorer::IProjectManager
{
    Q_OBJECT

public:
    ProjectManager();

    QString mimeType() const;

    // Creates new instance of Project class.
    ProjectExplorer::Project*
    openProject(QString const& fileName, QString* errorString);

    void registerProject(Project* project);
    void unregisterProject(Project* project);

private:
    QList<Project*> projects_;
};

} // namespace Internal
} // namespace BoostBuildProjectManager

#endif // BBPROJECTMANAGER_HPP