kexi

#include <metaparameter.h>

Inheritance diagram for KoMacro::MetaParameter:
KoMacro::Variable KexiMacro::KexiVariable< ACTIONIMPL > KexiMacro::ObjectNameVariable< ACTIONIMPL > KexiMacro::ObjectVariable< ACTIONIMPL >

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

MetaParameter::MetaParameter ( const TQString &  signatureargument = TQString())
explicit

Constructor.

Parameters
signatureargumentThe signatures argument that will be used to determinate the arguments type. This could be something like "const TQString&", "int" or "TQMap &lt; TQString, TQVariant &gt; ".

Definition at line 60 of file metaparameter.cpp.

◆ ~MetaParameter()

MetaParameter::~MetaParameter ( )

Destructor.

Definition at line 71 of file metaparameter.cpp.

Member Function Documentation

◆ setSignatureArgument()

void MetaParameter::setSignatureArgument ( const TQString &  signatureargument)
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 variable is 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: