The QAxScriptEngine class provides a wrapper around a script engine. More...
#include <QAxScriptEngine>
Inherits: QAxObject.
enum | State { Uninitialized, Initialized, Started, Connected, Disconnected, Closed } |
QAxScriptEngine ( const QString & language, QAxScript * script ) | |
~QAxScriptEngine () | |
void | addItem ( const QString & name ) |
bool | hasIntrospection () const |
bool | isValid () const |
long | queryInterface ( const QUuid & uuid, void ** iface ) const |
QString | scriptLanguage () const |
void | setState ( State st ) |
State | state () const |
virtual bool | initialize ( IUnknown ** ptr ) |
The QAxScriptEngine class provides a wrapper around a script engine.
Every instance of the QAxScriptEngine class represents an interpreter for script code in a particular scripting language. The class is usually not used directly. The QAxScript and QAxScriptManager classes provide convenient functions to handle and call script code.
Direct access to the script engine is provided through queryInterface().
Warning: This class is not available with the bcc5.5 and MingW compilers.
See also QAxScript, QAxScriptManager, QAxBase, and ActiveQt Framework.
The State enumeration defines the different states a script engine can be in.
Constant | Value | Description |
---|---|---|
QAxScriptEngine::Uninitialized | 0 | The script has been created, but not yet initialized |
QAxScriptEngine::Initialized | 5 | The script has been initialized, but is not running |
QAxScriptEngine::Started | 1 | The script can execute code, but does not yet handle events |
QAxScriptEngine::Connected | 2 | The script can execute code and is connected so that it can handle events |
QAxScriptEngine::Disconnected | 3 | The script is loaded, but is not connected to event sources |
QAxScriptEngine::Closed | 4 | The script has been closed. |
Constructs a QAxScriptEngine object interpreting script code in language provided by the code in script. This is usually done by the QAxScript class when loading a script.
Instances of QAxScriptEngine should always have both a language and a script.
Destroys the QAxScriptEngine object, releasing all allocated resources.
Registers an item with the script engine. Script code can refer to this item using name.
Returns true if the script engine supports introspection; otherwise returns false.
Reimplemented from QAxBase::initialize().
Returns true if the script engine has been initialized correctly; otherwise returns false.
Requests the interface uuid from the script engine object and sets the value of iface to the provided interface, or to 0 if the requested interface could not be provided.
Returns the result of the QueryInterface implementation of the COM object.
Returns the scripting language, for example "VBScript", or "JScript".
Sets the state of the script engine to st. Calling this function is usually not necessary.
See also state().
Returns the state of the script engine.
See also setState().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.