Home · Overviews · Reference · Classes |
The Solution class represents a solution. More...
#include <Solution>
The Solution class represents a solution.
See also Solution Filesystem.
This enum is used to locate files in one of three specific locations.
Constant | Value |
---|---|
Solution::Generated | 1 |
Solution::Project | 0 |
Solution::Existing | 2 |
Constant | Value |
---|---|
Solution::None | 0x0000 |
Solution::_Project | 0x0001 |
Solution::Absolute | 0x0008 |
Solution::Wildcard | 0x0010 |
Solution::All | 0x0019 |
Map filesystemPath to solutionPath.
Returns the blank.pri file for each solution.
Returns a SolutionFile for the build file given by _name. This file may not exist. If name is relative, it will be taken as relative to the relative file. If no relative file is provided and name is relative, a null SolutionFile will be returned.
Returns the common.pri file for each solution.
Create the default solution. Returns true.
Returns the default.pri file for each solution.
Returns the default solution.
See also setDefaultSolution().
Returns the disabled.pri file for each solution.
Returns the first solution file instance that maps to name with the given type. If name is relative, it will be taken as relative to the relative file. If no relative file is provided and name is relative, a null SolutionFile will be returned.
FIXME type
The same as file(), except that it returns a list of all files, in case more than one exists.
FIXME _name type relative.
This is an overloaded member function, provided for convenience.
Return a list of solution files that match id. id must be an absolute path, and may contain the "*" wild card in the file section. For example:
/services/Date.service /services/D*.service /services/D*.* /services/
are valid and
services/Date.service /s*s/Date.service
are not.
Returns the filesystem path of the build directory given by _name. This path may not exist. If name is relative, it will be taken as relative to the relative file. If no relative file is provided and name is relative, an empty string will be returned.
Returns a list of fully qualified filesystem paths that map to _name. If name is relative, it will be taken as relative to the relative file. If no relative file is provided and name is relative, an empty string will be returned.
FIXME type
Takes a solution path id and returns a SolutionFile instance.
If type is Solution::Project, all project directories (including the build directory) is searched. The first directory containing the file is returned, or the build directory if the file doesn't exist.
if type is Solution::Generated, the file is returned relative to the build directory.
If type is Solution::Existing, the same directories as Solution::Project are searched, with the additional constraint that if the file does not exist (even in the build directory) a null SolutionFile is returned.
The solution path id has the following form:
[<Solution Name>:]<Request Path>
The request path must not contain ':' characters before the first separator character '/' to prevent an ambiguous reference. If necessary, the special solution name "current" can be used to work around this.
If file is provided (an a non-"current" solution name is not provided), id may be specified relative to it.
Takes the true (absolute) realPath and returns it as a SolutionFile. This version uses fuzzy logic so that paths like <build>/devices/greenphone/src are mapped to /src.
Return the name of the solution.
Returns a list of file system paths that map to the solution path id.
Returns a list of fully qualified paths that match _name. This is generally only useful if Wildcard is specified.
FIXME type relative
This is an overloaded member function, provided for convenience.
Returns a list of the file system paths that map to the solution path id.
FIXME unused
Takes the true (absolute) realPath and returns it as a SolutionFile. Thanks to the "!" mechanism (absolute fs paths), this will *always* return a valid SolutionFile unless a non-absolute path is passed in which case a null SolutionFile is returned.
Set the default solution to solution.
See also defaultSolution().
Returns the solution with name name.
Returns the names of the solutions.
Returns a list of fully qualified sub-paths of name. If name is relative is is evaluated as relative to the relative file. If it is relative and the file is not provided, an empty list is returned.
FIXME type
Copyright © 2009 Nokia | Qt Extended - QBuild Maintainer Guide |