Kross
Kross::InterpreterInfo Class Reference
#include <interpreter.h>
Inheritance diagram for Kross::InterpreterInfo:

Detailed Description
The InterpreterInfo class provides abstract information about a Interpreter before the interpreter-backend itself is loaded.Definition at line 43 of file interpreter.h.
Public Member Functions | |
| InterpreterInfo (const QString &interpretername, const QString &library, const QString &wildcard, QStringList mimetypes, Option::Map options) | |
| ~InterpreterInfo () | |
| const QString | interpreterName () const |
| const QString | wildcard () const |
| const QStringList | mimeTypes () const |
| bool | hasOption (const QString &key) const |
| Option * | option (const QString &name) const |
| const QVariant | optionValue (const QString &name, const QVariant &defaultvalue=QVariant()) const |
| Option::Map | options () |
| Interpreter * | interpreter () |
Classes | |
| class | Option |
| Each interpreter is able to define options we could use to manipulate the interpreter behaviour. More... | |
Constructor & Destructor Documentation
| InterpreterInfo::InterpreterInfo | ( | const QString & | interpretername, | |
| const QString & | library, | |||
| const QString & | wildcard, | |||
| QStringList | mimetypes, | |||
| Option::Map | options | |||
| ) |
| InterpreterInfo::~InterpreterInfo | ( | ) |
Member Function Documentation
| const QString InterpreterInfo::interpreterName | ( | ) | const |
- Returns:
- the name of the interpreter.
For example "python" or "kjs".
Definition at line 79 of file interpreter.cpp.
| const QString InterpreterInfo::wildcard | ( | ) | const |
- Returns:
- the file-wildcard used to determinate by this interpreter used scriptingfiles.
Those filter will be used e.g. with KGlobal::dirs()->findAllResources() as filtermask. For example python just defines it as "*py".
Definition at line 84 of file interpreter.cpp.
| const QStringList InterpreterInfo::mimeTypes | ( | ) | const |
List of mimetypes this interpreter supports.
- Returns:
- QStringList with mimetypes like "application/javascript".
Definition at line 89 of file interpreter.cpp.
- Returns:
- true if an Option with that
keyexists else false.
Definition at line 94 of file interpreter.cpp.
| InterpreterInfo::Option * InterpreterInfo::option | ( | const QString & | name | ) | const |
| const QVariant InterpreterInfo::optionValue | ( | const QString & | name, | |
| const QVariant & | defaultvalue = QVariant() | |||
| ) | const |
- Returns:
- the value of the option defined with
name.
If there doesn't exists an option with such a name, the defaultvalue is returned.
Definition at line 104 of file interpreter.cpp.
| InterpreterInfo::Option::Map InterpreterInfo::options | ( | ) |
| Interpreter * InterpreterInfo::interpreter | ( | ) |
- Returns:
- the Interpreter instance this InterpreterInfo is the describer for.
Definition at line 115 of file interpreter.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference