baremetalruncontrolfactory.h 2.39 KB
Newer Older
Tim Sander's avatar
Tim Sander committed
1 2
/****************************************************************************
**
Eike Ziller's avatar
Eike Ziller committed
3
** Copyright (C) 2015 Tim Sander <tim@krieglstein.org>
4
** Copyright (C) 2015 Denis Shienkov <denis.shienkov@gmail.com>
Eike Ziller's avatar
Eike Ziller committed
5
** Contact: http://www.qt.io/licensing
Tim Sander's avatar
Tim Sander committed
6 7 8 9 10 11 12
**
** 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
Eike Ziller's avatar
Eike Ziller committed
13 14
** a written agreement between you and The Qt Company.  For licensing terms and
** conditions see http://www.qt.io/terms-conditions.  For further information
Eike Ziller's avatar
Eike Ziller committed
15
** use the contact form at http://www.qt.io/contact-us.
Tim Sander's avatar
Tim Sander committed
16 17 18
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
Eike Ziller's avatar
Eike Ziller committed
19 20 21 22 23 24
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file.  Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
Tim Sander's avatar
Tim Sander committed
25
**
Eike Ziller's avatar
Eike Ziller committed
26 27
** In addition, as a special exception, The Qt Company gives you certain additional
** rights.  These rights are described in The Qt Company LGPL Exception
Tim Sander's avatar
Tim Sander committed
28 29 30 31 32 33
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/

#ifndef BAREMETALRUNCONTROLFACTORY_H
#define BAREMETALRUNCONTROLFACTORY_H
hjk's avatar
hjk committed
34

Tim Sander's avatar
Tim Sander committed
35
#include "baremetalrunconfiguration.h"
hjk's avatar
hjk committed
36

Tim Sander's avatar
Tim Sander committed
37 38 39 40 41 42 43 44 45
#include <projectexplorer/runconfiguration.h>
#include <debugger/debuggerstartparameters.h>

namespace BareMetal {
namespace Internal {

class BareMetalRunControlFactory : public ProjectExplorer::IRunControlFactory
{
    Q_OBJECT
hjk's avatar
hjk committed
46

Tim Sander's avatar
Tim Sander committed
47 48 49
public:
    explicit BareMetalRunControlFactory(QObject *parent = 0);
    ~BareMetalRunControlFactory();
50
    bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, Core::Id mode) const;
Tim Sander's avatar
Tim Sander committed
51
    ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
52
                                        Core::Id mode,
Tim Sander's avatar
Tim Sander committed
53 54 55 56 57 58 59
                                        QString *errorMessage);
};

} // namespace Internal
} // namespace BareMetal

#endif // BAREMETALRUNCONTROLFACTORY_H