![]() |
This component will be a QObject proxy in order to implement script behaviours */. More...
#include <arcsscriptcomponent.h>
Public Member Functions | |
ARCSScriptQObjectProxy (QObject *parent=0) | |
virtual int | qt_metacall (QMetaObject::Call, int id, void **arguments) |
Method performing the actual callback task. More... | |
virtual QStringList | getSignalList () |
virtual QStringList | getSlotList () |
virtual int | prepareSignalConnect (QString sigName, QString sltName, QString objectName, QString actualSlot, bool simulate=false) |
Prepares a connection with a slot which does not belong to this object. More... | |
virtual int | prepareSlotConnect (QString sigName, QString sltName, QString objectName, QString actualSignal, bool simulate=false) |
Prepares a connection with a slot which is belonging to this object. More... | |
virtual int | cleanSlotConnect (QString sigName, QString sltName, QString objectName, QString actualSignal) |
virtual int | cleanSignalConnect (QString sigName, QString sltName, QString objectName, QString actualSlot) |
bool | setScript (QString s) |
Static Public Member Functions | |
static QScriptValue | callSignal (QScriptContext *ctx, QScriptEngine *engine) |
This component will be a QObject proxy in order to implement script behaviours */.
This class is mainly used by ARCSScriptComponent
Definition at line 44 of file arcsscriptcomponent.h.
|
virtual |
If a lot of things were required to prepare a signal connection, then the disconnection should also be implemented !
Implements ARCSQDynamicObject.
Definition at line 83 of file arcsscriptcomponent.cpp.
|
virtual |
If a lot of things were required to prepare a slot connection, then the disconnection should also be implemented !
Implements ARCSQDynamicObject.
Definition at line 108 of file arcsscriptcomponent.cpp.
|
virtual |
Returns the list of signals implemented inside this component.
Implements ARCSQDynamicObject.
Definition at line 176 of file arcsscriptcomponent.cpp.
|
virtual |
Returns the list of slots implemented inside this component.
Implements ARCSQDynamicObject.
Definition at line 181 of file arcsscriptcomponent.cpp.
|
virtual |
Prepares a connection with a slot which does not belong to this object.
This method has two purposes. First it should check wether the arguments of the given signals and slots are compatible. Second, it should set up what is needed in order to perform a clean connection and return the signal id.
sigName | name and signature of the signal which belong to this object |
sltName | name and signature of the slot which is triggered by the signal |
objectName | name of the object which owns the slot. |
simulate | if true |
the id of the signal, -1 if it failed.
Implements ARCSQDynamicObject.
Definition at line 122 of file arcsscriptcomponent.cpp.
|
virtual |
Prepares a connection with a slot which is belonging to this object.
This method has two purposes. First it should check wether the arguments of the given signals and slots are compatible. Second, it should set up what is needed in order to perform a clean connection and return the slot id.
sigName | name and signature of the signal which should trigger the slot. |
sltName | name and signature of the slot which is triggered |
objectName | name of the object emitting the signal |
simulate | if true |
the id of the slot, -1 if it failed.
Implements ARCSQDynamicObject.
Definition at line 153 of file arcsscriptcomponent.cpp.
|
virtual |
Method performing the actual callback task.
This method is at the core of a QObject and is usually automatically created by moc Here the user has to reimplement it.
call | should usually take the value QMetaObject::InvokeMetaMethod |
id | is the id of a slot or a signal given by indexOfSlot() or indexOfSignal() |
arguments | array of values (the first pointer is usually for the return value. |
Implements ARCSQDynamicObject.
Definition at line 49 of file arcsscriptcomponent.cpp.