ProjectManager: Return FilePaths from ProjectImporter::importCandidates

Proliferates FilePath use a bit further. Actual changes to the
individual importers are left for further patches.

Change-Id: Ie7c6b2e3f4ac7d0eca6d2f56d30fb23354bb404b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
hjk
2022-09-26 14:21:12 +02:00
parent bcadea2285
commit 985c8b1a43
11 changed files with 28 additions and 49 deletions

View File

@@ -16,7 +16,7 @@ MesonProjectImporter::MesonProjectImporter(const Utils::FilePath &path)
: QtSupport::QtProjectImporter{path}
{}
QStringList MesonProjectImporter::importCandidates()
Utils::FilePaths MesonProjectImporter::importCandidates()
{
//TODO, this can be done later
return {};

View File

@@ -3,21 +3,18 @@
#pragma once
#include "exewrappers/mesonwrapper.h"
#include <projectexplorer/buildinfo.h>
#include <projectexplorer/kit.h>
#include <qtsupport/qtprojectimporter.h>
namespace MesonProjectManager {
namespace Internal {
namespace MesonProjectManager::Internal {
class MesonProjectImporter final : public QtSupport::QtProjectImporter
{
public:
MesonProjectImporter(const Utils::FilePath &path);
QStringList importCandidates() final;
Utils::FilePaths importCandidates() final;
private:
// importPath is an existing directory at this point!
@@ -32,5 +29,4 @@ private:
void deleteDirectoryData(void *directoryData) const final;
};
} // namespace Internal
} // namespace MesonProjectManager
} // MesonProjectManager::Internal