QAxScriptEngine Class
The QAxScriptEngine class provides a wrapper around a script engine. More...
Header: | #include <QAxScriptEngine> |
qmake: | QT += axcontainer |
Public Types
enum | State { Uninitialized, Initialized, Started, Connected, Disconnected, Closed } |
Public Functions
QAxScriptEngine(const QString &language, QAxScript *script) | |
~QAxScriptEngine() | |
void | addItem(const QString &name) |
bool | hasIntrospection() const |
bool | isValid() const |
long | queryInterface(const QUuid &, void **) const |
QString | scriptLanguage() const |
void | setState(QAxScriptEngine::State st) |
QAxScriptEngine::State | state() const |
Protected Functions
bool | initialize(int **ptr) override |
Detailed Description
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 compiler.
See also QAxScript, QAxScriptManager, QAxBase, and ActiveQt Framework.
Member Type Documentation
enum QAxScriptEngine::State
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. |
Member Function Documentation
QAxScriptEngine::QAxScriptEngine(const QString &language, QAxScript *script)
Default constructs an instance of QAxScriptEngine.
QAxScriptEngine::~QAxScriptEngine()
Destroys the instance of QAxScriptEngine.
void QAxScriptEngine::addItem(const QString &name)
bool QAxScriptEngine::hasIntrospection() const
[protected]
bool QAxScriptEngine::initialize(int **ptr)
bool QAxScriptEngine::isValid() const
long QAxScriptEngine::queryInterface(const QUuid &, void **) const
QString QAxScriptEngine::scriptLanguage() const
void QAxScriptEngine::setState(QAxScriptEngine::State st)
See also state().
QAxScriptEngine::State QAxScriptEngine::state() const
See also setState().