~ubuntu-branches/ubuntu/trusty/qtcreator-plugin-ubuntu/trusty

« back to all changes in this revision

Viewing changes to src/ubuntu/ubunturuncontrol.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Benjamin Zeller
  • Date: 2014-04-10 16:54:54 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140410165454-j9syoh0jx6azy7g1
Tags: 3.0.1+14.04.20140410.1-0ubuntu1
[ Benjamin Zeller ]
Added Toolchains and Kit support to automatically.   detect a
available click chroot Added Devicesupport, connected Ubuntu devices
are.   automatically registered in QtCreator and can be set   for
different kits Added Deploysupport(CMake), the projects contents are
uploaded.   automatically using SSH after running make install on a
local   directory Added Run and Debugsupport: the command that
should be run.   on the device is read from the desktop file in the
deployed   directory. This means C+and QML debugging work as well
as QML Profiling Dynamically forward ports, depending on adb
forward --list.   output. Adb Server is not restarted by default
anymore, only a press.   on the refresh button will trigger the
restart. That will fix   problems with failing adb scripts Added
local run support for Ubuntu projects .

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2013 Canonical Ltd.
3
 
 *
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.
7
 
 *
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.
12
 
 *
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/>.
15
 
 *
16
 
 * Author: Juhapekka Piiroinen <juhapekka.piiroinen@canonical.com>
17
 
 */
18
 
 
19
 
#ifndef UBUNTURUNCONTROL_H
20
 
#define UBUNTURUNCONTROL_H
21
 
 
22
 
#include <QProcess>
23
 
#include <QObject>
24
 
#include <QString>
25
 
 
26
 
#include "ubuntuproject.h"
27
 
 
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>
53
 
namespace Ubuntu {
54
 
namespace Internal {
55
 
 
56
 
class UbuntuRunControl : public ProjectExplorer::RunControl
57
 
{
58
 
    Q_OBJECT
59
 
public:
60
 
 
61
 
    UbuntuRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
62
 
                ProjectExplorer::RunMode mode, bool debug = false);
63
 
    virtual ~UbuntuRunControl();
64
 
 
65
 
    void start();
66
 
    StopResult stop();
67
 
    bool isRunning() const;
68
 
    QIcon icon() const;
69
 
 
70
 
private slots:
71
 
    void processExited(int exitCode);
72
 
    void slotBringApplicationToForeground(qint64 pid);
73
 
    void slotAppendMessage(const QString &line, Utils::OutputFormat);
74
 
 
75
 
private:
76
 
    ProjectExplorer::ApplicationLauncher m_applicationLauncher;
77
 
 
78
 
    QString m_executable;
79
 
    QString m_commandLineArguments;
80
 
    QSharedPointer<QProcess> m_browser;
81
 
    
82
 
};
83
 
 
84
 
 
85
 
}
86
 
}
87
 
 
88
 
#endif // UBUNTURUNCONTROL_H