QAxScriptEngine(3qt)

NAME
QAxScriptEngine - Wrapper around a script engine

SYNOPSIS
This class is part of the Qt ActiveQt Extension.

#include <qaxscript.h>

Inherits QAxObject.

  Public Members
enum State { Uninitialized = 0, Initialized = 5, Started = 1, Connected = 2, Disconnected = 3, Closed = 4 }
QAxScriptEngine ( const TQString & language, QAxScript * script )
~QAxScriptEngine ()
bool isValid () const
bool hasIntrospection () const
TQString scriptLanguage () const
State state () const
void setState ( State st )
void addItem ( const TQString & name )
long queryInterface ( const QUuid & uuid, void ** iface ) const

DESCRIPTION
This class is defined in the Qt ActiveQt Extension, which can be found in the qt/extensions directory. It is not included in the main TQt API.

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.

  Member Type Documentation

QAxScriptEngine::State
The State enumeration defines the different states a script engine can be in.

QAxScriptEngine::Uninitialized - The script has been created, but not yet initialized

QAxScriptEngine::Initialized - The script has been initialized, but is not running

QAxScriptEngine::Started - The script can execute code, but does not yet handle events

QAxScriptEngine::Connected - The script can execute code and is connected so that it can handle events

QAxScriptEngine::Disconnected - The script is loaded, but is not connected to event sources

QAxScriptEngine::Closed - The script has been closed.

MEMBER FUNCTION DOCUMENTATION

QAxScriptEngine::QAxScriptEngine ( const TQString & language, QAxScript * script )
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.

QAxScriptEngine::~QAxScriptEngine ()
Destroys the QAxScriptEngine object, releasing all allocated resources.

void QAxScriptEngine::addItem ( const TQString & name )
Registers an item with the script engine. Script code can refer to this item using name.

bool QAxScriptEngine::hasIntrospection () const
Returns true if the script engine supports introspection; otherwise returns false.

bool QAxScriptEngine::isValid () const
Returns true if the script engine has been initialized correctly; otherwise returns false.

long QAxScriptEngine::queryInterface ( const QUuid & uuid, void ** iface ) const
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.

TQString QAxScriptEngine::scriptLanguage () const
Returns the scripting language, for example "VBScript", or "JScript".

void QAxScriptEngine::setState ( State st )
Sets the state of the script engine to st. Calling this function is usually not necessary.

State QAxScriptEngine::state () const
Returns the state of the script engine.

SEE ALSO
http://doc.trolltech.com/qaxscriptengine.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.

The definitive TQt documentation is provided in HTML format; it is located at $TQTDIR/doc/html and can be read using TQt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (tqaxscriptengine.3qt) and the Qt version (3.3.8).