2011-07-14 15:38:16 +02:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2011-07-14 15:38:16 +02:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-07-14 15:38:16 +02:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
|
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2011-07-14 15:38:16 +02:00
|
|
|
#ifndef REMOTELINUXDEPLOYCONFIGURATION_H
|
|
|
|
|
#define REMOTELINUXDEPLOYCONFIGURATION_H
|
|
|
|
|
|
|
|
|
|
#include "linuxdeviceconfiguration.h"
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2011-07-14 15:38:16 +02:00
|
|
|
#include "remotelinux_export.h"
|
|
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
#include <coreplugin/id.h>
|
2011-07-25 11:55:00 +02:00
|
|
|
#include <projectexplorer/buildstep.h>
|
|
|
|
|
#include <projectexplorer/buildsteplist.h>
|
2011-07-14 15:38:16 +02:00
|
|
|
#include <projectexplorer/deployconfiguration.h>
|
|
|
|
|
|
|
|
|
|
namespace RemoteLinux {
|
2012-02-07 14:13:56 +01:00
|
|
|
class AbstractEmbeddedLinuxTarget;
|
2011-07-14 15:38:16 +02:00
|
|
|
class DeploymentInfo;
|
|
|
|
|
|
|
|
|
|
namespace Internal {
|
2012-04-24 15:49:09 +02:00
|
|
|
class RemoteLinuxDeployConfigurationFactory;
|
2011-07-22 12:38:57 +02:00
|
|
|
class TypeSpecificDeviceConfigurationListModel;
|
2011-07-14 15:38:16 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
|
|
|
|
|
class REMOTELINUX_EXPORT RemoteLinuxDeployConfiguration
|
|
|
|
|
: public ProjectExplorer::DeployConfiguration
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2011-07-14 15:38:16 +02:00
|
|
|
public:
|
2012-03-15 17:17:40 +01:00
|
|
|
RemoteLinuxDeployConfiguration(ProjectExplorer::Target *target, const Core::Id id,
|
2012-02-07 14:13:56 +01:00
|
|
|
const QString &defaultDisplayName);
|
2011-07-14 15:38:16 +02:00
|
|
|
RemoteLinuxDeployConfiguration(ProjectExplorer::Target *target,
|
|
|
|
|
RemoteLinuxDeployConfiguration *source);
|
|
|
|
|
|
|
|
|
|
ProjectExplorer::DeployConfigurationWidget *configurationWidget() const;
|
|
|
|
|
|
2012-02-07 14:13:56 +01:00
|
|
|
DeploymentInfo *deploymentInfo() const;
|
2011-07-14 15:38:16 +02:00
|
|
|
|
2011-07-25 16:46:10 +02:00
|
|
|
template<class T> T *earlierBuildStep(const ProjectExplorer::BuildStep *laterBuildStep) const
|
2011-07-25 11:55:00 +02:00
|
|
|
{
|
|
|
|
|
const QList<ProjectExplorer::BuildStep *> &buildSteps = stepList()->steps();
|
|
|
|
|
for (int i = 0; i < buildSteps.count(); ++i) {
|
|
|
|
|
if (buildSteps.at(i) == laterBuildStep)
|
|
|
|
|
return 0;
|
|
|
|
|
if (T * const step = dynamic_cast<T *>(buildSteps.at(i)))
|
|
|
|
|
return step;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
virtual QString qmakeScope() const;
|
|
|
|
|
virtual QString installPrefix() const;
|
2012-02-22 19:54:47 -08:00
|
|
|
|
2011-07-14 15:38:16 +02:00
|
|
|
signals:
|
2012-04-24 15:49:09 +02:00
|
|
|
void packagingChanged();
|
2011-07-14 15:38:16 +02:00
|
|
|
|
|
|
|
|
private:
|
2012-04-24 15:49:09 +02:00
|
|
|
friend class Internal::RemoteLinuxDeployConfigurationFactory;
|
2011-07-14 15:38:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace RemoteLinux
|
|
|
|
|
|
|
|
|
|
#endif // REMOTELINUXDEPLOYCONFIGURATION_H
|