diff options
Diffstat (limited to 'src/plugins/boostbuildprojectmanager/b2projectmanager.h')
-rw-r--r-- | src/plugins/boostbuildprojectmanager/b2projectmanager.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/plugins/boostbuildprojectmanager/b2projectmanager.h b/src/plugins/boostbuildprojectmanager/b2projectmanager.h new file mode 100644 index 0000000000..d4222beb61 --- /dev/null +++ b/src/plugins/boostbuildprojectmanager/b2projectmanager.h @@ -0,0 +1,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 |