Kexi API Documentation (2.0 alpha)

EventList Class Reference

#include <kexievents.h>

Inheritance diagram for EventList:

QValueList List of all members.

Public Member Functions

 EventList ()
 ~EventList ()
void addEvent (Event *event)
void addEvent (QObject *sender, const QCString &signal, QObject *receiver, const QCString &slot)
void addEvent (QObject *sender, const QCString &signal, const QCString &action)
void removeEvent (Event *event)
EventListallEventsForObject (QObject *object)
void removeAllEventsForObject (QObject *object)
QValueListConstIterator< Event * > constBegin () const
QValueListConstIterator< Event * > constEnd () const
bool isEmpty () const

Constructor & Destructor Documentation

EventList::EventList  )  [inline]
 

Definition at line 73 of file kexievents.h.

Referenced by allEventsForObject().

EventList::~EventList  )  [inline]
 

Definition at line 74 of file kexievents.h.


Member Function Documentation

void EventList::addEvent QObject *  sender,
const QCString &  signal,
const QCString &  action
 

Definition at line 54 of file kexievents.cpp.

void EventList::addEvent QObject *  sender,
const QCString &  signal,
QObject *  receiver,
const QCString &  slot
 

Definition at line 47 of file kexievents.cpp.

void EventList::addEvent Event event  ) 
 

Adds an event in list. Other overload are available, so that other classes don't have to use Event class in simple cases.

Definition at line 40 of file kexievents.cpp.

Referenced by allEventsForObject(), and ScriptIO::loadEvent().

EventList * EventList::allEventsForObject QObject *  object  ) 
 

Returns:
A list of events related to widget name (ie where Event::sender() or Event::receiver() == name).

Definition at line 69 of file kexievents.cpp.

References addEvent(), constBegin(), constEnd(), and EventList().

QValueListConstIterator<Event*> EventList::constBegin  )  const [inline]
 

Definition at line 93 of file kexievents.h.

Referenced by allEventsForObject(), FormScript::connectEvents(), and removeAllEventsForObject().

QValueListConstIterator<Event*> EventList::constEnd  )  const [inline]
 

Definition at line 94 of file kexievents.h.

Referenced by allEventsForObject(), FormScript::connectEvents(), and removeAllEventsForObject().

bool EventList::isEmpty  )  const [inline]
 

Definition at line 95 of file kexievents.h.

void EventList::removeAllEventsForObject QObject *  object  ) 
 

Removes all events related to widget name. Called eg when widget is destroyed.

Definition at line 84 of file kexievents.cpp.

References constBegin(), constEnd(), and removeEvent().

void EventList::removeEvent Event event  ) 
 

Removes the Event event from the FormScript's list.

Definition at line 61 of file kexievents.cpp.

Referenced by removeAllEventsForObject().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:59 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003