itom 2.2.0
|
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 ©) | |
MethodDescription & | operator= (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 |
Small wrapper class with all necessary information for any method, signal or slot of class which should be inherited from QObject*.
QMetaMethod::Access ito::MethodDescription::access | ( | ) | const [inline] |
returns access-value (m_access)
int* ito::MethodDescription::argTypes | ( | ) | const [inline] |
returns allocated integer array with type-id of every argument
bool ito::MethodDescription::isValid | ( | ) | const [inline] |
returns true if member m_methodIndex is 0 or bigger, hence, method is valid
int ito::MethodDescription::methodIndex | ( | ) | const [inline] |
returns method index
QByteArray ito::MethodDescription::name | ( | ) | const [inline] |
returns method's name
int ito::MethodDescription::nrOfArgs | ( | ) | const [inline] |
returns number of arguments
int ito::MethodDescription::retType | ( | ) | const [inline] |
returns return value type
QByteArray ito::MethodDescription::signature | ( | ) | const [inline] |
returns full normalized signature of this method
QMetaMethod::MethodType ito::MethodDescription::type | ( | ) | const [inline] |
returns method-type (m_type)
QMetaMethod::Access ito::MethodDescription::m_access [private] |
0:private, 1:protected, 2:public (see QMetaMethod::Access)
int* ito::MethodDescription::m_argTypes [private] |
integer-array with size m_nrOfArgs containing the type-id of every argument (see QMetaType)
int ito::MethodDescription::m_methodIndex [private] |
index of signal, slot or method
QByteArray ito::MethodDescription::m_name [private] |
name of method
int ito::MethodDescription::m_nrOfArgs [private] |
number of arguments this method, signal or slot has
int ito::MethodDescription::m_retType [private] |
type-id (see QMetaType) of return value (0 if void)
QByteArray ito::MethodDescription::m_signature [private] |
complete normalized signature of this method, slot or signal
QMetaMethod::MethodType ito::MethodDescription::m_type [private] |
0:method, 1:signal, 2:slot, 3:constructor (see QMetaMethod::MethodType)