Back to index

lightning-sunbird  0.9+nobinonly
Public Slots | Public Member Functions | Private Attributes
nsEventQueueWatcher Class Reference

This class watches the Gecko nsIEventQueue. More...

#include <nsEventQueueWatcher.h>

Collaboration diagram for nsEventQueueWatcher:
Collaboration graph

List of all members.

Public Slots

void DataReceived ()

Public Member Functions

 nsEventQueueWatcher (nsIEventQueue *equeue, QObject *parent, const char *name=0)
 ~nsEventQueueWatcher ()

Private Attributes

QSocketNotifier * mNotifier
PRUint32 mRefCnt

Detailed Description

This class watches the Gecko nsIEventQueue.

If notificatiion comes it calls the processing method on the nsIEventQueue so that the event are event handled.

Definition at line 56 of file nsEventQueueWatcher.h.

Constructor & Destructor Documentation

nsEventQueueWatcher::nsEventQueueWatcher ( nsIEventQueue equeue,
QObject *  parent,
const char *  name = 0 

Definition at line 47 of file nsEventQueueWatcher.cpp.

    : QObject( parent, name ),


    mNotifier = new QSocketNotifier(mEventQueue->GetEventQueueSelectFD(),
                                    QSocketNotifier::Read, this);
    connect(mNotifier, SIGNAL(activated(int)),
            this, SLOT(DataReceived()) );

Here is the call graph for this function:

Definition at line 61 of file nsEventQueueWatcher.cpp.

Member Function Documentation

Definition at line 67 of file nsEventQueueWatcher.cpp.

    if (mEventQueue)

Here is the caller graph for this function:

Member Data Documentation

Definition at line 71 of file nsEventQueueWatcher.h.

QSocketNotifier* nsEventQueueWatcher::mNotifier [private]

Definition at line 72 of file nsEventQueueWatcher.h.

Definition at line 73 of file nsEventQueueWatcher.h.

The documentation for this class was generated from the following files: