kexi

KoMacro::MetaObject Class Reference

#include <metaobject.h>

Inherits KShared.

List of all members.


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< MetaMethodmethod (int index)
KSharedPtr< MetaMethodsignal (const char *signal)
KSharedPtr< MetaMethodslot (const char *slot)
KSharedPtr< VariableinvokeMethod (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 (  ) 

Destructor.

Definition at line 64 of file metaobject.cpp.


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

Returns:
the index of the signal signal .

Definition at line 89 of file metaobject.cpp.

int MetaObject::indexOfSlot ( const char *  slot  )  const

Returns:
the index of the slot slot .

Definition at line 99 of file metaobject.cpp.

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  ) 

Returns:
a MetaMethod for the signal signal .

Definition at line 134 of file metaobject.cpp.

KSharedPtr< MetaMethod > MetaObject::slot ( const char *  slot  ) 

Returns:
a MetaMethod for the slot slot .

Definition at line 139 of file metaobject.cpp.

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:
KDE Home | KDE Accessibility Home | Description of Access Keys