ProjectNode Class | Extending Qt Creator Manual

Extending Qt Creator Manual | ProjectNode

Extending Qt Creator Manual 4.6.0

# ProjectNode Class

(ProjectExplorer::ProjectNode)

The ProjectNode class is an in-memory presentation of a Project. More...

Header: | #include <ProjectNode>
Inherits: | ProjectExplorer::FolderNode

- List of all members, including inherited members

## Public Functions

virtual bool | addSubProject(const QString &proFile)
virtual bool | canAddSubProject(const QString &proFilePath) const
virtual bool | deploysFolder(const QString &folder) const
ProjectNode * | projectNode(const Utils::FileName &file) const
virtual bool | removeSubProject(const QString &proFilePath)
virtual QList<RunConfiguration *> | runConfigurations() const

## Reimplemented Public Functions

virtual bool | addFiles(const QStringList &filePaths, QStringList *notAdded = 0) override
virtual ProjectNode * | asProjectNode() final
virtual const ProjectNode * | asProjectNode() const final
virtual bool | canRenameFile(const QString &filePath, const QString &newFilePath) override
virtual bool | deleteFiles(const QStringList &filePaths) override
virtual bool | removeFiles(const QStringList &filePaths, QStringList *notRemoved = 0) override
virtual bool | renameFile(const QString &filePath, const QString &newFilePath) override
virtual bool | supportsAction(ProjectAction action, const Node *node) const override

- 34 public functions inherited from ProjectExplorer::FolderNode
- 27 public functions inherited from ProjectExplorer::Node

## Protected Functions

| ProjectNode(const Utils::FileName &projectFilePath, const QByteArray &id = {})

- 1 protected function inherited from ProjectExplorer::FolderNode
- 2 protected functions inherited from ProjectExplorer::Node

### Additional Inherited Members

- 3 static public members inherited from ProjectExplorer::Node

## Detailed Description

The ProjectNode class is an in-memory presentation of a Project.

A concrete subclass must implement the persistent data.

See also ProjectExplorer::FileNode and ProjectExplorer::FolderNode.

## Member Function Documentation

### `[protected]` ProjectNode::ProjectNode(const Utils::FileName &projectFilePath, const QByteArray &id = {})

Creates an uninitialized project node object.

### `[override virtual]` bool ProjectNode::addFiles(const QStringList &filePaths, QStringList *notAdded = 0)

### `[virtual]` bool ProjectNode::addSubProject(const QString &proFile)

### `[final virtual]` ProjectNode *ProjectNode::asProjectNode()

### `[final virtual]` const ProjectNode *ProjectNode::asProjectNode() const

### `[virtual]` bool ProjectNode::canAddSubProject(const QString &proFilePath) const

### `[override virtual]` bool ProjectNode::canRenameFile(const QString &filePath, const QString &newFilePath)

### `[override virtual]` bool ProjectNode::deleteFiles(const QStringList &filePaths)

### `[virtual]` bool ProjectNode::deploysFolder(const QString &folder) const

### ProjectNode *ProjectNode::projectNode(const Utils::FileName &file) const

### `[override virtual]` bool ProjectNode::removeFiles(const QStringList &filePaths, QStringList *notRemoved = 0)

### `[virtual]` bool ProjectNode::removeSubProject(const QString &proFilePath)

### `[override virtual]` bool ProjectNode::renameFile(const QString &filePath, const QString &newFilePath)

### `[virtual]` QList<RunConfiguration *> ProjectNode::runConfigurations() const

Returns a list of `RunConfiguration` suitable for this node.

### `[override virtual]` bool ProjectNode::supportsAction(ProjectAction action, const Node *node) const