Kexi API Documentation (2.0 alpha)

Event Class Reference

#include <kexievents.h>

List of all members.


Detailed Description

A simple class to store events.

There are three different types of events (an maybe more in the future): signal to slot: sender and receiver are both widgets. signal to user function: whenever the signal is emitted, a function in the form script is called. signal to action: the signal activates an application action (eg addNewRecord in Kexi) (other :* global signal to user function: an application global signal (new window opened, etc.) calls a user script function)

Todo:
add aliases for slot()?? (eg actionName())

Definition at line 38 of file kexievents.h.

Public Types

enum  { Slot = 1000, UserFunction, Action }

Public Member Functions

 Event (QObject *sender, const QCString &signal, QObject *receiver, const QCString &slot)
 Event (QObject *sender, const QCString &signal, const QCString &functionName)
 Event ()
 ~Event ()
int type ()
 Event types.
void setType (int type)
QObject * sender () const
QObject * receiver () const
QCString signal () const
QCString slot () const
void setSender (QObject *o)
void setReceiver (QObject *o)
void setSignal (const QCString &s)
void setSlot (const QCString &s)

Protected Attributes

QGuardedPtr< QObject > m_sender
QCString m_signal
QGuardedPtr< QObject > m_receiver
QCString m_slot
int m_type


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
Slot 
UserFunction 
Action 

Definition at line 48 of file kexievents.h.


Constructor & Destructor Documentation

Event::Event QObject *  sender,
const QCString &  signal,
QObject *  receiver,
const QCString &  slot
 

Definition at line 22 of file kexievents.cpp.

References m_receiver, m_sender, m_signal, and m_slot.

Event::Event QObject *  sender,
const QCString &  signal,
const QCString &  functionName
 

Definition at line 31 of file kexievents.cpp.

References m_sender, m_signal, and m_slot.

Event::Event  )  [inline]
 

Definition at line 45 of file kexievents.h.

Event::~Event  )  [inline]
 

Definition at line 46 of file kexievents.h.


Member Function Documentation

QObject* Event::receiver  )  const [inline]
 

Definition at line 53 of file kexievents.h.

Referenced by ScriptIO::saveEvent().

QObject* Event::sender  )  const [inline]
 

Definition at line 52 of file kexievents.h.

Referenced by ScriptIO::saveEvent().

void Event::setReceiver QObject *  o  )  [inline]
 

Definition at line 58 of file kexievents.h.

Referenced by ScriptIO::loadEvent().

void Event::setSender QObject *  o  )  [inline]
 

Definition at line 57 of file kexievents.h.

Referenced by ScriptIO::loadEvent().

void Event::setSignal const QCString &  s  )  [inline]
 

Definition at line 59 of file kexievents.h.

Referenced by ScriptIO::loadEvent().

void Event::setSlot const QCString &  s  )  [inline]
 

Definition at line 60 of file kexievents.h.

Referenced by ScriptIO::loadEvent().

void Event::setType int  type  )  [inline]
 

Definition at line 50 of file kexievents.h.

Referenced by ScriptIO::loadEvent().

QCString Event::signal  )  const [inline]
 

Definition at line 54 of file kexievents.h.

Referenced by ScriptIO::saveEvent().

QCString Event::slot  )  const [inline]
 

Definition at line 55 of file kexievents.h.

Referenced by ScriptIO::saveEvent().

int Event::type  )  [inline]
 

Event types.

Definition at line 49 of file kexievents.h.

Referenced by ScriptIO::saveEvent().


Member Data Documentation

QGuardedPtr<QObject> Event::m_receiver [protected]
 

Definition at line 65 of file kexievents.h.

Referenced by Event().

QGuardedPtr<QObject> Event::m_sender [protected]
 

Definition at line 63 of file kexievents.h.

Referenced by Event().

QCString Event::m_signal [protected]
 

Definition at line 64 of file kexievents.h.

Referenced by Event().

QCString Event::m_slot [protected]
 

Definition at line 66 of file kexievents.h.

Referenced by Event().

int Event::m_type [protected]
 

Definition at line 67 of file kexievents.h.


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