![]() |
Qt 4.8
|
The QMetaMethodBuilder class enables modifications to a method definition on a meta object builder. More...
#include <qmetaobjectbuilder_p.h>
Public Functions | |
| QMetaMethod::Access | access () const |
| Returns the access specification of this method (private, protected, or public). More... | |
| int | attributes () const |
| Returns the additional attributes for this method. More... | |
| int | index () const |
| Returns the index of this method within its QMetaObjectBuilder. More... | |
| QMetaMethod::MethodType | methodType () const |
| Returns the type of this method (signal, slot, method, or constructor). More... | |
| QList< QByteArray > | parameterNames () const |
| Returns the list of parameter names for this method. More... | |
| QMetaMethodBuilder () | |
| QByteArray | returnType () const |
Returns the return type for this method; empty if the method's return type is void. More... | |
| void | setAccess (QMetaMethod::Access value) |
| Sets the access specification of this method (private, protected, or public) to value. More... | |
| void | setAttributes (int value) |
| Sets the additional attributes for this method to value. More... | |
| void | setParameterNames (const QList< QByteArray > &value) |
| Sets the list of parameter names for this method to value. More... | |
| void | setReturnType (const QByteArray &value) |
| Sets the return type for this method to value. More... | |
| void | setTag (const QByteArray &value) |
| Sets the tag associated with this method to value. More... | |
| QByteArray | signature () const |
| Returns the signature of this method. More... | |
| QByteArray | tag () const |
| Returns the tag associated with this method. More... | |
Private Functions | |
| QMetaMethodBuilderPrivate * | d_func () const |
| QMetaMethodBuilder (const QMetaObjectBuilder *mobj, int index) | |
Properties | |
| int | _index |
| const QMetaObjectBuilder * | _mobj |
Friends | |
| class | QMetaObjectBuilder |
| class | QMetaPropertyBuilder |
The QMetaMethodBuilder class enables modifications to a method definition on a meta object builder.
Definition at line 198 of file qmetaobjectbuilder_p.h.
|
inline |
Definition at line 201 of file qmetaobjectbuilder_p.h.
|
inlineprivate |
Definition at line 230 of file qmetaobjectbuilder_p.h.
| 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, and constructors. The default value is QMetaMethod::Protected for signals.
Definition at line 1977 of file qmetaobjectbuilder.cpp.
| int QMetaMethodBuilder::attributes | ( | ) | const |
Returns the additional attributes for this method.
Definition at line 2005 of file qmetaobjectbuilder.cpp.
|
private |
Definition at line 1835 of file qmetaobjectbuilder.cpp.
| int QMetaMethodBuilder::index | ( | ) | const |
Returns the index of this method within its QMetaObjectBuilder.
Definition at line 1854 of file qmetaobjectbuilder.cpp.
| QMetaMethod::MethodType QMetaMethodBuilder::methodType | ( | ) | const |
Returns the type of this method (signal, slot, method, or constructor).
Definition at line 1865 of file qmetaobjectbuilder.cpp.
| QList< QByteArray > QMetaMethodBuilder::parameterNames | ( | ) | const |
Returns the list of parameter names for this method.
Definition at line 1922 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaMethodBuilder::returnType | ( | ) | const |
Returns the return type for this method; empty if the method's return type is void.
Definition at line 1894 of file qmetaobjectbuilder.cpp.
| 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.
Definition at line 1993 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addMethod(), and for().
| void QMetaMethodBuilder::setAttributes | ( | int | value | ) |
Sets the additional attributes for this method to value.
Definition at line 2019 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addMethod().
| void QMetaMethodBuilder::setParameterNames | ( | const QList< QByteArray > & | value | ) |
Sets the list of parameter names for this method to value.
Definition at line 1936 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addMethod(), and QDeclarativeCompiler::buildDynamicMeta().
| 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.
Definition at line 1910 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addConstructor(), QMetaObjectBuilder::addMethod(), and QDeclarativeCompiler::buildDynamicMeta().
| void QMetaMethodBuilder::setTag | ( | const QByteArray & | value | ) |
Sets the tag associated with this method to value.
Definition at line 1962 of file qmetaobjectbuilder.cpp.
Referenced by QMetaObjectBuilder::addMethod().
| QByteArray QMetaMethodBuilder::signature | ( | ) | const |
Returns the signature of this method.
Definition at line 1879 of file qmetaobjectbuilder.cpp.
| QByteArray QMetaMethodBuilder::tag | ( | ) | const |
Returns the tag associated with this method.
Definition at line 1948 of file qmetaobjectbuilder.cpp.
|
friend |
Definition at line 227 of file qmetaobjectbuilder_p.h.
|
friend |
Definition at line 228 of file qmetaobjectbuilder_p.h.
|
private |
Definition at line 225 of file qmetaobjectbuilder_p.h.
Referenced by QMetaPropertyBuilder::setNotifySignal().
|
private |
Definition at line 224 of file qmetaobjectbuilder_p.h.
Referenced by QMetaPropertyBuilder::setNotifySignal().