cantor/src/lib
#include <backend.h>
Public Types | |
enum | Capability { Nothing = 0x0, LaTexOutput = 0x1, InteractiveMode = 0x2, SyntaxHighlighting = 0x4, Completion = 0x8, SyntaxHelp = 0x10, VariableManagement = 0x20 } |
Public Member Functions | |
virtual Capabilities | capabilities () const =0 |
QString | comment () const |
virtual KConfigSkeleton * | config () const |
virtual Session * | createSession ()=0 |
virtual QString | description () const |
Extension * | extension (const QString &name) const |
QStringList | extensions () const |
virtual KUrl | helpUrl () const |
QString | icon () const |
virtual QString | id () const =0 |
bool | isEnabled () const |
QString | name () const |
virtual bool | requirementsFullfilled () const |
void | setEnabled (bool enabled) |
virtual QWidget * | settingsWidget (QWidget *parent) const |
QString | url () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static QList< Backend * > | availableBackends () |
static Backend * | createBackend (const QString &name) |
static QStringList | listAvailableBackends () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions | |
Backend (QObject *parent=0, const QList< QVariant > args=QList< QVariant >()) | |
virtual | ~Backend () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
The Backend class provides access to information about the backend.
It provides access to what features are supported by the backend, and a factory method to create a new Session It needs to be subclassed by all Backends.
Member Enumeration Documentation
This enum is used to specify the Features, supported by a backend.
Enumerator | |
---|---|
Nothing |
the Backend doesn't support any of the optional features |
LaTexOutput |
it can output results as LaTeX code |
InteractiveMode |
it supports an interactive workflow. (It means a command can ask for additional input while running |
SyntaxHighlighting |
it offers a custom Syntax Highlighter |
Completion |
it offers completion of partially typed commands |
SyntaxHelp |
it offers help about a commands syntax, that will be shown in a tooltip |
VariableManagement |
it offers access to the variables (for variable management panel) |
Constructor & Destructor Documentation
|
explicitprotected |
Create a new Backend.
Normally the static createBackend factory method should be used.
- Parameters
-
parent the Parent object args optional arguments (not used)
Definition at line 42 of file backend.cpp.
|
protectedvirtual |
Member Function Documentation
Returns Pointers to all the installed backends.
- Returns
- Pointers to all the installed backends
Definition at line 109 of file backend.cpp.
|
pure virtual |
Returns list of the supported optional features.
- Returns
- a list of features, containing items of the Capabiltiy enum, ORed together
QString Backend::comment | ( | ) | const |
Returns a short comment about the backend.
- Returns
- comment about the backend
Definition at line 59 of file backend.cpp.
|
virtual |
Returns a KConfig object, containing all the settings, the backend might need.
- Returns
- a KConfigSkeleton object, for configuring this backend
Definition at line 161 of file backend.cpp.
Returns the backend with the given name, or null if it isn't found.
- Returns
- the backend with the given name, or null if it isn't found
Definition at line 143 of file backend.cpp.
|
pure virtual |
|
virtual |
Returns a longer description of the Backend, e.g.
purpose, strengths etc. It should help the user to decide between the different Backends
- Returns
- a description of the backend. It can contain html
Definition at line 64 of file backend.cpp.
Returns an Extension of this backend for the given name, or null if the Backend doesn't have an extension with this name.
- Returns
- Pointer to the Extension object with the given name
Definition at line 176 of file backend.cpp.
QStringList Backend::extensions | ( | ) | const |
Returns a list of the names of all the Extensions supported by this backend.
- Returns
- a list of the names of all the Extensions supported by this backend
- See also
- extension(const QString& name)
Definition at line 167 of file backend.cpp.
|
virtual |
Returns an Url pointing to the Help of the Backend The method should be overwritten by all Backends(who have an online help) You should make the returned Url translateble, e.g.
by doing something like: return i18nc("the url to the documentation of KAlgebra, please check if there is a translated version and use the correct url", "http://docs.kde.org/stable/en/kdeedu/kalgebra/");
- Returns
- Url of the help
Definition at line 79 of file backend.cpp.
QString Backend::icon | ( | ) | const |
Returns the icon to use with this backend.
- Returns
- name of the icon
Definition at line 69 of file backend.cpp.
|
pure virtual |
Returns a unique string to identify this backend.
In contrast to name() this string isn't translated
- Returns
- string to identify backend
bool Backend::isEnabled | ( | ) | const |
Returns if the backend should be enabled (shown in the Backend dialog)
- Returns
true
, if the enabled flag is set to true, and the requirements are fullfilled-
false
, if the backend was purposedly disabled, or requirements are missing
- See also
- requirementsFullfilled()
Definition at line 84 of file backend.cpp.
|
static |
Returns a list of the names of all the installed and enabled backends.
- Returns
- a list of the names of all the installed and enabled backends
- See also
- isEnabled()
Definition at line 96 of file backend.cpp.
QString Backend::name | ( | ) | const |
Returns the name of the backend.
- Returns
- the backends name
Definition at line 54 of file backend.cpp.
|
virtual |
Returns wether all of this backends requirements are fulfiled, or if some are missing.
- Returns
true
if all the requirements needed to use this Backend are fulfilled-
false
some requirements are missing. e.g. the maxima executable can not be found
- See also
- Capablility
Definition at line 181 of file backend.cpp.
void Backend::setEnabled | ( | bool | enabled | ) |
Enables/disables this backend.
- Parameters
-
enabled true to enable backend false to disable
Definition at line 89 of file backend.cpp.
Returns a Widget for configuring this backend.
- Returns
- Widget for usage in the Settings dialog
Definition at line 155 of file backend.cpp.
QString Backend::url | ( | ) | const |
Returns the Url of the Homepage for the Backend.
- Returns
- the url
Definition at line 74 of file backend.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.