lib

Kross::Api::EventSignal Class Reference

#include <eventsignal.h>

Inheritance diagram for Kross::Api::EventSignal:

Kross::Api::Event< T > Kross::Api::Callable Kross::Api::Object

List of all members.


Detailed Description

Each Qt signal and slot connection between a QObject instance and a functionname is represented with a EventSignal and handled by EventManager.

Definition at line 41 of file eventsignal.h.


Public Types

typedef KSharedPtr< EventSignalPtr

Public Member Functions

 EventSignal (const QString &name, QObject *sender, QCString signal)
virtual ~EventSignal ()
virtual const QString getClassName () const
virtual Object::Ptr call (const QString &name, KSharedPtr< List > arguments)

Member Typedef Documentation

Shared pointer to implement reference-counting.

Reimplemented from Kross::Api::Callable.

Definition at line 48 of file eventsignal.h.


Constructor & Destructor Documentation

EventSignal::EventSignal ( const QString &  name,
QObject *  sender,
QCString  signal 
)

Constructor.

Definition at line 30 of file eventsignal.cpp.

EventSignal::~EventSignal (  )  [virtual]

Destructor.

Definition at line 37 of file eventsignal.cpp.


Member Function Documentation

const QString EventSignal::getClassName (  )  const [virtual]

Return the class name.

This could be something like "Kross::Api::Callable" for this object. The value is mainly used for display purposes.

Returns:
The name of this class.

Reimplemented from Kross::Api::Callable.

Definition at line 41 of file eventsignal.cpp.

Object::Ptr EventSignal::call ( const QString &  name,
KSharedPtr< List arguments 
) [virtual]

Pass a call to the object and evaluated it recursive down the object-hierachy.

Objects like Class are able to handle call's by just implementing this function. If the call is done the called() method will be executed recursive from bottom up the call hierachy.

Exceptions:
TypeException if the object or the name is not callable.
Parameters:
name Each call has a name that says what should be called. In the case of a Class the name is the functionname.
arguments The list of arguments passed to the call.
Returns:
The call-result as Object::Ptr instance or NULL if the call has no result.

Reimplemented from Kross::Api::Object.

Definition at line 46 of file eventsignal.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys