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

« back to all changes in this revision

Viewing changes to src/ubuntu/ubuntulocaldeployconfiguration.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 2014 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: Benjamin Zeller <benjamin.zeller@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H
 
20
#define UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H
 
21
 
 
22
#include <projectexplorer/deployconfiguration.h>
 
23
 
 
24
namespace Ubuntu {
 
25
namespace Internal {
 
26
 
 
27
class UbuntuLocalDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
 
28
{
 
29
    Q_OBJECT
 
30
 
 
31
public:
 
32
    explicit UbuntuLocalDeployConfigurationFactory(QObject *parent = 0);
 
33
 
 
34
    QList<Core::Id> availableCreationIds(ProjectExplorer::Target *parent) const;
 
35
    QString displayNameForId(const Core::Id id) const;
 
36
    bool canCreate(ProjectExplorer::Target *parent, const Core::Id id) const;
 
37
    ProjectExplorer::DeployConfiguration *create(ProjectExplorer::Target *parent, const Core::Id id);
 
38
    bool canRestore(ProjectExplorer::Target *parent, const QVariantMap &map) const;
 
39
    ProjectExplorer::DeployConfiguration *restore(ProjectExplorer::Target *parent, const QVariantMap &map);
 
40
    ProjectExplorer::DeployConfiguration *clone(ProjectExplorer::Target *parent,
 
41
                                                ProjectExplorer::DeployConfiguration *product);
 
42
};
 
43
 
 
44
class UbuntuLocalDeployConfiguration : public ProjectExplorer::DeployConfiguration
 
45
{
 
46
    Q_OBJECT
 
47
    friend class UbuntuLocalDeployConfigurationFactory; // for the ctors
 
48
protected:
 
49
    UbuntuLocalDeployConfiguration(ProjectExplorer::Target *target, const Core::Id id);
 
50
    UbuntuLocalDeployConfiguration(ProjectExplorer::Target *target, UbuntuLocalDeployConfiguration *source);
 
51
 
 
52
protected slots:
 
53
    void selectAsDefaultHack();
 
54
};
 
55
 
 
56
} // namespace Internal
 
57
} // namespace Ubuntu
 
58
 
 
59
#endif // UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H