2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-07-07 10:43:59 +02:00
|
|
|
**
|
2014-01-07 13:27:11 +01:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-10-02 09:12:39 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2011-07-07 10:43:59 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-07-07 10:43:59 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2011-07-07 10:43:59 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, 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, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2011-07-07 10:43:59 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2011-07-07 10:43:59 +02:00
|
|
|
#ifndef ABSTRACTREMOTELINUXDEPLOYSTEP_H
|
|
|
|
|
#define ABSTRACTREMOTELINUXDEPLOYSTEP_H
|
|
|
|
|
|
|
|
|
|
#include "remotelinux_export.h"
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/buildstep.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QVariantMap>
|
2011-07-07 10:43:59 +02:00
|
|
|
|
|
|
|
|
namespace RemoteLinux {
|
|
|
|
|
class AbstractRemoteLinuxDeployService;
|
2011-07-14 15:38:16 +02:00
|
|
|
class RemoteLinuxDeployConfiguration;
|
|
|
|
|
|
2014-02-11 21:55:42 +02:00
|
|
|
namespace Internal { class AbstractRemoteLinuxDeployStepPrivate; }
|
2011-07-07 10:43:59 +02:00
|
|
|
|
|
|
|
|
class REMOTELINUX_EXPORT AbstractRemoteLinuxDeployStep : public ProjectExplorer::BuildStep
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2011-07-13 18:02:35 +02:00
|
|
|
|
2011-07-07 10:43:59 +02:00
|
|
|
public:
|
2012-07-13 12:44:01 +02:00
|
|
|
~AbstractRemoteLinuxDeployStep();
|
2011-07-07 10:43:59 +02:00
|
|
|
bool fromMap(const QVariantMap &map);
|
|
|
|
|
QVariantMap toMap() const;
|
|
|
|
|
bool init();
|
|
|
|
|
void run(QFutureInterface<bool> &fi);
|
|
|
|
|
bool runInGuiThread() const { return true; }
|
|
|
|
|
void cancel();
|
|
|
|
|
ProjectExplorer::BuildStepConfigWidget *createConfigWidget();
|
2011-07-14 15:38:16 +02:00
|
|
|
RemoteLinuxDeployConfiguration *deployConfiguration() const;
|
2011-07-07 10:43:59 +02:00
|
|
|
|
2011-09-15 09:10:10 +02:00
|
|
|
virtual AbstractRemoteLinuxDeployService *deployService() const = 0;
|
2011-07-07 10:43:59 +02:00
|
|
|
|
|
|
|
|
protected:
|
2012-03-15 17:17:40 +01:00
|
|
|
AbstractRemoteLinuxDeployStep(ProjectExplorer::BuildStepList *bsl, const Core::Id id);
|
2011-07-07 10:43:59 +02:00
|
|
|
AbstractRemoteLinuxDeployStep(ProjectExplorer::BuildStepList *bsl,
|
|
|
|
|
AbstractRemoteLinuxDeployStep *other);
|
2011-11-23 11:55:38 +01:00
|
|
|
virtual bool initInternal(QString *error = 0) = 0;
|
2011-09-23 17:39:33 +02:00
|
|
|
|
2011-07-07 10:43:59 +02:00
|
|
|
private slots:
|
|
|
|
|
void handleProgressMessage(const QString &message);
|
|
|
|
|
void handleErrorMessage(const QString &message);
|
2011-09-29 15:00:15 +02:00
|
|
|
void handleWarningMessage(const QString &message);
|
2011-07-07 10:43:59 +02:00
|
|
|
void handleFinished();
|
|
|
|
|
void handleStdOutData(const QString &data);
|
|
|
|
|
void handleStdErrData(const QString &data);
|
|
|
|
|
|
|
|
|
|
private:
|
2011-09-16 11:33:48 +02:00
|
|
|
Internal::AbstractRemoteLinuxDeployStepPrivate *d;
|
2011-07-07 10:43:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace RemoteLinux
|
|
|
|
|
|
|
|
|
|
#endif // ABSTRACTREMOTELINUXDEPLOYSTEP_H
|