PythonQt
Public Member Functions | Static Public Member Functions | List of all members
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 PythonQtMethodInfomethodInfo () 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 PyObjectcall (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 };
PyObject * PythonQtConvertPairToPython(const void *inPair, int metaTypeId)
const PythonQtMethodInfo * methodInfo() const
get the signals parameter info

References PythonQtConvertPairToPython().

◆ ~PythonQtSignalTarget()

PythonQtSignalTarget::~PythonQtSignalTarget ( )
inline

Definition at line 66 of file PythonQtSignalReceiver.h.

66{};

Member Function Documentation

◆ call() [1/2]

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)

◆ 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; }

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