2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 2.1.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
19
#ifndef UBUNTURUNCONTROL_H
20
#define UBUNTURUNCONTROL_H
26
#include "ubuntuproject.h"
28
#include <utils/environment.h>
29
#include <coreplugin/actionmanager/command.h>
30
#include <coreplugin/actionmanager/actioncontainer.h>
31
#include <coreplugin/actionmanager/actionmanager.h>
32
#include <coreplugin/coreconstants.h>
33
#include <coreplugin/icontext.h>
34
#include <coreplugin/mimedatabase.h>
35
#include <coreplugin/messagemanager.h>
36
#include <coreplugin/icore.h>
37
#include <coreplugin/idocument.h>
38
#include <coreplugin/documentmanager.h>
39
#include <projectexplorer/iprojectmanager.h>
40
#include <projectexplorer/projectexplorerconstants.h>
41
#include <projectexplorer/projectexplorer.h>
42
#include <projectexplorer/projectnodes.h>
43
#include <projectexplorer/project.h>
44
#include <projectexplorer/kitmanager.h>
45
#include <projectexplorer/target.h>
46
#include <projectexplorer/session.h>
47
#include <projectexplorer/runconfiguration.h>
48
#include <projectexplorer/applicationlauncher.h>
49
#include <projectexplorer/target.h>
50
#include <utils/qtcassert.h>
51
#include <utils/qtcprocess.h>
52
#include <qtsupport/qtkitinformation.h>
56
class UbuntuRunControl : public ProjectExplorer::RunControl
61
UbuntuRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
62
ProjectExplorer::RunMode mode, bool debug = false);
63
virtual ~UbuntuRunControl();
67
bool isRunning() const;
71
void processExited(int exitCode);
72
void slotBringApplicationToForeground(qint64 pid);
73
void slotAppendMessage(const QString &line, Utils::OutputFormat);
76
ProjectExplorer::ApplicationLauncher m_applicationLauncher;
79
QString m_commandLineArguments;
80
QSharedPointer<QProcess> m_browser;
88
#endif // UBUNTURUNCONTROL_H