Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMetaMethodBuilder Class Reference

\inmodule QtCore More...

#include <qmetaobjectbuilder_p.h>

Collaboration diagram for QMetaMethodBuilder:

Public Member Functions

 QMetaMethodBuilder ()=default
int index () const
 Returns the index of this method within its QMetaObjectBuilder.
QMetaMethod::MethodType methodType () const
 Returns the type of this method (signal, slot, method, or constructor).
QByteArray signature () const
 Returns the signature of this method.
QByteArray returnType () const
 Returns the return type for this method; empty if the method's return type is {void}.
void setReturnType (const QByteArray &value)
 Sets the return type for this method to value.
QList< QByteArrayView > parameterTypes () const
 Returns the list of parameter types for this method.
QList< QByteArray > parameterNames () const
 Returns the list of parameter names for this method.
void setParameterNames (const QList< QByteArray > &value)
 Sets the list of parameter names for this method to value.
QByteArray tag () const
 Returns the tag associated with this method.
void setTag (const QByteArray &value)
 Sets the tag associated with this method to value.
QMetaMethod::Access access () const
 Returns the access specification of this method (private, protected, or public).
void setAccess (QMetaMethod::Access value)
 Sets the access specification of this method (private, protected, or public) to value.
int attributes () const
 Returns the additional attributes for this method.
void setAttributes (int value)
 Sets the additional attributes for this method to value.
bool isConst () const
 Returns true if the method is const qualified.
void setConst (bool methodIsConst=true)
int revision () const
 Returns the revision of this method.
void setRevision (int revision)
 Sets the revision of this method.

Friends

class QMetaObjectBuilder
class QMetaPropertyBuilder

Detailed Description

\inmodule QtCore

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

Definition at line 148 of file qmetaobjectbuilder_p.h.

Constructor & Destructor Documentation

◆ QMetaMethodBuilder()

QMetaMethodBuilder::QMetaMethodBuilder ( )
default

Member Function Documentation

◆ access()

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

Definition at line 1793 of file qmetaobjectbuilder.cpp.

◆ attributes()

int QMetaMethodBuilder::attributes ( ) const

Returns the additional attributes for this method.

See also
setAttributes()

Definition at line 1821 of file qmetaobjectbuilder.cpp.

◆ index()

int QMetaMethodBuilder::index ( ) const

Returns the index of this method within its QMetaObjectBuilder.

Definition at line 1659 of file qmetaobjectbuilder.cpp.

◆ isConst()

bool QMetaMethodBuilder::isConst ( ) const

Returns true if the method is const qualified.

Definition at line 1847 of file qmetaobjectbuilder.cpp.

◆ methodType()

QMetaMethod::MethodType QMetaMethodBuilder::methodType ( ) const

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

Definition at line 1667 of file qmetaobjectbuilder.cpp.

◆ parameterNames()

QList< QByteArray > QMetaMethodBuilder::parameterNames ( ) const

Returns the list of parameter names for this method.

See also
setParameterNames()

Definition at line 1738 of file qmetaobjectbuilder.cpp.

◆ parameterTypes()

QList< QByteArrayView > QMetaMethodBuilder::parameterTypes ( ) const

Returns the list of parameter types for this method.

See also
returnType(), parameterNames()

Definition at line 1724 of file qmetaobjectbuilder.cpp.

◆ returnType()

QByteArray QMetaMethodBuilder::returnType ( ) const

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

See also
setReturnType(), signature()

Definition at line 1696 of file qmetaobjectbuilder.cpp.

◆ revision()

int QMetaMethodBuilder::revision ( ) const

Returns the revision of this method.

See also
setRevision()

Definition at line 1871 of file qmetaobjectbuilder.cpp.

◆ setAccess()

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

Definition at line 1809 of file qmetaobjectbuilder.cpp.

◆ setAttributes()

void QMetaMethodBuilder::setAttributes ( int value)

Sets the additional attributes for this method to value.

See also
attributes()

Definition at line 1835 of file qmetaobjectbuilder.cpp.

◆ setConst()

void QMetaMethodBuilder::setConst ( bool methodIsConst = true)

Definition at line 1855 of file qmetaobjectbuilder.cpp.

◆ setParameterNames()

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

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

See also
parameterNames()

Definition at line 1752 of file qmetaobjectbuilder.cpp.

◆ setReturnType()

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(), signature()

Definition at line 1712 of file qmetaobjectbuilder.cpp.

◆ setRevision()

void QMetaMethodBuilder::setRevision ( int revision)

Sets the revision of this method.

See also
revision()

Definition at line 1884 of file qmetaobjectbuilder.cpp.

◆ setTag()

void QMetaMethodBuilder::setTag ( const QByteArray & value)

Sets the tag associated with this method to value.

See also
setTag()

Definition at line 1779 of file qmetaobjectbuilder.cpp.

◆ signature()

QByteArray QMetaMethodBuilder::signature ( ) const

Returns the signature of this method.

See also
parameterNames(), returnType()

Definition at line 1681 of file qmetaobjectbuilder.cpp.

◆ tag()

QByteArray QMetaMethodBuilder::tag ( ) const

Returns the tag associated with this method.

See also
setTag()

Definition at line 1765 of file qmetaobjectbuilder.cpp.

◆ QMetaObjectBuilder

friend class QMetaObjectBuilder
friend

Definition at line 185 of file qmetaobjectbuilder_p.h.

◆ QMetaPropertyBuilder

friend class QMetaPropertyBuilder
friend

Definition at line 186 of file qmetaobjectbuilder_p.h.


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