QmlProjectManager: Prepare for running on remote devices

We add a "targetDirectory" property to the file format and fill in the
deployment data.

(cherry picked from commit fba61c5b55)
Change-Id: If207cd5c77175c54cffdb5df92ea85c425cd3191
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Ulf Hermann
2017-11-28 15:57:15 +01:00
parent c535cce8c6
commit e44504371c
9 changed files with 143 additions and 55 deletions

View File

@@ -60,8 +60,11 @@ public:
void refresh(RefreshOptions options);
QDir projectDir() const;
Utils::FileName canonicalProjectDir() const;
QString mainFile() const;
Utils::FileName targetDirectory(const ProjectExplorer::Target *target) const;
Utils::FileName targetFile(const Utils::FileName &sourceFile,
const ProjectExplorer::Target *target) const;
QStringList customImportPaths() const;
bool addFiles(const QStringList &filePaths);
@@ -74,7 +77,9 @@ protected:
private:
void generateProjectTree();
void updateDeploymentData(ProjectExplorer::Target *target);
void refreshFiles(const QSet<QString> &added, const QSet<QString> &removed);
void refreshTargetDirectory();
void addedTarget(ProjectExplorer::Target *target);
void onActiveTargetChanged(ProjectExplorer::Target *target);
void onKitChanged();
@@ -86,6 +91,7 @@ private:
ProjectExplorer::Target *m_activeTarget = nullptr;
QPointer<QmlProjectItem> m_projectItem;
Utils::FileName m_canonicalProjectDir;
};
} // namespace QmlProjectManager