kexi

KoMacro::MetaParameter Class Reference

#include <metaparameter.h>

Inheritance diagram for KoMacro::MetaParameter:

KoMacro::Variable KexiMacro::KexiVariable< ACTIONIMPL > KexiMacro::ObjectNameVariable< ACTIONIMPL > KexiMacro::ObjectVariable< ACTIONIMPL > List of all members.

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 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 &lt; QString, QVariant &gt; ".

Definition at line 60 of file metaparameter.cpp.

MetaParameter::~MetaParameter (  ) 

Destructor.

Definition at line 71 of file metaparameter.cpp.


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

Set the MetaParameter::Type this variable is.

Definition at line 94 of file metaparameter.cpp.

QVariant::Type MetaParameter::variantType (  )  const

Returns:
the MetaParameter::Type this variable is.

Definition at line 100 of file metaparameter.cpp.

void MetaParameter::setVariantType ( QVariant::Type  varianttype  ) 

Set the MetaParameter::Type this variable is.

Definition at line 105 of file metaparameter.cpp.

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]

Property to get the type of the variable.

Definition at line 48 of file metaparameter.h.

const QString MetaParameter::typeName [read]

Property to get the type of the variable as string.

Definition at line 53 of file metaparameter.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys