SourceForge.net Logo
PythonQt
Public Types | Public Member Functions
PythonQtSlotInfo Class Reference

stores information about a slot, including a next pointer to overloaded slots More...

#include <PythonQtMethodInfo.h>

Inheritance diagram for PythonQtSlotInfo:
PythonQtMethodInfo

List of all members.

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)
PythonQtSlotInfonextInfo () 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

Detailed Description

stores information about a slot, including a next pointer to overloaded slots

Definition at line 117 of file PythonQtMethodInfo.h.


Member Enumeration Documentation

Enumerator:
MemberSlot 
InstanceDecorator 
ClassDecorator 

Definition at line 120 of file PythonQtMethodInfo.h.


Constructor & Destructor Documentation

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, decorator(), PythonQtMethodInfo::getCachedMethodInfo(), PythonQtMethodInfo::parameters(), and slotIndex().

                                                                                                                                            :PythonQtMethodInfo()
  { 
    const PythonQtMethodInfo* info = getCachedMethodInfo(meta, classInfo);
    _meta = meta;
    _parameters = info->parameters();
    _slotIndex = slotIndex;
    _next = NULL;
    _decorator = decorator;
    _type = type;
    _upcastingOffset = 0;
  }

Member Function Documentation

QObject* PythonQtSlotInfo::decorator ( ) [inline]

Definition at line 172 of file PythonQtMethodInfo.h.

Referenced by PythonQtSlotInfo().

{ 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.

References ClassDecorator.

{ 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.

References InstanceDecorator.

{ 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]

set the next overloaded slot

Definition at line 164 of file PythonQtMethodInfo.h.

{ _next = next; }
void PythonQtSlotInfo::setUpcastingOffset ( int  upcastingOffset) [inline]

Definition at line 153 of file PythonQtMethodInfo.h.

References upcastingOffset().

{ _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.

Referenced by PythonQtSlotInfo().

{ return _slotIndex; }
QByteArray PythonQtSlotInfo::slotName ( )

get the short slot name

int PythonQtSlotInfo::upcastingOffset ( ) const [inline]

Definition at line 155 of file PythonQtMethodInfo.h.

Referenced by setUpcastingOffset().

{ return _upcastingOffset; }

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