stores information about a slot, including a next pointer to overloaded slots More...
#include <PythonQtMethodInfo.h>
Public Types | |
enum | Type { MemberSlot, InstanceDecorator, ClassDecorator } |
Public Member Functions | |
PythonQtSlotInfo (const PythonQtSlotInfo &info) | |
PythonQtSlotInfo (PythonQtClassInfo *classInfo, const QMetaMethod &meta, int slotIndex, QObject *decorator=NULL, Type type=MemberSlot) | |
void | deleteOverloadsAndThis () |
const QMetaMethod * | metaMethod () const |
void | setUpcastingOffset (int upcastingOffset) |
int | upcastingOffset () const |
int | slotIndex () const |
get the index of the slot (needed for qt_metacall) | |
PythonQtSlotInfo * | nextInfo () const |
get next overloaded slot (which has the same name) | |
void | setNextInfo (PythonQtSlotInfo *next) |
set the next overloaded slot | |
bool | isInstanceDecorator () |
returns if the slot is a decorator slot | |
bool | isClassDecorator () |
returns if the slot is a constructor slot | |
QObject * | decorator () |
QString | fullSignature () |
get the full signature including return type | |
QByteArray | slotName () |
get the short slot name |
stores information about a slot, including a next pointer to overloaded slots
Definition at line 117 of file PythonQtMethodInfo.h.
Definition at line 120 of file PythonQtMethodInfo.h.
{ MemberSlot, InstanceDecorator, ClassDecorator };
PythonQtSlotInfo::PythonQtSlotInfo | ( | const PythonQtSlotInfo & | info | ) | [inline] |
Definition at line 124 of file PythonQtMethodInfo.h.
References PythonQtMethodInfo::_parameters.
:PythonQtMethodInfo() { _meta = info._meta; _parameters = info._parameters; _slotIndex = info._slotIndex; _next = NULL; _decorator = info._decorator; _type = info._type; _upcastingOffset = 0; }
PythonQtSlotInfo::PythonQtSlotInfo | ( | PythonQtClassInfo * | classInfo, | |
const QMetaMethod & | meta, | |||
int | slotIndex, | |||
QObject * | decorator = NULL , |
|||
Type | type = MemberSlot | |||
) | [inline] |
Definition at line 134 of file PythonQtMethodInfo.h.
References PythonQtMethodInfo::_parameters, PythonQtMethodInfo::getCachedMethodInfo(), and PythonQtMethodInfo::parameters().
:PythonQtMethodInfo() { const PythonQtMethodInfo* info = getCachedMethodInfo(meta, classInfo); _meta = meta; _parameters = info->parameters(); _slotIndex = slotIndex; _next = NULL; _decorator = decorator; _type = type; _upcastingOffset = 0; }
QObject* PythonQtSlotInfo::decorator | ( | ) | [inline] |
Definition at line 172 of file PythonQtMethodInfo.h.
{ return _decorator; }
void PythonQtSlotInfo::deleteOverloadsAndThis | ( | ) |
QString PythonQtSlotInfo::fullSignature | ( | ) |
get the full signature including return type
bool PythonQtSlotInfo::isClassDecorator | ( | ) | [inline] |
returns if the slot is a constructor slot
Definition at line 170 of file PythonQtMethodInfo.h.
{ return _decorator!=NULL && _type == ClassDecorator; }
bool PythonQtSlotInfo::isInstanceDecorator | ( | ) | [inline] |
returns if the slot is a decorator slot
Definition at line 167 of file PythonQtMethodInfo.h.
{ return _decorator!=NULL && _type == InstanceDecorator; }
const QMetaMethod* PythonQtSlotInfo::metaMethod | ( | ) | const [inline] |
Definition at line 151 of file PythonQtMethodInfo.h.
{ return &_meta; }
PythonQtSlotInfo* PythonQtSlotInfo::nextInfo | ( | ) | const [inline] |
get next overloaded slot (which has the same name)
Definition at line 161 of file PythonQtMethodInfo.h.
{ return _next; }
void PythonQtSlotInfo::setNextInfo | ( | PythonQtSlotInfo * | next | ) | [inline] |
void PythonQtSlotInfo::setUpcastingOffset | ( | int | upcastingOffset | ) | [inline] |
Definition at line 153 of file PythonQtMethodInfo.h.
{ _upcastingOffset = upcastingOffset; }
int PythonQtSlotInfo::slotIndex | ( | ) | const [inline] |
get the index of the slot (needed for qt_metacall)
Definition at line 158 of file PythonQtMethodInfo.h.
{ return _slotIndex; }
QByteArray PythonQtSlotInfo::slotName | ( | ) |
get the short slot name
int PythonQtSlotInfo::upcastingOffset | ( | ) | const [inline] |
Definition at line 155 of file PythonQtMethodInfo.h.
{ return _upcastingOffset; }