• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

kjsembed

KJSEmbed::EventProxy

KJSEmbed::EventProxy Class Reference

Filters events for a QObject and forwards them to a JS handler. More...

#include <eventproxy.h>

Inheritance diagram for KJSEmbed::EventProxy:
QObject

List of all members.

Public Member Functions

void addFilter (QEvent::Type t)
bool eventFilter (QObject *watched, QEvent *e)
 EventProxy (QObjectBinding *watch, KJS::Interpreter *interpreter)
bool isFiltered (QEvent::Type t) const
void removeFilter (QEvent::Type t)
 ~EventProxy ()

Protected Member Functions

bool callHandler (QEvent *e)

Detailed Description

Filters events for a QObject and forwards them to a JS handler.

Author:
Richard Moore, rich@kde.org

Definition at line 44 of file eventproxy.h.


Constructor & Destructor Documentation

EventProxy::EventProxy ( QObjectBinding *  watch,
KJS::Interpreter *  interpreter 
)

Definition at line 35 of file eventproxy.cpp.

EventProxy::~EventProxy (  ) 

Definition at line 41 of file eventproxy.cpp.


Member Function Documentation

void EventProxy::addFilter ( QEvent::Type  t  ) 

Adds an event type to those we forward to JS.

Definition at line 52 of file eventproxy.cpp.

bool EventProxy::callHandler ( QEvent *  e  )  [protected]

Definition at line 93 of file eventproxy.cpp.

bool EventProxy::eventFilter ( QObject *  watched,
QEvent *  e 
)

Reimplemented to forward events to JS.

Definition at line 84 of file eventproxy.cpp.

bool EventProxy::isFiltered ( QEvent::Type  t  )  const

Returns true iff we forward the event type to JS.

Definition at line 45 of file eventproxy.cpp.

void EventProxy::removeFilter ( QEvent::Type  t  ) 

Removes an event type from those we forward to JS.

If there are no event types left to forward then we self-destruct.

Definition at line 69 of file eventproxy.cpp.


The documentation for this class was generated from the following files:
  • eventproxy.h
  • eventproxy.cpp

kjsembed

Skip menu "kjsembed"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal