Kross
#include <metafunction.h>

Public Member Functions | |
MetaFunction (QObject *sender, const QByteArray &signal) | |
virtual | ~MetaFunction () |
const QMetaObject * | metaObject () const |
int | qt_metacall (QMetaObject::Call _c, int _id, void **_a)=0 |
void * | qt_metacast (const char *_clname) |
Public Attributes | |
QMetaObject | staticMetaObject |
Protected Attributes | |
uint | m_data [21] |
QPointer< QObject > | m_sender |
QByteArray | m_signature |
QByteArray | m_stringData |
Detailed Description
The MetaFunction class implements a QObject to provide an adaptor between Qt signals+slots and scripting functions.
For example the Kross::PythonFunction and the Kross::RubyFunction classes located in kdebindings inherit this class to connect a QObject signal together with a callable python or ruby method.
Definition at line 63 of file metafunction.h.
Constructor & Destructor Documentation
◆ MetaFunction()
|
inline |
Constructor.
- Parameters
-
sender The QObject instance that sends the signal. signal The signature of the signal the QObject emits. callable The callable python function that should be executed if the QObject emits the signal.
Definition at line 96 of file metafunction.h.
◆ ~MetaFunction()
|
inlinevirtual |
Destructor.
Definition at line 137 of file metafunction.h.
Member Function Documentation
◆ metaObject()
|
inline |
- Returns
- the dynamic build QMetaObject instance for this QObject instance.
Definition at line 149 of file metafunction.h.
◆ qt_metacall()
|
pure virtual |
This method got called if a method this QObject instance defines should be invoked.
◆ qt_metacast()
|
inline |
Try to cast this QObject instance into the class with name _clname
and return the casted pointer or NULL if casting failed.
Definition at line 158 of file metafunction.h.
Member Data Documentation
◆ m_data
|
protected |
The data array.
Definition at line 180 of file metafunction.h.
◆ m_sender
|
protected |
The sender QObject.
Definition at line 174 of file metafunction.h.
◆ m_signature
|
protected |
The signature.
Definition at line 176 of file metafunction.h.
◆ m_stringData
|
protected |
The stringdata.
Definition at line 178 of file metafunction.h.
◆ staticMetaObject
QMetaObject Kross::MetaFunction::staticMetaObject |
The static QMetaObject instance that provides the QMeta-information for this QObject class.
Definition at line 143 of file metafunction.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.