summaryrefslogtreecommitdiff
path: root/src/plugins/incredibuild/incredibuildplugin.h
diff options
context:
space:
mode:
authorOr Kunst <or.kunst@incredibuild.com>2020-03-11 17:03:23 +0200
committeror.kunst <or.kunst@incredibuild.com>2020-06-17 06:40:05 +0000
commit356d497df4bc746a9170d2e9d332f51aef7f3877 (patch)
tree35be0bd4f43b041e29d9559ec9611082a97b4852 /src/plugins/incredibuild/incredibuildplugin.h
parentc5a64bd4decf163f6033711d19318cad6e75aa9c (diff)
downloadqt-creator-356d497df4bc746a9170d2e9d332f51aef7f3877.tar.gz
New IncrediBuild plugin
- Using raw pointers instead of QSharedPointers. - Removing redundant pointers existence checks before delete. - Replacing empty quotes with explicit QString() instance creation. - A few spaces and tab fixes. - Save settings after migrating build steps Change-Id: Iff87d75c7047474ab8e49366ddfeced766ff1a67 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/incredibuild/incredibuildplugin.h')
-rw-r--r--src/plugins/incredibuild/incredibuildplugin.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/plugins/incredibuild/incredibuildplugin.h b/src/plugins/incredibuild/incredibuildplugin.h
new file mode 100644
index 0000000000..5298a10bcd
--- /dev/null
+++ b/src/plugins/incredibuild/incredibuildplugin.h
@@ -0,0 +1,56 @@
+/****************************************************************************
+**
+** Copyright (C) 2020 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+#include "incredibuild_global.h"
+#include "buildconsolestepfactory.h"
+#include "ibconsolestepfactory.h"
+
+#include <extensionsystem/iplugin.h>
+
+namespace IncrediBuild {
+namespace Internal {
+
+class IncrediBuildPlugin : public ExtensionSystem::IPlugin
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "IncrediBuild.json")
+
+public:
+ IncrediBuildPlugin() {}
+ ~IncrediBuildPlugin();
+
+ bool initialize(const QStringList &arguments, QString *errorString);
+ void extensionsInitialized();
+ ShutdownFlag aboutToShutdown();
+
+private:
+ BuildConsoleStepFactory *m_buildConsoleStepFactory{};
+ IBConsoleStepFactory *m_iBConsoleStepFactory{};
+};
+
+} // namespace Internal
+} // namespace IncrediBuild