#include <interpreter.h>
Classes | |
| class | Option |
Public Member Functions | |
| InterpreterInfo (const TQString &interpretername, const TQString &library, const TQString &wildcard, TQStringList mimetypes, Option::Map options) | |
| ~InterpreterInfo () | |
| const TQString | getInterpretername () |
| const TQString | getWildcard () |
| const TQStringList | getMimeTypes () |
| bool | hasOption (const TQString &key) |
| Option * | getOption (const TQString name) |
| const TQVariant | getOptionValue (const TQString name, TQVariant defaultvalue=TQVariant()) |
| Option::Map | getOptions () |
| Interpreter * | getInterpreter () |
Detailed Description
While the Interpreter is the implemented interpreter this class is used to provide some abstract informations about each interpreter we are able to use within the Manager singelton.
Definition at line 41 of file interpreter.h.
Constructor & Destructor Documentation
◆ InterpreterInfo()
| InterpreterInfo::InterpreterInfo | ( | const TQString & | interpretername, |
| const TQString & | library, | ||
| const TQString & | wildcard, | ||
| TQStringList | mimetypes, | ||
| Option::Map | options | ||
| ) |
Constructor.
Definition at line 38 of file interpreter.cpp.
◆ ~InterpreterInfo()
| InterpreterInfo::~InterpreterInfo | ( | ) |
Destructor.
Definition at line 48 of file interpreter.cpp.
Member Function Documentation
◆ getInterpreter()
| Interpreter * InterpreterInfo::getInterpreter | ( | ) |
- Returns
- the Interpreter instance this InterpreterInfo is the describer for.
Definition at line 93 of file interpreter.cpp.
◆ getInterpretername()
| const TQString InterpreterInfo::getInterpretername | ( | ) |
- Returns
- the name of the interpreter. For example "python" or "kjs".
Definition at line 57 of file interpreter.cpp.
◆ getMimeTypes()
| const TQStringList InterpreterInfo::getMimeTypes | ( | ) |
List of mimetypes this interpreter supports.
- Returns
- TQStringList with mimetypes like "application/x-javascript".
Definition at line 67 of file interpreter.cpp.
◆ getOption()
| InterpreterInfo::Option * InterpreterInfo::getOption | ( | const TQString | name | ) |
- Returns
- the option defined with
name.
Definition at line 77 of file interpreter.cpp.
◆ getOptions()
| InterpreterInfo::Option::Map InterpreterInfo::getOptions | ( | ) |
- Returns
- a map of options.
Definition at line 88 of file interpreter.cpp.
◆ getOptionValue()
| const TQVariant InterpreterInfo::getOptionValue | ( | const TQString | name, |
| TQVariant | defaultvalue = TQVariant() |
||
| ) |
- Returns
- the value of the option defined with
name. If there doesn't exists an option with such a name, thedefaultvalueis returned.
Definition at line 82 of file interpreter.cpp.
◆ getWildcard()
| const TQString InterpreterInfo::getWildcard | ( | ) |
- Returns
- the file-wildcard used to determinate by this interpreter used scriptingfiles. Those filter will be used e.g. with TDEGlobal::dirs()->findAllResources() as filtermask. For example python just defines it as "*py".
Definition at line 62 of file interpreter.cpp.
◆ hasOption()
| bool InterpreterInfo::hasOption | ( | const TQString & | key | ) |
- Returns
- true if an Option with that
keyexists else false.
Definition at line 72 of file interpreter.cpp.
The documentation for this class was generated from the following files:
