Home · Overviews · Reference · Classes codeless banner

SolutionFile Javascript Class Reference

Methods

isFilesystemFile(): boolean

Returns true if this solution file refers to a raw filesystem file and not a file in the build or project trees.

isProjectFile(): boolean

Returns true if this solution file refers to a file in the project tree. Both isProjectFile() and isBuildFile() may return true if the project and build trees are the same.

isBuildFile(): boolean

Returns true if this solution file refers to a file in the project tree. Both isProjectFile() and isBuildFile() may return true if the project and build trees are the same.

isDirectory(): boolean

Returns true if this solution file refers to a directory.

exists(): boolean

Returns true if this solution file exists.

name(): string

Returns the file name. For example, for the file "/include/stdio.h", the name is "stdio.h".

path(): string

Returns the full path of the file in project space if this is a project or build file. If this is a filesystem file, this method returns the same as filesystemPath. The path is the full directory and name of the file (eg. "/include/qtopia/qtopia.h")

dir(): string

Returns the directory containing the file in project space if this is a project or build file. If this is a filesystem file, this method returns the same as filesystemDir. For example, the dir of "/include/qtopia/qtopia.h" is "/include/qtopia"

filesystemPath(): string

Returns the full path of the file on the filesystem.

filesystemDir(): string

Returns the directory containing the file on the filesystem.

solution(): Solution

Returns the solution containing the file if it is a project or build file, otherwise returns null.

See also Javascript Binding.


Copyright © 2009 Nokia
Qt Extended - QBuild Maintainer Guide