Kross
action.h
Go to the documentation of this file.
113 Action(QObject* parent, const QString& name, const QDir& packagepath = QDir()); //BIC may be removed in favour of the next c'tor
149 void fromDomElement(const QDomElement& element, const QStringList& searchPath/* = QStringList()*/);
The Action class is an abstract container to deal with scripts like a single standalone script file.
Definition action.h:99
bool setOption(const QString &name, const QVariant &value)
Set the Interpreter::Option value.
Definition action.cpp:409
void setDescription(const QString &description)
Set the optional description for this Action.
Definition action.cpp:286
QString name() const
void fromDomElement(const QDomElement &element)
Method to read settings from the QDomElement element that contains details about e....
Definition action.cpp:153
void started(Kross::Action *)
This signal is emitted before the script got executed.
QVariant callFunction(const QString &name, const QVariantList &args=QVariantList())
Call a function in the script.
Definition action.cpp:430
void setInterpreter(const QString &interpretername)
Set the name of the interpreter (javascript, python or ruby).
Definition action.cpp:338
void setCode(const QByteArray &code)
Set the scriptcode code this Action should execute.
Definition action.cpp:323
void finished(Kross::Action *)
This signal is emitted after the script got executed.
void addQObject(QObject *obj, const QString &name=QString())
Add a QObject instance to the action.
Definition action.cpp:386
void setEnabled(bool enabled)
Set the enable state of this Action to enabled .
Definition action.cpp:311
Action(QObject *parent, const QString &name, const QDir &packagepath=QDir())
Constructor.
Definition action.cpp:115
bool isEnabled() const
Return true if this Action is enabled else false is returned.
Definition action.cpp:306
void finalized(Kross::Action *)
This signal is emitted once a script finalized.
void dataChanged(Action *)
This signal is emitted when the data of the Action is changed.
bool setFile(const QString &scriptfile)
Set the script file that should be executed.
Definition action.cpp:356
QVariant option(const QString &name, const QVariant &defaultvalue=QVariant())
Definition action.cpp:401
void setIconName(const QString &iconname)
Set the name of the icon to iconname .
Definition action.cpp:298
void finalize()
Finalize the Script instance and frees any cached or still running executions.
Definition action.cpp:496
void updated()
This signal is emitted if the content of the Action was changed.
Base class for interpreter dependent functionality each script provides.
Definition core/script.h:44
Definition action.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.