2
* Copyright 2014 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: Benjamin Zeller <benjamin.zeller@canonical.com>
19
#ifndef UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H
20
#define UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H
22
#include <projectexplorer/deployconfiguration.h>
27
class UbuntuLocalDeployConfigurationFactory : public ProjectExplorer::DeployConfigurationFactory
32
explicit UbuntuLocalDeployConfigurationFactory(QObject *parent = 0);
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);
44
class UbuntuLocalDeployConfiguration : public ProjectExplorer::DeployConfiguration
47
friend class UbuntuLocalDeployConfigurationFactory; // for the ctors
49
UbuntuLocalDeployConfiguration(ProjectExplorer::Target *target, const Core::Id id);
50
UbuntuLocalDeployConfiguration(ProjectExplorer::Target *target, UbuntuLocalDeployConfiguration *source);
53
void selectAsDefaultHack();
56
} // namespace Internal
59
#endif // UBUNTU_INTERNAL_UBUNTULOCALDEPLOYCONFIGURATIONFACTORY_H