summaryrefslogtreecommitdiff
path: root/src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2015-05-06 00:16:58 +0200
committerOrgad Shaneh <orgads@gmail.com>2015-07-01 10:43:09 +0000
commit7389250fcd1ada74514f90e8670d7af087e6a7c7 (patch)
tree11cacc00d934db20de04737058ebda99b17828fb /src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h
parent188d4bfdb24c938a0c60042418852f2a8bcb2a73 (diff)
downloadqt-creator-7389250fcd1ada74514f90e8670d7af087e6a7c7.tar.gz
Add Boost.Build Project Manager plug-in
Preparing to contribute the plug-in, see the announcement at http://lists.qt-project.org/pipermail/qt-creator/2015-February/004436.html Change-Id: Ic3920c9b888af5bea1b7742b8ff49984c29a2909 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h')
-rw-r--r--src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h b/src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h
new file mode 100644
index 0000000000..e54dcaabeb
--- /dev/null
+++ b/src/plugins/boostbuildprojectmanager/b2projectmanagerplugin.h
@@ -0,0 +1,48 @@
+//
+// 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 BBPROJECTMANAGERPLUGIN_HPP
+#define BBPROJECTMANAGERPLUGIN_HPP
+
+#include "b2projectmanager_global.h"
+
+#include <extensionsystem/iplugin.h>
+
+namespace BoostBuildProjectManager {
+namespace Internal {
+
+
+// Sole implementation of the IPlugin class for the extension.
+class BoostBuildPlugin : public ExtensionSystem::IPlugin
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "BoostBuildProjectManager.json")
+
+public:
+ BoostBuildPlugin();
+ ~BoostBuildPlugin();
+
+ // Called as second step of the plugins loading.
+ // The initialize functions are called in root-to-leaf order of the dependency tree.
+ bool initialize(QStringList const& arguments, QString* errorString);
+
+ // Called as final step of the plugins loading.
+ // At this point, all dependencies along the plugin dependency tree
+ // have been initialized completely.
+ void extensionsInitialized();
+
+ ShutdownFlag aboutToShutdown();
+};
+
+} // namespace Internal
+} // namespace BoostBuildProjectManager
+
+#endif // BBPROJECTMANAGERPLUGIN_HPP