Kexi API Documentation (2.0 alpha)

KoMacro::MetaParameter Class Reference

#include <metaparameter.h>

Inheritance diagram for KoMacro::MetaParameter:

KShared 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

typedef QValueList< KSharedPtr<
MetaParameter > > 
List
 List of MetaParameter instances.
enum  Type { TypeNone = 0, TypeVariant, TypeObject }
 Possible types the MetaParameter could provide. More...

Public Member Functions

 MetaParameter (const QString &signatureargument=QString::null)
 Constructor.
 ~MetaParameter ()
 Destructor.
Type type () const
const QString typeName () const
void setType (Type type)
 Set the MetaParameter::Type this variable is.
QVariant::Type variantType () const
void setVariantType (QVariant::Type varianttype)
 Set the MetaParameter::Type this variable is.
bool validVariable (KSharedPtr< Variable > variable) const

Protected Member Functions

void setSignatureArgument (const QString &signatureargument)

Properties

Type type
 Property to get the type of the variable.
QString typeName
 Property to get the type of the variable as string.


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

enum KoMacro::MetaParameter::Type
 

Possible types the MetaParameter could provide.

Enumeration values:
TypeNone 
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.

References setSignatureArgument(), and TypeNone.

MetaParameter::~MetaParameter  ) 
 

Destructor.

Definition at line 71 of file metaparameter.cpp.


Member Function Documentation

void MetaParameter::setSignatureArgument const QString signatureargument  )  [protected]
 

Definition at line 111 of file metaparameter.cpp.

References setType(), setVariantType(), type(), and TypeObject.

Referenced by MetaParameter(), and KoMacro::Variable::Variable().

void MetaParameter::setType Type  type  ) 
 

Set the MetaParameter::Type this variable is.

Definition at line 94 of file metaparameter.cpp.

Referenced by KoMacro::Variable::setObject(), setSignatureArgument(), and KoMacro::Variable::Variable().

void MetaParameter::setVariantType QVariant::Type  varianttype  ) 
 

Set the MetaParameter::Type this variable is.

Definition at line 105 of file metaparameter.cpp.

References TypeVariant.

Referenced by setSignatureArgument(), KoMacro::Variable::setVariant(), and KoMacro::Variable::Variable().

Type KoMacro::MetaParameter::type  )  const
 

Returns:
the MetaParameter::Type this variable has.

Referenced by setSignatureArgument(), KoMacro::Variable::toString(), validVariable(), and KoMacro::Variable::Variable().

const QString KoMacro::MetaParameter::typeName  )  const
 

Returns:
the MetaParameter::Type as string. The typename could be "None", "Variant" or "Object".

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.

References type().

QVariant::Type MetaParameter::variantType  )  const
 

Returns:
the MetaParameter::Type this variable is.

Definition at line 100 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 Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:51:04 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003