Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsSocketEvent Class Reference
Inheritance diagram for nsSocketEvent:
Inheritance graph
[legend]
Collaboration diagram for nsSocketEvent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsSocketEvent (nsSocketTransport *transport, PRUint32 type, nsresult status=NS_OK, nsISupports *param=nsnull)
 HandleEvent (PLEvent *event)
 DestroyEvent (PLEvent *event)

Public Attributes

PRCList link
PLHandleEventProc handler
PLDestroyEventProc destructor
voidowner
voidsynchronousResult
PRLocklock
PRCondVarcondVar
PRBool handled

Private Attributes

PRUint32 mType
nsresult mStatus
nsCOMPtr< nsISupports > mParam

Detailed Description

Definition at line 81 of file nsSocketTransport2.cpp.


Constructor & Destructor Documentation

nsSocketEvent::nsSocketEvent ( nsSocketTransport transport,
PRUint32  type,
nsresult  status = NS_OK,
nsISupports *  param = nsnull 
) [inline]

Definition at line 84 of file nsSocketTransport2.cpp.

        : mType(type)
        , mStatus(status)
        , mParam(param)
    {
        NS_ADDREF(transport);
        PL_InitEvent(this, transport, HandleEvent, DestroyEvent);
    }

Here is the call graph for this function:


Member Function Documentation

nsSocketEvent::DestroyEvent ( PLEvent event) [inline]

Definition at line 104 of file nsSocketTransport2.cpp.

    {
        nsSocketTransport *trans = (nsSocketTransport *) event->owner; 
        NS_RELEASE(trans);
        delete (nsSocketEvent *) event;
    }

Here is the caller graph for this function:

nsSocketEvent::HandleEvent ( PLEvent event) [inline]

Definition at line 95 of file nsSocketTransport2.cpp.

    {
        nsSocketTransport *trans = (nsSocketTransport *) event->owner; 
        nsSocketEvent *se = (nsSocketEvent *) event;
        trans->OnSocketEvent(se->mType, se->mStatus, se->mParam);
        return nsnull;
    }

Here is the call graph for this function:

Here is the caller graph for this function:


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.

nsCOMPtr<nsISupports> nsSocketEvent::mParam [private]

Definition at line 114 of file nsSocketTransport2.cpp.

Definition at line 113 of file nsSocketTransport2.cpp.

Definition at line 112 of file nsSocketTransport2.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: