Kross::Api::EventSlot Class Reference
#include <eventslot.h>
Inheritance diagram for Kross::Api::EventSlot:
Public Types | |
| typedef TDESharedPtr< EventSlot > | Ptr |
| Public Types inherited from Kross::Api::Callable | |
| typedef TDESharedPtr< Callable > | Ptr |
| Public Types inherited from Kross::Api::Object | |
| typedef TDESharedPtr< Object > | Ptr |
Public Member Functions | |
| EventSlot (const TQString &name, TQObject *receiver, TQCString slot) | |
| virtual | ~EventSlot () |
| virtual const TQString | getClassName () const |
| virtual Object::Ptr | call (const TQString &name, TDESharedPtr< List > arguments) |
| Public Member Functions inherited from Kross::Api::Event< EventSlot > | |
| Event (const TQString &name) | |
| virtual | ~Event () |
| void | addFunction (const TQString &name, FunctionPtr function) |
| void | addFunction4 (const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0, ARG3OBJ *arg3=0, ARG4OBJ *arg4=0) |
| void | addFunction3 (const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0, ARG3OBJ *arg3=0) |
| void | addFunction2 (const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0, ARG2OBJ *arg2=0) |
| void | addFunction1 (const TQString &name, INSTANCE *instance, METHOD method, ARG1OBJ *arg1=0) |
| void | addFunction0 (const TQString &name, INSTANCE *instance, METHOD method) |
| bool | isAFunction (const TQString &name) const |
| virtual Object::Ptr | call (const TQString &name, List::Ptr arguments) |
| Public Member Functions inherited from Kross::Api::Callable | |
| Callable (const TQString &name) | |
| virtual | ~Callable () |
| const TQString | getName () const |
| bool | hasChild (const TQString &name) const |
| Object::Ptr | getChild (const TQString &name) const |
| TQMap< TQString, Object::Ptr > | getChildren () const |
| bool | addChild (const TQString &name, Object *object) |
| bool | addChild (Callable *object) |
| void | removeChild (const TQString &name) |
| void | removeAllChildren () |
| Public Member Functions inherited from Kross::Api::Object | |
| Object () | |
| virtual | ~Object () |
| virtual const TQString | toString () |
| virtual TQStringList | getCalls () |
Additional Inherited Members | |
| Static Public Member Functions inherited from Kross::Api::Object | |
| template<class T> | |
| static T * | fromObject (Object::Ptr object) |
| template<typename TYPE> | |
| static Object::Ptr | toObject (TYPE t) |
Detailed Description
Each TQt signal and slot connection between a TQObject instance and a functionname is represented with a EventSlot and handled by the EventManager.
Definition at line 36 of file eventslot.h.
Member Typedef Documentation
◆ Ptr
| typedef TDESharedPtr<EventSlot> Kross::Api::EventSlot::Ptr |
Shared pointer to implement reference-counting.
Definition at line 43 of file eventslot.h.
Constructor & Destructor Documentation
◆ EventSlot()
| EventSlot::EventSlot | ( | const TQString & | name, |
| TQObject * | receiver, | ||
| TQCString | slot ) |
Constructor.
- Parameters
-
name The name of the EventSlot. The EventSlot will be accessible by that unique name via it's parent. receiver The receiver of the event. slot The slot of the receiver which this EventSlot points to.
Definition at line 30 of file eventslot.cpp.
◆ ~EventSlot()
|
virtual |
Destructor.
Definition at line 37 of file eventslot.cpp.
Member Function Documentation
◆ call()
|
virtual |
- See also
- Kross::Api::Event::call()
Reimplemented from Kross::Api::Object.
Definition at line 46 of file eventslot.cpp.
◆ getClassName()
|
virtual |
Reimplemented from Kross::Api::Callable.
Definition at line 41 of file eventslot.cpp.
The documentation for this class was generated from the following files:
