itom
Loading...
Searching...
No Matches
ito::MethodDescription Class Reference

Small wrapper class with all necessary information for any method, signal or slot of class which should be inherited from QObject*. More...

Public Member Functions

 MethodDescription (QByteArray &name, QByteArray &signature, QMetaMethod::MethodType type, QMetaMethod::Access access, int methodIndex, int retType, int nrOfArgs, int *argTypes)
 
 MethodDescription (QMetaMethod &method)
 
 MethodDescription (const MethodDescription &copy)
 
MethodDescriptionoperator= (const MethodDescription &other)
 
bool isValid () const
 
QMetaMethod::MethodType type () const
 
QMetaMethod::Access access () const
 
int methodIndex () const
 
QByteArray name () const
 
int retType () const
 
int nrOfArgs () const
 
int * argTypes () const
 
QByteArray signature () const
 
bool checkMethod (QByteArray &name, int nrOfArgs) const
 

Private Attributes

QByteArray m_name
 
int m_methodIndex
 
QByteArray m_signature
 
QMetaMethod::MethodType m_type
 
QMetaMethod::Access m_access
 
int m_retType
 
int m_nrOfArgs
 
int * m_argTypes
 

Detailed Description

Small wrapper class with all necessary information for any method, signal or slot of class which should be inherited from QObject*.

Member Function Documentation

◆ access()

QMetaMethod::Access ito::MethodDescription::access ( ) const
inline

returns access-value (m_access)

◆ argTypes()

int * ito::MethodDescription::argTypes ( ) const
inline

returns allocated integer array with type-id of every argument

◆ isValid()

bool ito::MethodDescription::isValid ( ) const
inline

returns true if member m_methodIndex is 0 or bigger, hence, method is valid

◆ methodIndex()

int ito::MethodDescription::methodIndex ( ) const
inline

returns method index

◆ name()

QByteArray ito::MethodDescription::name ( ) const
inline

returns method's name

◆ nrOfArgs()

int ito::MethodDescription::nrOfArgs ( ) const
inline

returns number of arguments

◆ retType()

int ito::MethodDescription::retType ( ) const
inline

returns return value type

◆ signature()

QByteArray ito::MethodDescription::signature ( ) const
inline

returns full normalized signature of this method

◆ type()

QMetaMethod::MethodType ito::MethodDescription::type ( ) const
inline

returns method-type (m_type)

Member Data Documentation

◆ m_access

QMetaMethod::Access ito::MethodDescription::m_access
private

0:private, 1:protected, 2:public (see QMetaMethod::Access)

◆ m_argTypes

int* ito::MethodDescription::m_argTypes
private

integer-array with size m_nrOfArgs containing the type-id of every argument (see QMetaType)

◆ m_methodIndex

int ito::MethodDescription::m_methodIndex
private

index of signal, slot or method

◆ m_name

QByteArray ito::MethodDescription::m_name
private

name of method

◆ m_nrOfArgs

int ito::MethodDescription::m_nrOfArgs
private

number of arguments this method, signal or slot has

◆ m_retType

int ito::MethodDescription::m_retType
private

type-id (see QMetaType) of return value (0 if void)

◆ m_signature

QByteArray ito::MethodDescription::m_signature
private

complete normalized signature of this method, slot or signal

◆ m_type

QMetaMethod::MethodType ito::MethodDescription::m_type
private

0:method, 1:signal, 2:slot, 3:constructor (see QMetaMethod::MethodType)


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