QAxScriptEngine Class ReferenceThe QAxScriptEngine class provides a wrapper around a script engine. More... #include <QAxScriptEngine> Inherits QAxObject. Public Types
Public Functions
Reimplemented Protected Functions
Additional Inherited Members
Detailed DescriptionThe 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. Member Type Documentationenum QAxScriptEngine::StateThe State enumeration defines the different states a script engine can be in.
Member Function DocumentationQAxScriptEngine::QAxScriptEngine ( const QString & 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 QString & name )Registers an item with the script engine. Script code can refer to this item using name. bool QAxScriptEngine::hasIntrospection () constReturns true if the script engine supports introspection; otherwise returns false. bool QAxScriptEngine::initialize ( IUnknown ** ptr ) [virtual protected]Reimplemented from QAxBase::initialize(). bool QAxScriptEngine::isValid () constReturns true if the script engine has been initialized correctly; otherwise returns false. long QAxScriptEngine::queryInterface ( const QUuid & uuid, void ** iface ) constRequests 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. QString QAxScriptEngine::scriptLanguage () constReturns 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. See also state(). State QAxScriptEngine::state () constReturns the state of the script engine. See also setState(). X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |