Home · Overviews · Reference · Classes |
The FunctionProvider class exports functions into the QBuild environment. More...
#include <FunctionProvider>
Inherited by BuiltinFunctions and QtScriptFunctions.
The FunctionProvider class exports functions into the QBuild environment.
Function providers are typically instantiated like this.
static MyFunctionProvider myFunctionProvider;
Construct a FunctionProvider with the specified type and priority. Higher priority values take precedence over lower priority values. Valid priority values are positive numbers greater than 0. If an invalid priority is passed, the provider is added at the end of the list.
Destruct the FunctionProvider, removing it from the list of providers.
Add path to the list of paths that extensions can be found in.
This runs function with arguments. The function is passed the project and returns data via rv. Returns true if the function exists, false otherwise.
Attempt to execute function function with arguments arguments. The function providers are queried in order. They are passed the project. The return value is set via rv. Returns true if the function was called, false otherwise.
See also callFunction().
Load name as an extension for project. The name is either a path to a file or a name to search for in the extensions paths. Returns true if the extension was loaded, false otherwise.
Returns the list of paths that extensions can be found in.
Returns the extension of files that this FunctionProvider can load.
Returns the list of function providers ordered by priority.
Load extension file for project. Returns true if successful, false otherwise.
Reset project project. The providers will clear out any associated data.
See also resetProject().
This function is called because project has been reset. Any state associated with this project should be cleared.
Returns the name of the function provider.
Copyright © 2009 Nokia | Qt Extended - QBuild Maintainer Guide |