parley
#include <script.h>

Public Member Functions | |
Script (QString file) | |
~Script () | |
void | activate () |
void | addObject (QString name, QObject *object) |
void | addObjects (QMap< QString, QObject * > objects) |
void | deactivate () |
QString | errorMessage () |
bool | exists () |
QString | fileName () |
bool | isActivated () |
Detailed Description
This class represents the activated script and is used by the ScriptManager to activate/deactivate scripts.
Constructor & Destructor Documentation
Script::Script | ( | QString | file | ) |
Script class constructor.
- Parameters
-
file The path to the script file to be activated (executed)
Definition at line 23 of file script.cpp.
Script::~Script | ( | ) |
Definition at line 30 of file script.cpp.
Member Function Documentation
void Script::activate | ( | ) |
Activates the script.
Definition at line 42 of file script.cpp.
void Script::addObject | ( | QString | name, |
QObject * | object | ||
) |
Add an object to be accessible by the script.
- Parameters
-
name Name to appear in the script object Object to be accessible by the script
Definition at line 113 of file script.cpp.
void Script::addObjects | ( | QMap< QString, QObject * > | objects | ) |
Adds more than one scripting Objects to the script.
- Parameters
-
objects Map of the objects to add
Definition at line 119 of file script.cpp.
void Script::deactivate | ( | ) |
Deactivate the script.
Definition at line 93 of file script.cpp.
QString Script::errorMessage | ( | ) |
Returns an html error message if there have been errors in the script.
Definition at line 124 of file script.cpp.
bool Script::exists | ( | ) |
Checks if the script file assigned to the Script object exists as a file on the given path.
- Returns
- True if the script file exists False if it does not exist
Definition at line 100 of file script.cpp.
QString Script::fileName | ( | ) |
Returns the file that was given as parameter to the constructor.
Definition at line 107 of file script.cpp.
bool Script::isActivated | ( | ) |
Returns true if the script was successfully activated; false otherwise.
Definition at line 36 of file script.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.