kexi
KoMacro::MetaParameter Class Reference
#include <metaparameter.h>
Inheritance diagram for KoMacro::MetaParameter:

Detailed Description
Class to provide abstract methods for the undocumented Qt3 QUObject-API functionality.The design tried to limit future porting to Qt4 by providing a somewhat similar API to the Qt4 QMeta* stuff.
Definition at line 42 of file metaparameter.h.
Public Types | |
enum | Type { TypeNone = 0, TypeVariant, TypeObject } |
typedef QValueList< KSharedPtr < MetaParameter > > | List |
Public Member Functions | |
MetaParameter (const QString &signatureargument=QString::null) | |
~MetaParameter () | |
Type | type () const |
const QString | typeName () const |
void | setType (Type type) |
QVariant::Type | variantType () const |
void | setVariantType (QVariant::Type varianttype) |
bool | validVariable (KSharedPtr< Variable > variable) const |
Protected Member Functions | |
void | setSignatureArgument (const QString &signatureargument) |
Properties | |
Type | type |
QString | typeName |
Member Typedef Documentation
typedef QValueList<KSharedPtr <MetaParameter > > KoMacro::MetaParameter::List |
List of MetaParameter instances.
Reimplemented in KoMacro::Variable.
Definition at line 60 of file metaparameter.h.
Member Enumeration Documentation
Possible types the MetaParameter could provide.
- Enumerator:
-
TypeVariant None type, the MetaParameter is empty. TypeObject The MetaParameter is a QVariant. The MetaParameter is a QObject.
Definition at line 80 of file metaparameter.h.
Constructor & Destructor Documentation
MetaParameter::MetaParameter | ( | const QString & | signatureargument = QString::null |
) | [explicit] |
Constructor.
- Parameters:
-
signatureargument The signatures argument that will be used to determinate the arguments type. This could be something like "const QString&", "int" or "QMap < QString, QVariant > ".
Definition at line 60 of file metaparameter.cpp.
MetaParameter::~MetaParameter | ( | ) |
Member Function Documentation
Type KoMacro::MetaParameter::type | ( | ) | const |
- Returns:
- the MetaParameter::Type this variable has.
const QString KoMacro::MetaParameter::typeName | ( | ) | const |
- Returns:
- the MetaParameter::Type as string. The typename could be "None", "Variant" or "Object".
void MetaParameter::setType | ( | MetaParameter::Type | type | ) |
QVariant::Type MetaParameter::variantType | ( | ) | const |
void MetaParameter::setVariantType | ( | QVariant::Type | varianttype | ) |
bool MetaParameter::validVariable | ( | KSharedPtr< Variable > | variable | ) | const |
- Returns:
- true if the passed Variable
variable
is valid for this MetaParameter . Valid means, that the variable has a castable type.
Definition at line 140 of file metaparameter.cpp.
Property Documentation
MetaParameter::Type MetaParameter::type [read] |
const QString MetaParameter::typeName [read] |
The documentation for this class was generated from the following files: