manager.cpp
83 TQString pythonlib = TQFile::encodeName( KLibLoader::self()->findLibrary(KROSS_PYTHON_LIBRARY) );
84 if(! pythonlib.isEmpty()) { // If the Kross Python plugin exists we offer it as supported scripting language.
101 if(! rubylib.isEmpty()) { // If the Kross Ruby plugin exists we offer it as supported scripting language.
104 new InterpreterInfo::Option("safelevel", "Level of safety of the Ruby interpreter", TQVariant(0)) // 0 -> unsafe, 4 -> very safe
209 krossdebug( TQString("Manager::loadModule(%1) =======> Modulename registered, but module is invalid!").arg(modulename) );
215 krosswarning( TQString("Failed to load module '%1': %2").arg(modulename).arg(loader->lastErrorMessage()) );
Common exception class used for representing exceptions in Kross.
Definition exception.h:39
TDESharedPtr< Exception > Ptr
Shared pointer to implement reference-counting.
Definition exception.h:45
Each interpreter is able to define options we could use to manipulate the interpreter behaviour.
Definition interpreter.h:50
While the Interpreter is the implemented interpreter this class is used to provide some abstract info...
Definition interpreter.h:42
void setException(Exception::Ptr exception)
Set the Exception this module throwed.
Definition mainmodule.cpp:66
The Manager class is the main entry point to work with Kross.
Definition manager.h:55
Module::Ptr loadModule(const TQString &modulename)
Load an external module and return it.
Definition manager.cpp:200
const TQString getInterpreternameForFile(const TQString &file)
Definition manager.cpp:142
bool hasInterpreterInfo(const TQString &interpretername) const
Definition manager.cpp:132
InterpreterInfo * getInterpreterInfo(const TQString &interpretername)
Definition manager.cpp:137
TQMap< TQString, InterpreterInfo * > getInterpreterInfos()
Definition manager.cpp:127
TDESharedPtr< ScriptContainer > getScriptContainer(const TQString &scriptname)
Return the existing ScriptContainer with scriptname or create a new ScriptContainer instance and asso...
Definition manager.cpp:154
Interpreter * getInterpreter(const TQString &interpretername)
Return the Interpreter instance defined by the interpretername.
Definition manager.cpp:167
bool addModule(Module::Ptr module)
Add the an external module to the global shared list of loaded modules.
Definition manager.cpp:192
The common Object class all other object-classes are inheritated from.
Definition object.h:50
The ScriptContainer class is something like a single standalone scriptfile.
Definition scriptcontainer.h:51
TDESharedPtr< ScriptContainer > Ptr
Shared pointer to implement reference-counting.
Definition scriptcontainer.h:75
static TDESharedPtr< Manager > m_manager
The Manager-singleton instance is NULL by default till the Manager::scriptManager() method got called...
Definition manager.cpp:63
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:33
