QMetaMethodBuilder Class

The QMetaMethodBuilder class enables modifications to a method definition on a meta object builder. More...

Header: #include <QMetaMethodBuilder>

Public Functions

QMetaMethod::Access access() const
int attributes() const
int index() const
int isConst() const
QMetaMethod::MethodType methodType() const
QList<QByteArray> parameterNames() const
QList<QByteArray> parameterTypes() const
QByteArray returnType() const
int revision() const
void setAccess(QMetaMethod::Access value)
void setAttributes(int value)
void setParameterNames(const QList<QByteArray> &value)
void setReturnType(const QByteArray &value)
void setRevision(int revision)
void setTag(const QByteArray &value)
QByteArray signature() const
QByteArray tag() const

Detailed Description

\inmoduleQtCore \internal

Member Function Documentation

QMetaMethod::Access QMetaMethodBuilder::access() const

Returns the access specification of this method (private, protected, or public). The default value is QMetaMethod::Public for methods, slots, signals and constructors.

See also setAccess().

int QMetaMethodBuilder::attributes() const

Returns the additional attributes for this method.

See also setAttributes().

int QMetaMethodBuilder::index() const

Returns the index of this method within its QMetaObjectBuilder.

int QMetaMethodBuilder::isConst() const

Returns true if the method is const qualified.

QMetaMethod::MethodType QMetaMethodBuilder::methodType() const

Returns the type of this method (signal, slot, method, or constructor).

QList<QByteArray> QMetaMethodBuilder::parameterNames() const

Returns the list of parameter names for this method.

See also setParameterNames().

QList<QByteArray> QMetaMethodBuilder::parameterTypes() const

Returns the list of parameter types for this method.

See also returnType() and parameterNames().

QByteArray QMetaMethodBuilder::returnType() const

Returns the return type for this method; empty if the method's return type is void.

See also setReturnType() and signature().

int QMetaMethodBuilder::revision() const

Returns the revision of this method.

See also setRevision().

void QMetaMethodBuilder::setAccess(QMetaMethod::Access value)

Sets the access specification of this method (private, protected, or public) to value. If the method is a signal, this function will be ignored.

See also access().

void QMetaMethodBuilder::setAttributes(int value)

Sets the additional attributes for this method to value.

See also attributes().

void QMetaMethodBuilder::setParameterNames(const QList<QByteArray> &value)

Sets the list of parameter names for this method to value.

See also parameterNames().

void QMetaMethodBuilder::setReturnType(const QByteArray &value)

Sets the return type for this method to value. If value is empty, then the method's return type is void. The value will be normalized before it is added to the method.

See also returnType(), parameterTypes(), and signature().

void QMetaMethodBuilder::setRevision(int revision)

Sets the revision of this method.

See also revision().

void QMetaMethodBuilder::setTag(const QByteArray &value)

Sets the tag associated with this method to value.

See also tag() and setTag().

QByteArray QMetaMethodBuilder::signature() const

Returns the signature of this method.

See also parameterNames() and returnType().

QByteArray QMetaMethodBuilder::tag() const

Returns the tag associated with this method.

See also setTag().