event.h
125 template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class ARG4OBJ, class INSTANCE, typename METHOD>
126 inline void addFunction4(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0, ARG4OBJ* arg4 = 0)
135 template<class RETURNOBJ, class ARG1OBJ, class ARG2OBJ, class ARG3OBJ, class INSTANCE, typename METHOD>
136 inline void addFunction3(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0, ARG3OBJ* arg3 = 0)
146 inline void addFunction2(const TQString& name, INSTANCE* instance, METHOD method, ARG1OBJ* arg1 = 0, ARG2OBJ* arg2 = 0)
156 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:93
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:126
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:136
void addFunction(const TQString &name, FunctionPtr function)
Add a Callable methodfunction to the list of functions this Object supports.
Definition event.h:99
virtual Object::Ptr call(const TQString &name, List::Ptr arguments)
Overloaded method to handle function-calls.
Definition event.h:202
bool isAFunction(const TQString &name) const
Check if a function is a member of this Callable.
Definition event.h:179
void addFunction(const TQString &name, Function *function)
Add a methodfunction to the list of functions this Object supports.
Definition event.h:116
void addFunction2(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0)
Same as above with two arguments.
Definition event.h:146
void addFunction1(const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0)
Same as above, but with one argument.
Definition event.h:156
void addFunction0(const TQString &name, INSTANCE *instance, METHOD method)
Same as above with no arguments.
Definition event.h:166
This class implements the most abstract way to work with functions.
Definition function.h:58
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:103
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:33
