• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kross

Kross::InterpreterInfo

Kross::InterpreterInfo Class Reference

#include <interpreter.h>

Inheritance diagram for Kross::InterpreterInfo:

Inheritance graph
[legend]

List of all members.


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 
)

Constructor.

Definition at line 60 of file interpreter.cpp.

InterpreterInfo::~InterpreterInfo (  ) 

Destructor.

Definition at line 72 of file interpreter.cpp.


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.

bool InterpreterInfo::hasOption ( const QString &  key  )  const

Returns:
true if an Option with that key exists else false.

Definition at line 94 of file interpreter.cpp.

InterpreterInfo::Option * InterpreterInfo::option ( const QString &  name  )  const

Returns:
the option defined with name .

Definition at line 99 of file interpreter.cpp.

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 (  ) 

Returns:
a map of options.

Definition at line 110 of file interpreter.cpp.

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:
  • interpreter.h
  • interpreter.cpp

Kross

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal