itom 2.0.0
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...

List of all members.

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

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)


Member Data Documentation

QMetaMethod::Access ito::MethodDescription::m_access [private]

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

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

index of signal, slot or method

QByteArray ito::MethodDescription::m_name [private]

name of method

number of arguments this method, signal or slot has

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

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)


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends