Kross
manager.cpp
Go to the documentation of this file.
111 krosswarning( QString("Failed to load unknown type of '%1' library: %2").arg(libname).arg(err) );
259 for(QHash<QString, InterpreterInfo*>::Iterator it = d->interpreterinfos.begin(); it != d->interpreterinfos.end(); ++it) {
326 lib = loader->library( QString("lib%1").arg(libraryname), QLibrary::ExportExternalSymbolsHint );
328 krosswarning( QString("Failed to load module '%1': %2").arg(modulename).arg(loader->lastErrorMessage()) );
353 //krossdebug( QString("Manager::module Module successfully loaded: modulename=%1 module.objectName=%2 module.className=%3").arg(modulename).arg(module->objectName()).arg(module->metaObject()->className()) );
400 void Manager::registerMetaTypeHandler(const QByteArray& typeName, MetaTypeHandler::FunctionPtr* handler)
405 void Manager::registerMetaTypeHandler(const QByteArray& typeName, MetaTypeHandler::FunctionPtr2* handler)
QString i18n(const char *text)
KLibrary * library(const QString &libname, QLibrary::LoadHints loadHint=0)
bool strictTypesEnabled() const
Returns true if strict type handling is enabled.
Definition: manager.cpp:415
void addObject(QObject *object, const QString &name=QString(), Options options=NoOption)
Add a QObject to the list of children.
Definition: childreninterface.h:80
Each interpreter is able to define options we could use to manipulate the interpreter behaviour...
Definition: core/interpreter.h:51
QObject * module(const QString &modulename)
Load and return an external module.
Definition: manager.cpp:307
QString lastErrorMessage() const
QVariant( FunctionPtr2)(MetaTypeHandler *handler, void *)
Definition: metatype.h:142
InterpreterInfo * interpreterInfo(const QString &interpretername) const
Definition: manager.cpp:250
void addQObject(QObject *obj, const QString &name=QString())
Definition: manager.cpp:380
void setStrictTypesEnabled(bool enabled)
Enable more strict type handling.
Definition: manager.cpp:420
The InterpreterInfo class provides abstract information about a Interpreter before the interpreter-ba...
Definition: core/interpreter.h:43
QHash< QString, QObject * > objects() const
Definition: childreninterface.h:104
Interface for managing Object collections.
Definition: childreninterface.h:38
const QString interpreternameForFile(const QString &file)
Return the name of the Interpreter that feels responsible for the defined file .
Definition: manager.cpp:255
void registerMetaTypeHandler(const QByteArray &typeName, MetaTypeHandler::FunctionPtr *handler)
Register a handler for custom types.
Definition: manager.cpp:400
ActionCollection * actionCollection() const
Definition: manager.cpp:285
void * loadLibrary(const char *libname, const char *functionname)
Definition: manager.cpp:78
Interpreter * interpreter(const QString &interpretername) const
Return the Interpreter instance defined by the interpretername.
Definition: manager.cpp:271
QStringList resourceDirs(const char *type) const
KGuiItem ok()
QObject * object(const QString &name) const
Definition: childreninterface.h:97
static KLibLoader * self()
void_function_ptr resolveFunction(const char *name)
Base class for metatype-handlers as used returned by the Kross::Manager::metaTypeHandler() method...
Definition: metatype.h:138
MetaTypeHandler * metaTypeHandler(const QByteArray &typeName) const
Definition: manager.cpp:395
bool hasInterpreterInfo(const QString &interpretername) const
Definition: manager.cpp:245
QHash< QString, InterpreterInfo * > interpreterInfos() const
Definition: manager.cpp:240
The Action class is an abstract container to deal with scripts like a single standalone script file...
Definition: action.h:94
bool unload()
The ActionCollection class manages collections of Action instances.
Definition: actioncollection.h:45
bool hasHandlerAssigned(const QByteArray &typeName) const
Definition: manager.cpp:425
void deleteModules()
External modules are dynamically loadable and are normally deleted when the kross library is unloaded...
Definition: manager.cpp:364
The Manager class is a singleton that provides the main entry point to deal with the Kross Scripting ...
Definition: manager.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.