• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

Public Member Functions | List of all members
Script Class Reference

#include <script.h>

Inheritance diagram for Script:
Inheritance graph
[legend]

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.

Author
Avgoustinos Kadis avgou.nosp@m.stin.nosp@m.os.ka.nosp@m.dis@.nosp@m.kdema.nosp@m.il.n.nosp@m.et

Definition at line 31 of file script.h.

Constructor & Destructor Documentation

Script::Script ( QString  file)

Script class constructor.

Parameters
fileThe 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
nameName to appear in the script
objectObject 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
objectsMap 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:
  • script.h
  • script.cpp
This file is part of the KDE documentation.
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.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal