PythonQt
PythonQtSignalTarget Class Reference

stores information about a signal target More...

#include <PythonQtSignalReceiver.h>

Public Member Functions

 PythonQtSignalTarget ()
 PythonQtSignalTarget (const PythonQtMethodInfo *methodInfo, PyObject *callable)
 ~PythonQtSignalTarget ()
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 (PyObject *callable) const
 check if this targets the same callable

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)

Detailed Description

stores information about a signal target

copy construction and assignment works fine with the C++ standard behavior and are thus not implemented

Definition at line 55 of file PythonQtSignalReceiver.h.

Constructor & Destructor Documentation

◆ PythonQtSignalTarget() [1/2]

PythonQtSignalTarget::PythonQtSignalTarget ( )
inline

Definition at line 58 of file PythonQtSignalReceiver.h.

58{ _methodInfo = nullptr; }

◆ PythonQtSignalTarget() [2/2]

PythonQtSignalTarget::PythonQtSignalTarget ( const PythonQtMethodInfo * methodInfo,
PyObject * callable )
inline

Definition at line 60 of file PythonQtSignalReceiver.h.

61 {
62 _methodInfo = methodInfo;
63 _callable = callable;
64 };
const PythonQtMethodInfo * methodInfo() const
get the signals parameter info

References methodInfo().

◆ ~PythonQtSignalTarget()

PythonQtSignalTarget::~PythonQtSignalTarget ( )
inline

Definition at line 66 of file PythonQtSignalReceiver.h.

66{};

Member Function Documentation

◆ call() [1/2]

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)

References methodInfo().

◆ call() [2/2]

void PythonQtSignalTarget::call ( void ** arguments) const

call the python callable with the given arguments (as defined in methodInfo)

◆ isSame()

bool PythonQtSignalTarget::isSame ( PyObject * callable) const

check if this targets the same callable

◆ methodInfo()

const PythonQtMethodInfo * PythonQtSignalTarget::methodInfo ( ) const
inline

get the signals parameter info

Definition at line 69 of file PythonQtSignalReceiver.h.

69{ return _methodInfo; }

Referenced by call(), and PythonQtSignalTarget().


The documentation for this class was generated from the following file: