|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications | ![]() |
The QSUtilFactory class extends QSA with classes to allow file access, directory traversal and executing external processes. More...
#include <qsutilfactory.h>
Inherits QSObjectFactory.
The QSUtilFactory class extends QSA with classes to allow file access, directory traversal and executing external processes.
To extend the interpreter with the Utililty Framework you must create an instance of the QSUtilFactory class and add it to the interpreter using the function QSInterpreter::addObjectFactory(). For example:
QSProject proj; QSInterpreter *ip = proj->interpreter(); ip->addObjectFactory( new QSUtilFactory );
The script extensions provided by the QSUtilFactory are described in detail in Utility Framework
The Utilities enum can be used to enable and disable script access to the classes that the utility factory provides, thereby controlling the access that end users can have to the underlying system.
The QSUtilityFactory must be added to an interpreter before its classes can be used
See also QSInterpreter::addObjectFactory() and Utilities.
This file is part of Qt Script for Applications, copyright © 2001-2004 Trolltech. All Rights Reserved.
Copyright © 2001-2006 Trolltech | Trademarks | QSA version 1.1.5
|