diff options
Diffstat (limited to 'src/plugins/projectexplorer/deployablefile.cpp')
-rw-r--r-- | src/plugins/projectexplorer/deployablefile.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/deployablefile.cpp b/src/plugins/projectexplorer/deployablefile.cpp index 46acd15343..967b05a538 100644 --- a/src/plugins/projectexplorer/deployablefile.cpp +++ b/src/plugins/projectexplorer/deployablefile.cpp @@ -38,16 +38,17 @@ using namespace Utils; namespace ProjectExplorer { DeployableFile::DeployableFile() + : m_type(TypeNormal) { } -DeployableFile::DeployableFile(const QString &localFilePath, const QString &remoteDir) - : m_localFilePath(FileName::fromUserInput(localFilePath)), m_remoteDir(remoteDir) +DeployableFile::DeployableFile(const QString &localFilePath, const QString &remoteDir, Type type) + : m_localFilePath(FileName::fromUserInput(localFilePath)), m_remoteDir(remoteDir), m_type(type) { } -DeployableFile::DeployableFile(const FileName &localFilePath, const QString &remoteDir) - : m_localFilePath(localFilePath), m_remoteDir(remoteDir) +DeployableFile::DeployableFile(const FileName &localFilePath, const QString &remoteDir, Type type) + : m_localFilePath(localFilePath), m_remoteDir(remoteDir), m_type(type) { } @@ -62,6 +63,11 @@ bool DeployableFile::isValid() const return !m_localFilePath.toString().isEmpty() && !m_remoteDir.isEmpty(); } +bool DeployableFile::isExecutable() const +{ + return m_type == TypeExecutable; +} + uint qHash(const DeployableFile &d) { return qHash(qMakePair(d.localFilePath().toString(), d.remoteDirectory())); |