#include <metaparameter.h>
Public Types | |
| enum | Type { TypeNone = 0 , TypeVariant , TypeObject } |
| typedef TQValueList< TDESharedPtr< MetaParameter > > | List |
Public Member Functions | |
| MetaParameter (const TQString &signatureargument=TQString()) | |
| ~MetaParameter () | |
| Type | type () const |
| const TQString | typeName () const |
| void | setType (Type type) |
| TQVariant::Type | variantType () const |
| void | setVariantType (TQVariant::Type varianttype) |
| bool | validVariable (TDESharedPtr< Variable > variable) const |
Protected Member Functions | |
| void | setSignatureArgument (const TQString &signatureargument) |
Detailed Description
Class to provide abstract methods for the undocumented TQt3 TQUObject-API functionality.
The design tried to limit future porting to TQt4 by providing a somewhat similar API to the TQt4 TQMeta* stuff.
Definition at line 42 of file metaparameter.h.
Member Typedef Documentation
◆ List
| typedef TQValueList<TDESharedPtr <MetaParameter > > KoMacro::MetaParameter::List |
Property to get the type of the variable.
Property to get the type of the variable as string. List of MetaParameter instances.
Definition at line 60 of file metaparameter.h.
Member Enumeration Documentation
◆ Type
Possible types the MetaParameter could provide.
| Enumerator | |
|---|---|
| TypeVariant | None type, the MetaParameter is empty. |
| TypeObject | The MetaParameter is a TQVariant. The MetaParameter is a TQObject. |
Definition at line 80 of file metaparameter.h.
Constructor & Destructor Documentation
◆ MetaParameter()
|
explicit |
Constructor.
- Parameters
-
signatureargument The signatures argument that will be used to determinate the arguments type. This could be something like "const TQString&", "int" or "TQMap < TQString, TQVariant > ".
Definition at line 60 of file metaparameter.cpp.
◆ ~MetaParameter()
| MetaParameter::~MetaParameter | ( | ) |
Destructor.
Definition at line 71 of file metaparameter.cpp.
Member Function Documentation
◆ setSignatureArgument()
|
protected |
Definition at line 111 of file metaparameter.cpp.
◆ setType()
| void MetaParameter::setType | ( | MetaParameter::Type | type | ) |
Set the MetaParameter::Type this variable is.
Definition at line 94 of file metaparameter.cpp.
◆ setVariantType()
| void MetaParameter::setVariantType | ( | TQVariant::Type | varianttype | ) |
Set the MetaParameter::Type this variable is.
Definition at line 105 of file metaparameter.cpp.
◆ type()
| MetaParameter::Type MetaParameter::type | ( | ) | const |
- Returns
- the MetaParameter::Type this variable has.
Definition at line 76 of file metaparameter.cpp.
◆ typeName()
| const TQString MetaParameter::typeName | ( | ) | const |
- Returns
- the MetaParameter::Type as string. The typename could be "None", "Variant" or "Object".
Definition at line 81 of file metaparameter.cpp.
◆ validVariable()
| bool MetaParameter::validVariable | ( | TDESharedPtr< Variable > | variable | ) | const |
- Returns
- true if the passed Variable
variableis valid for this MetaParameter . Valid means, that the variable has a castable type.
Definition at line 140 of file metaparameter.cpp.
◆ variantType()
| TQVariant::Type MetaParameter::variantType | ( | ) | const |
- Returns
- the MetaParameter::Type this variable is.
Definition at line 100 of file metaparameter.cpp.
The documentation for this class was generated from the following files:
