stores information about a signal target More...
#include <PythonQtSignalReceiver.h>
Public Member Functions | |
PythonQtSignalTarget () | |
PythonQtSignalTarget (int signalId, const PythonQtMethodInfo *methodInfo, int slotId, PyObject *callable) | |
~PythonQtSignalTarget () | |
int | signalId () const |
get the id of the original signal | |
int | slotId () const |
get the id that was assigned to this simulated slot | |
const PythonQtMethodInfo * | methodInfo () const |
get the signals parameter info | |
void | call (void **arguments) const |
call the python callable with the given arguments (as defined in methodInfo) | |
bool | isSame (int signalId, PyObject *callable) const |
check if it is the same signal target | |
Static Public Member Functions | |
static PyObject * | call (PyObject *callable, const PythonQtMethodInfo *methodInfo, void **arguments, bool skipFirstArgumentOfMethodInfo=false) |
call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL) |
stores information about a signal target
copy construction and assignment works fine with the C++ standard behaviour and are thus not implemented
Definition at line 55 of file PythonQtSignalReceiver.h.
PythonQtSignalTarget::PythonQtSignalTarget | ( | ) | [inline] |
Definition at line 57 of file PythonQtSignalReceiver.h.
{ _signalId = -1; _methodInfo = NULL; _slotId = -1; }
PythonQtSignalTarget::PythonQtSignalTarget | ( | int | signalId, | |
const PythonQtMethodInfo * | methodInfo, | |||
int | slotId, | |||
PyObject * | callable | |||
) | [inline] |
Definition at line 63 of file PythonQtSignalReceiver.h.
{ _signalId = signalId; _slotId = slotId; _methodInfo = methodInfo; _callable = callable; };
PythonQtSignalTarget::~PythonQtSignalTarget | ( | ) | [inline] |
Definition at line 71 of file PythonQtSignalReceiver.h.
{ };
void PythonQtSignalTarget::call | ( | void ** | arguments | ) | const |
call the python callable with the given arguments (as defined in methodInfo)
static PyObject* PythonQtSignalTarget::call | ( | PyObject * | callable, | |
const PythonQtMethodInfo * | methodInfo, | |||
void ** | arguments, | |||
bool | skipFirstArgumentOfMethodInfo = false | |||
) | [static] |
call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL)
bool PythonQtSignalTarget::isSame | ( | int | signalId, | |
PyObject * | callable | |||
) | const [inline] |
check if it is the same signal target
Definition at line 87 of file PythonQtSignalReceiver.h.
{ return callable==_callable && signalId==_signalId; }
const PythonQtMethodInfo* PythonQtSignalTarget::methodInfo | ( | ) | const [inline] |
get the signals parameter info
Definition at line 81 of file PythonQtSignalReceiver.h.
{ return _methodInfo; }
int PythonQtSignalTarget::signalId | ( | ) | const [inline] |
get the id of the original signal
Definition at line 75 of file PythonQtSignalReceiver.h.
{ return _signalId; }
int PythonQtSignalTarget::slotId | ( | ) | const [inline] |
get the id that was assigned to this simulated slot
Definition at line 78 of file PythonQtSignalReceiver.h.
{ return _slotId; }