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 (int signalId, const PythonQtMethodInfo *methodInfo, int slotId, PyObject *callable)
 
 ~PythonQtSignalTarget ()
 
int signalId () const
 get the id of the original signal More...
 
int slotId () const
 get the id that was assigned to this simulated slot More...
 
const PythonQtMethodInfomethodInfo () const
 get the signals parameter info More...
 
void call (void **arguments) const
 call the python callable with the given arguments (as defined in methodInfo) More...
 
bool isSame (int signalId, PyObject *callable) const
 check if it is the same signal target More...
 

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) More...
 

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 56 of file PythonQtSignalReceiver.h.

Constructor & Destructor Documentation

◆ PythonQtSignalTarget() [1/2]

PythonQtSignalTarget::PythonQtSignalTarget ( )
inline

Definition at line 58 of file PythonQtSignalReceiver.h.

58  {
59  _signalId = -1;
60  _methodInfo = nullptr;
61  _slotId = -1;
62  }

◆ PythonQtSignalTarget() [2/2]

PythonQtSignalTarget::PythonQtSignalTarget ( int  signalId,
const PythonQtMethodInfo methodInfo,
int  slotId,
PyObject callable 
)
inline

Definition at line 64 of file PythonQtSignalReceiver.h.

65  {
66  _signalId = signalId;
67  _slotId = slotId;
68  _methodInfo = methodInfo;
69  _callable = callable;
70  };
int slotId() const
get the id that was assigned to this simulated slot
int signalId() const
get the id of the original signal
const PythonQtMethodInfo * methodInfo() const
get the signals parameter info

◆ ~PythonQtSignalTarget()

PythonQtSignalTarget::~PythonQtSignalTarget ( )
inline

Definition at line 72 of file PythonQtSignalReceiver.h.

72  {
73  };

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 ( int  signalId,
PyObject callable 
) const

check if it is the same signal target

◆ methodInfo()

const PythonQtMethodInfo* PythonQtSignalTarget::methodInfo ( ) const
inline

get the signals parameter info

Definition at line 82 of file PythonQtSignalReceiver.h.

82 { return _methodInfo; }

◆ signalId()

int PythonQtSignalTarget::signalId ( ) const
inline

get the id of the original signal

Definition at line 76 of file PythonQtSignalReceiver.h.

76 { return _signalId; }

◆ slotId()

int PythonQtSignalTarget::slotId ( ) const
inline

get the id that was assigned to this simulated slot

Definition at line 79 of file PythonQtSignalReceiver.h.

79 { return _slotId; }

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