Kexi API Documentation (2.0 alpha)

KoMacro::MetaObject Class Reference

#include <metaobject.h>

Inheritance diagram for KoMacro::MetaObject:

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)
 Constructor.
 ~MetaObject ()
 Destructor.
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)
 Invoke the MetaMethod that has the index index .


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

int MetaObject::indexOfSignal const char *  signal  )  const
 

Returns:
the index of the signal signal .

Definition at line 89 of file metaobject.cpp.

References object().

Referenced by signal().

int MetaObject::indexOfSlot const char *  slot  )  const
 

Returns:
the index of the slot slot .

Definition at line 99 of file metaobject.cpp.

References object().

Referenced by 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.

KSharedPtr< MetaMethod > MetaObject::method int  index  ) 
 

Returns:
the MetaMethod that matches to the index index .

Definition at line 109 of file metaobject.cpp.

References object(), KoMacro::MetaMethod::Signal, and KoMacro::MetaMethod::Slot.

Referenced by signal(), and slot().

QObject *const MetaObject::object  )  const
 

Returns:
the QObject this MetaObject provides abstract access to.

Definition at line 69 of file metaobject.cpp.

Referenced by indexOfSignal(), indexOfSlot(), and method().

KSharedPtr< MetaMethod > MetaObject::signal const char *  signal  ) 
 

Returns:
a MetaMethod for the signal signal .

Definition at line 134 of file metaobject.cpp.

References indexOfSignal(), and method().

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

Returns:
a MetaMethod for the slot slot .

Definition at line 139 of file metaobject.cpp.

References indexOfSlot(), and method().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:51:04 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003