diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2011-08-01 16:44:59 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@nokia.com> | 2011-08-01 17:31:26 +0200 |
commit | 04edb4513c79edfd35b7e48689dcda333b3067e0 (patch) | |
tree | fa04b005f89e990fe2c8db69d10dee0b44bb199a /src/plugins/remotelinux/deploymentsettingsassistant.h | |
parent | bfa29c3efcdea96b72631c561fd82c31b42479bc (diff) | |
download | qt-creator-04edb4513c79edfd35b7e48689dcda333b3067e0.tar.gz |
RemoteLinux: Overhaul deployment infrastructure.
- Introduce generic and Madde-specific deploy configuration widgets.
- Move project file update logic into dedicated class.
- Generic deploy configuration widget no longer has the ability to change deployment settings via the GUI, because we cannot know which qmake scope to use for that.
Change-Id: Ie542a0852c8aa1c6b416cd7aece4e48c1cc2de7c
Reviewed-on: http://codereview.qt.nokia.com/2445
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/deploymentsettingsassistant.h')
-rw-r--r-- | src/plugins/remotelinux/deploymentsettingsassistant.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/deploymentsettingsassistant.h b/src/plugins/remotelinux/deploymentsettingsassistant.h new file mode 100644 index 0000000000..dbf6aea49c --- /dev/null +++ b/src/plugins/remotelinux/deploymentsettingsassistant.h @@ -0,0 +1,72 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (info@qt.nokia.com) +** +** 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. +** +** If you have questions regarding the use of this file, please contact +** Nokia at info@qt.nokia.com. +** +**************************************************************************/ +#ifndef DEPLOYMENTSETTINGSASSISTANT_H +#define DEPLOYMENTSETTINGSASSISTANT_H + +#include "remotelinux_export.h" + +#include <QtCore/QObject> +#include <QtCore/QSharedPointer> +#include <QtCore/QStringList> + +namespace RemoteLinux { +class DeployableFile; +class DeployableFilesPerProFile; +class DeploymentInfo; + +namespace Internal { +class DeploymentSettingsAssistantInternal; +} // namespace Internal + +class REMOTELINUX_EXPORT DeploymentSettingsAssistant : public QObject +{ + Q_OBJECT + Q_DISABLE_COPY(DeploymentSettingsAssistant) +public: + DeploymentSettingsAssistant(const QString &qmakeScope, const QString &iunstallPrefix, + const QSharedPointer<DeploymentInfo> &deploymentInfo, QObject *parent = 0); + ~DeploymentSettingsAssistant(); + + bool addDeployableToProFile(const DeployableFilesPerProFile *proFileInfo, + const QString &variableName, const DeployableFile &deployable); + +private slots: + void handleDeploymentInfoUpdated(); + +private: + bool addLinesToProFile(const DeployableFilesPerProFile *proFileInfo, const QStringList &lines); + + Internal::DeploymentSettingsAssistantInternal * const m_d; +}; + +} // namespace RemoteLinux + +#endif // DEPLOYMENTSETTINGSASSISTANT_H |