lib
Kross::Api::Event< T > Class Template Reference
#include <event.h>
Inheritance diagram for Kross::Api::Event< T >:

Detailed Description
template<class T>
class Kross::Api::Event< T >
Template class for all kinds of callable events.
An event is the abstract base for callable objects like methodfunctions in Class instances or EventSlot and EventSignal to access Qt signals and slots.
Definition at line 47 of file event.h.
Public Member Functions | |
Event (const QString &name, Object::Ptr parent) | |
virtual | ~Event () |
void | addFunction (const QString &name, FunctionPtr function, const ArgumentList &arglist=ArgumentList()) |
void | addFunction (const QString &name, Function *function) |
template<class RET, class ARG1, class ARG2, class ARG3, class ARG4, class INSTANCE, typename METHOD> | |
void | addProxyFunction (const QString &name, INSTANCE *instance, METHOD method) |
template<class RET, class ARG1, class ARG2, class ARG3, class INSTANCE, typename METHOD> | |
void | addProxyFunction (const QString &name, INSTANCE *instance, METHOD method) |
template<class RET, class ARG1, class ARG2, class INSTANCE, typename METHOD> | |
void | addProxyFunction (const QString &name, INSTANCE *instance, METHOD method) |
template<class RET, class ARG1, class INSTANCE, typename METHOD> | |
void | addProxyFunction (const QString &name, INSTANCE *instance, METHOD method) |
template<class RET, class INSTANCE, typename METHOD> | |
void | addProxyFunction (const QString &name, INSTANCE *instance, METHOD method) |
bool | isAFunction (const QString &name) const |
virtual Object::Ptr | call (const QString &name, List::Ptr arguments) |
Constructor & Destructor Documentation
|
Constructor.
|
|
Destructor.
|
Member Function Documentation
|
Add a methodfunction to the list of functions this Object supports.
|
|
Add a Callable methodfunction to the list of functions this Object supports. The FunctionPtr points to the concret Object::Ptr myfuncname(List::Ptr) method in the class defined with template T.
|
|
Same as above, but with no arguments.
|
|
Same as above, but with one argument.
|
|
Same as above, but with two arguments.
|
|
Same as above, but with three arguments.
|
|
Template function to add a Kross::Api::ProxyFunction as builtin-function to this Event instance.
|
|
Overloaded method to handle function-calls.
Reimplemented from Kross::Api::Callable. |
|
Check if a function is a member of this Callable.
|
The documentation for this class was generated from the following file: