kexi
KoMacro::MetaMethod Class Reference
#include <metamethod.h>
Inherits KShared.
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 46 of file metamethod.h.
Public Types | |
enum | Type { Signal, Slot, Unknown } |
Public Member Functions | |
MetaMethod (const QString &signature, Type type=Unknown, KSharedPtr< MetaObject > object=0) | |
~MetaMethod () | |
KSharedPtr< MetaObject > const | object () const |
const QString | signature () const |
const QString | signatureTag () const |
const QString | signatureArguments () const |
Type | type () const |
QValueList< KSharedPtr < MetaParameter > > | arguments () const |
QUObject * | toQUObject (QValueList< KSharedPtr< Variable > > arguments) |
KSharedPtr< Variable > | toVariable (QUObject *uo) |
QValueList< KSharedPtr < Variable > > | toVariableList (QUObject *uo) |
KSharedPtr< Variable > | invoke (QValueList< KSharedPtr< Variable > > arguments) |
Member Enumeration Documentation
The type of method this MetaMethod provides access to.
- Enumerator:
-
Slot The MetaMethod points to a Qt signal. Unknown The MetaMethod points to a Qt slot. The MetaMethod is not known.
Definition at line 54 of file metamethod.h.
Constructor & Destructor Documentation
MetaMethod::MetaMethod | ( | const QString & | signature, | |
Type | type = Unknown , |
|||
KSharedPtr< MetaObject > | object = 0 | |||
) | [explicit] |
Constructor.
- Parameters:
-
signature The signature this MetaMethod has. This includes the tagname and the arguments and could look like "myslot(const QString&, int)". type The MetaMethod::Type the MethodMethod has. object The MetaObject this MethodMethod belongs to. Each MethodMethod is associated with exactly one MetaObject .
Definition at line 84 of file metamethod.cpp.
MetaMethod::~MetaMethod | ( | ) |
Member Function Documentation
KSharedPtr< MetaObject > const MetaMethod::object | ( | ) | const |
- Returns:
- the MetaObject instance this MethodMethod belongs to.
Definition at line 138 of file metamethod.cpp.
const QString MetaMethod::signature | ( | ) | const |
- Returns:
- the signature this MetaMethod has. It could be something like "mySlot(const QString&,int)".
Definition at line 143 of file metamethod.cpp.
const QString MetaMethod::signatureTag | ( | ) | const |
- Returns:
- the signatures tagname this MetaMethod has. At the signature "mySlot(const QString&,int)" the tagname would be "mySlot".
Definition at line 148 of file metamethod.cpp.
const QString MetaMethod::signatureArguments | ( | ) | const |
- Returns:
- the signatures arguments this MetaMethod has. At the signature "mySlot(const QString&,int)" the arguments are "const QString&,int".
Definition at line 153 of file metamethod.cpp.
MetaMethod::Type MetaMethod::type | ( | ) | const |
- Returns:
- the Type of method this MetaMethod provides access to.
Definition at line 158 of file metamethod.cpp.
MetaParameter::List MetaMethod::arguments | ( | ) | const |
- Returns:
- the signature arguments as parsed list of MetaParameter instances.
Definition at line 163 of file metamethod.cpp.
QUObject* KoMacro::MetaMethod::toQUObject | ( | QValueList< KSharedPtr< Variable > > | arguments | ) |
Translate the passed arguments
list of Variable instances into a Qt3 QUObject* array.
KSharedPtr< Variable > MetaMethod::toVariable | ( | QUObject * | uo | ) |
Translate the passed uo
QUObject reference into an internal used Variable instances.
Definition at line 257 of file metamethod.cpp.
Variable::List MetaMethod::toVariableList | ( | QUObject * | uo | ) |
Translate the passed uo
QUObject array into an internal used list of Variable instances.
Definition at line 293 of file metamethod.cpp.
Invoke the MetaMethod with the optional arguments arguments
and return a variable.
The documentation for this class was generated from the following files: