event.h
124 template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class ARG4OBJ, class INSTANCE, typename METHOD>
125 inline void addFunction4(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0, ARG4OBJ* arg4 = 0)
134 template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class INSTANCE, typename METHOD>
135 inline void addFunction3(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0)
145 inline void addFunction2(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0)
155 inline void addFunction1(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0)
virtual Object::Ptr call(const TQString &name, List::Ptr arguments)
Call the object.
Definition callable.cpp:94
void addFunction4(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0, ARG3OBJ *arg3=0, ARG4OBJ *arg4=0)
Template function to add a ProxyFunction as builtin-function to this Event instance.
Definition event.h:125
void addFunction3(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0, ARG3OBJ *arg3=0)
Same as above with three arguments.
Definition event.h:135
void addFunction(const TQString &name, FunctionPtr function)
Add a Callable methodfunction to the list of functions this Object supports.
Definition event.h:98
virtual Object::Ptr call(const TQString &name, List::Ptr arguments)
Overloaded method to handle function-calls.
Definition event.h:201
bool isAFunction(const TQString &name) const
Check if a function is a member of this Callable.
Definition event.h:178
void addFunction(const TQString &name, Function *function)
Add a methodfunction to the list of functions this Object supports.
Definition event.h:115
void addFunction2(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0)
Same as above with two arguments.
Definition event.h:145
void addFunction1(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0)
Same as above, but with one argument.
Definition event.h:155
void addFunction0(const TQString &name, INSTANCE *instance, METHOD method)
Same as above with no arguments.
Definition event.h:165
This class implements the most abstract way to work with functions.
Definition function.h:59
virtual Object::Ptr call(List::Ptr)=0
Each function needs to implement the call-method which will be executed if the function itself should...
The ProxyFunction template-class is used to publish any C/C++ method (not only slots) of a struct or ...
Definition proxy.h:104
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31
