Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsTransportStatusEvent Class Reference
Inheritance diagram for nsTransportStatusEvent:
Inheritance graph
Collaboration diagram for nsTransportStatusEvent:
Collaboration graph

List of all members.

Public Member Functions

 nsTransportStatusEvent (nsTransportEventSinkProxy *proxy, nsITransport *transport, nsresult status, PRUint64 progress, PRUint64 progressMax)
 ~nsTransportStatusEvent ()
 PR_STATIC_CALLBACK (void *) HandleEvent(PLEvent *event)
 PR_STATIC_CALLBACK (void) DestroyEvent(PLEvent *event)

Public Attributes

nsCOMPtr< nsITransportmTransport
nsresult mStatus
PRUint64 mProgress
PRUint64 mProgressMax
PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
PRBool handled

Detailed Description

Definition at line 84 of file nsTransportUtils.cpp.

Constructor & Destructor Documentation

nsTransportStatusEvent::nsTransportStatusEvent ( nsTransportEventSinkProxy proxy,
nsITransport transport,
nsresult  status,
PRUint64  progress,
PRUint64  progressMax 
) [inline]

Definition at line 87 of file nsTransportUtils.cpp.

        : mTransport(transport)
        , mStatus(status)
        , mProgress(progress)
        , mProgressMax(progressMax)
        PL_InitEvent(this, proxy, HandleEvent, DestroyEvent);

Here is the call graph for this function:

Definition at line 101 of file nsTransportUtils.cpp.

Member Function Documentation

Definition at line 108 of file nsTransportUtils.cpp.

        nsTransportStatusEvent *self = (nsTransportStatusEvent *) event;
        nsTransportEventSinkProxy *proxy = (nsTransportEventSinkProxy *) event->owner;

        // since this event is being handled, we need to clear the proxy's ref.
        // if not coalescing all, then last event may not equal self!
            nsAutoLock lock(proxy->mLock);
            if (proxy->mLastEvent == self)
                proxy->mLastEvent = nsnull;

        return nsnull;

Definition at line 128 of file nsTransportUtils.cpp.

        delete (nsTransportStatusEvent *) event;

Member Data Documentation

PRCondVar * PLEvent::condVar [inherited]

Definition at line 514 of file nsIEventQueueService.idl.

Definition at line 510 of file nsIEventQueueService.idl.

PRBool PLEvent::handled [inherited]

Definition at line 515 of file nsIEventQueueService.idl.

Definition at line 509 of file nsIEventQueueService.idl.

PRCList PLEvent::link [inherited]

Definition at line 508 of file nsIEventQueueService.idl.

PRLock * PLEvent::lock [inherited]

Definition at line 513 of file nsIEventQueueService.idl.

Definition at line 136 of file nsTransportUtils.cpp.

Definition at line 137 of file nsTransportUtils.cpp.

Definition at line 135 of file nsTransportUtils.cpp.

Definition at line 134 of file nsTransportUtils.cpp.

void * PLEvent::owner [inherited]

Definition at line 511 of file nsIEventQueueService.idl.

Definition at line 512 of file nsIEventQueueService.idl.

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