Extending Qt Creator Manual | ProjectImporter

Extending Qt Creator Manual 4.4.0

# ProjectImporter Class

(ProjectExplorer::ProjectImporter)

- List of all members, including inherited members

## Public Types

class | ToolChainData

## Public Functions

| ProjectImporter(const Utils::FileName &path)
virtual | ~ProjectImporter()
void | addProject(Kit *k) const
void | cleanupKit(Kit *k) const
virtual QList<BuildInfo *> | import(const Utils::FileName &importPath, bool silent = false)
virtual QStringList | importCandidates() = 0
bool | isTemporaryKit(Kit *k) const
bool | isUpdating() const
void | makePersistent(Kit *k) const
virtual Target * | preferredTarget(const QList<Target *> &possibleTargets)
const Utils::FileName | projectDirectory() const
const Utils::FileName | projectFilePath() const
void | removeProject(Kit *k) const

## Protected Types

class | UpdateGuard

## Protected Functions

void | addTemporaryData(Core::Id id, const QVariant &cleanupData, Kit *k) const
virtual QList<BuildInfo *> | buildInfoListForKit(const Kit *k, void *directoryData) const = 0
virtual Kit * | createKit(void *directoryData) const = 0
ProjectExplorer::Kit * | createTemporaryKit(const KitSetupFunction &setup) const
virtual void | deleteDirectoryData(void *directoryData) const = 0
virtual QList<void *> | examineDirectory(const Utils::FileName &importPath) const = 0
ToolChainData | findOrCreateToolChains(const Utils::FileName &toolChainPath, const Core::Id &language) const
bool | hasKitWithTemporaryData(Core::Id id, const QVariant &data) const
virtual bool | matchKit(void *directoryData, const Kit *k) const = 0
void | useTemporaryKitInformation(Core::Id id, CleanupFunction cleanup, PersistFunction persist)

## Member Function Documentation

### ProjectImporter::ProjectImporter(const Utils::FileName &path)

Default constructs an instance of ProjectImporter.

### `[virtual]` ProjectImporter::~ProjectImporter()

Destroys the instance of ProjectImporter. The destructor is virtual.

### void ProjectImporter::addProject(Kit *k) const

### `[protected]` void ProjectImporter::addTemporaryData(Core::Id id, const QVariant &cleanupData, Kit *k) const

### `[pure virtual protected]` QList<BuildInfo *> ProjectImporter::buildInfoListForKit(const Kit *k, void *directoryData) const

### void ProjectImporter::cleanupKit(Kit *k) const

### `[pure virtual protected]` Kit *ProjectImporter::createKit(void *directoryData) const

### `[protected]` ProjectExplorer::Kit *ProjectImporter::createTemporaryKit(const KitSetupFunction &setup) const

### `[pure virtual protected]` void ProjectImporter::deleteDirectoryData(void *directoryData) const

### `[pure virtual protected]` QList<void *> ProjectImporter::examineDirectory(const Utils::FileName &importPath) const

### `[protected]` ToolChainData ProjectImporter::findOrCreateToolChains(const Utils::FileName &toolChainPath, const Core::Id &language) const

### `[protected]` bool ProjectImporter::hasKitWithTemporaryData(Core::Id id, const QVariant &data) const

### `[virtual]` QList<BuildInfo *> ProjectImporter::import(const Utils::FileName &importPath, bool silent = false)

### `[pure virtual]` QStringList ProjectImporter::importCandidates()

### bool ProjectImporter::isTemporaryKit(Kit *k) const

### bool ProjectImporter::isUpdating() const

### void ProjectImporter::makePersistent(Kit *k) const

### `[pure virtual protected]` bool ProjectImporter::matchKit(void *directoryData, const Kit *k) const

### `[virtual]` Target *ProjectImporter::preferredTarget(const QList<Target *> &possibleTargets)

### const Utils::FileName ProjectImporter::projectDirectory() const

### const Utils::FileName ProjectImporter::projectFilePath() const

### void ProjectImporter::removeProject(Kit *k) const

### `[protected]` void ProjectImporter::useTemporaryKitInformation(Core::Id id, CleanupFunction cleanup, PersistFunction persist)