#include <QObject>#include <QtScript>Functions | |
| QScriptValue | includeScript (QScriptContext *context, QScriptEngine *engine) |
| Implements an include facility for use in xTuple ERP scripts. | |
| void | setupInclude (QScriptEngine *engine) |
| Sets the include() function as a property of the global object. | |
| QScriptValue includeScript | ( | QScriptContext * | context, | |
| QScriptEngine * | engine | |||
| ) |
Implements an include facility for use in xTuple ERP scripts.
This is the C++ implementation of the include() function. It should never be called directly.
| context | The context contains a list of arguments passed to the include() function by the calling script. All arguments are processed as potential script names to be loaded and run. | |
| engine | The QScriptEngine in which to load the included scripts. |
| void setupInclude | ( | QScriptEngine * | engine | ) |
Sets the include() function as a property of the global object.
This installs the include() function as a property in the global namespace of the given QScriptEngine. It should only be called by setupScriptApi().
| engine | A pointer to the script engine in which to install the include function. |
| Generated on Tue Apr 20 12:02:26 2010 | xTuple ERP Programmer Reference, Version 3.5.0 |
1.6.1
|