kexi
KoMacro::MetaObject Class Reference
#include <metaobject.h>
Detailed Description
Class to provide abstract access to extended QObject functionality like the undocumented QUObject-API in Qt3.The design tried to limit future porting to Qt4 by providing a somewhat similar API to the Qt4 QMeta* stuff.
Definition at line 41 of file metaobject.h.
Public Member Functions | |
MetaObject (QObject *const object) | |
~MetaObject () | |
QObject *const | object () const |
int | indexOfSignal (const char *signal) const |
int | indexOfSlot (const char *slot) const |
KSharedPtr< MetaMethod > | method (int index) |
KSharedPtr< MetaMethod > | signal (const char *signal) |
KSharedPtr< MetaMethod > | slot (const char *slot) |
KSharedPtr< Variable > | invokeMethod (int index, QValueList< KSharedPtr< Variable > > arguments) |
Constructor & Destructor Documentation
MetaObject::MetaObject | ( | QObject *const | object | ) | [explicit] |
Constructor.
- Parameters:
-
object The QObject instance this MetaObject provides abstract access to.
Definition at line 58 of file metaobject.cpp.
MetaObject::~MetaObject | ( | ) |
Member Function Documentation
QObject *const MetaObject::object | ( | ) | const |
- Returns:
- the QObject this MetaObject provides abstract access to.
Definition at line 69 of file metaobject.cpp.
int MetaObject::indexOfSignal | ( | const char * | signal | ) | const |
int MetaObject::indexOfSlot | ( | const char * | slot | ) | const |
KSharedPtr< MetaMethod > MetaObject::method | ( | int | index | ) |
- Returns:
- the MetaMethod that matches to the index
index
.
Definition at line 109 of file metaobject.cpp.
KSharedPtr< MetaMethod > MetaObject::signal | ( | const char * | signal | ) |
KSharedPtr< MetaMethod > MetaObject::slot | ( | const char * | slot | ) |
KSharedPtr<Variable> KoMacro::MetaObject::invokeMethod | ( | int | index, | |
QValueList< KSharedPtr< Variable > > | arguments | |||
) |
Invoke the MetaMethod that has the index index
.
- Parameters:
-
index The index the signal or slot has. Use indexOfSignal() and indexOfSlot() to determinate those index. arguments The optional arguments passed to the method.
- Returns:
- The returnvalue the method provides and that got returned if the execution is done.
The documentation for this class was generated from the following files: