kexi

KoMacro::MetaObject Class Reference

#include <metaobject.h>

Public Member Functions

 MetaObject (TQObject *const object)
 ~MetaObject ()
TQObject *const object () const
int indexOfSignal (const char *signal) const
int indexOfSlot (const char *slot) const
TDESharedPtr< MetaMethod > method (int index)
TDESharedPtr< MetaMethod > signal (const char *signal)
TDESharedPtr< MetaMethod > slot (const char *slot)
TDESharedPtr< Variable > invokeMethod (int index, TQValueList< TDESharedPtr< Variable > > arguments)

Detailed Description

Class to provide abstract access to extended TQObject functionality like the undocumented TQUObject-API in TQt3.

The design tried to limit future porting to TQt4 by providing a somewhat similar API to the TQt4 TQMeta* stuff.

Definition at line 41 of file metaobject.h.

Constructor & Destructor Documentation

◆ MetaObject()

MetaObject::MetaObject ( TQObject *const object)
explicit

Constructor.

Parameters
objectThe TQObject instance this MetaObject provides abstract access to.

Definition at line 58 of file metaobject.cpp.

◆ ~MetaObject()

MetaObject::~MetaObject ( )

Destructor.

Definition at line 64 of file metaobject.cpp.

Member Function Documentation

◆ indexOfSignal()

int MetaObject::indexOfSignal ( const char * signal) const
Returns
the index of the signal signal .

Definition at line 89 of file metaobject.cpp.

◆ indexOfSlot()

int MetaObject::indexOfSlot ( const char * slot) const
Returns
the index of the slot slot .

Definition at line 99 of file metaobject.cpp.

◆ invokeMethod()

TDESharedPtr< Variable > MetaObject::invokeMethod ( int index,
TQValueList< TDESharedPtr< Variable > > arguments )

Invoke the MetaMethod that has the index index .

Parameters
indexThe index the signal or slot has. Use indexOfSignal() and indexOfSlot() to determinate those index.
argumentsThe optional arguments passed to the method.
Returns
The returnvalue the method provides and that got returned if the execution is done.

Definition at line 144 of file metaobject.cpp.

◆ method()

TDESharedPtr< MetaMethod > MetaObject::method ( int index)
Returns
the MetaMethod that matches to the index index .

Definition at line 109 of file metaobject.cpp.

◆ object()

TQObject *const MetaObject::object ( ) const
Returns
the TQObject this MetaObject provides abstract access to.

Definition at line 69 of file metaobject.cpp.

◆ signal()

TDESharedPtr< MetaMethod > MetaObject::signal ( const char * signal)
Returns
a MetaMethod for the signal signal .

Definition at line 134 of file metaobject.cpp.

◆ slot()

TDESharedPtr< MetaMethod > MetaObject::slot ( const char * slot)
Returns
a MetaMethod for the slot slot .

Definition at line 139 of file metaobject.cpp.


The documentation for this class was generated from the following files: