~zeller-benjamin/qtcreator-plugin-ubuntu/qtc41-beta

« back to all changes in this revision

Viewing changes to ubunturunconfigurationfactory.h

  • Committer: Juhapekka Piiroinen
  • Date: 2013-09-04 15:30:00 UTC
  • mto: (23.1.14 binary-plugin)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: juhapekka.piiroinen@canonical.com-20130904153000-r4lhfhrjlwmop277
Added cordova plugin from ubuntu-qtcreator-plugins.

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 UBUNTURUNCONFIGURATIONFACTORY_H
20
 
#define UBUNTURUNCONFIGURATIONFACTORY_H
21
 
 
22
 
#include <QtGlobal>
23
 
#include <QObject>
24
 
#include "ubuntuproject.h"
25
 
#include "ubuntuconstants.h"
26
 
#include "ubunturunconfiguration.h"
27
 
 
28
 
#include <coreplugin/actionmanager/command.h>
29
 
#include <coreplugin/actionmanager/actioncontainer.h>
30
 
#include <coreplugin/actionmanager/actionmanager.h>
31
 
#include <coreplugin/coreconstants.h>
32
 
#include <coreplugin/icontext.h>
33
 
#include <coreplugin/mimedatabase.h>
34
 
#include <coreplugin/messagemanager.h>
35
 
#include <coreplugin/icore.h>
36
 
#include <coreplugin/idocument.h>
37
 
#include <coreplugin/documentmanager.h>
38
 
#include <projectexplorer/iprojectmanager.h>
39
 
#include <projectexplorer/projectexplorerconstants.h>
40
 
#include <projectexplorer/projectexplorer.h>
41
 
#include <projectexplorer/projectnodes.h>
42
 
#include <projectexplorer/project.h>
43
 
#include <projectexplorer/kitmanager.h>
44
 
#include <projectexplorer/target.h>
45
 
#include <projectexplorer/session.h>
46
 
#include <projectexplorer/runconfiguration.h>
47
 
#include <projectexplorer/applicationlauncher.h>
48
 
 
49
 
namespace Ubuntu {
50
 
namespace Internal {
51
 
 
52
 
class UbuntuRunConfigurationFactory : public ProjectExplorer::IRunConfigurationFactory
53
 
{
54
 
    Q_OBJECT
55
 
public:
56
 
    explicit UbuntuRunConfigurationFactory() {
57
 
        setObjectName(QLatin1String("UbuntuRunConfigurationFactory"));
58
 
    }
59
 
 
60
 
    QList<Core::Id> availableCreationIds(ProjectExplorer::Target *parent) const;
61
 
    QString displayNameForId(const Core::Id id) const;
62
 
 
63
 
    bool canCreate(ProjectExplorer::Target *parent, const Core::Id id) const;
64
 
    ProjectExplorer::RunConfiguration *create(ProjectExplorer::Target *parent, const Core::Id id);
65
 
    bool canRestore(ProjectExplorer::Target *parent, const QVariantMap &map) const;
66
 
    ProjectExplorer::RunConfiguration *restore(ProjectExplorer::Target *parent, const QVariantMap &map);
67
 
    bool canClone(ProjectExplorer::Target *parent, ProjectExplorer::RunConfiguration *source) const;
68
 
    ProjectExplorer::RunConfiguration *clone(ProjectExplorer::Target *parent, ProjectExplorer::RunConfiguration *source);
69
 
 
70
 
private:
71
 
    bool canHandle(ProjectExplorer::Target *parent) const;
72
 
    
73
 
};
74
 
 
75
 
}
76
 
}
77
 
#endif // UBUNTURUNCONFIGURATIONFACTORY_H