Back to index

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

List of all members.

Public Member Functions

 DConnectCompletion (PRUint32 requestIndex)
 NS_IMETHOD_ (nsrefcnt) AddRef()
 NS_IMETHOD_ (nsrefcnt) Release()
NS_IMETHOD QueryInterface (const nsIID &aIID, void **aInstancePtr)
NS_IMETHOD OnMessageAvailable (PRUint32 aSenderID, const nsID &aTarget, const PRUint8 *aData, PRUint32 aDataLen)
virtual void OnResponseAvailable (PRUint32 sender, const DConnectOp *op, PRUint32 opLen)=0
void onMessageAvailable (in unsigned long aSenderID, in nsIDRef aTarget,[array, const, size_is(aDataLen)] in octet aData, in unsigned long aDataLen)

Protected Attributes

PRUint32 mRequestIndex

Detailed Description

Definition at line 681 of file ipcDConnectService.cpp.

Constructor & Destructor Documentation

Definition at line 684 of file ipcDConnectService.cpp.

    : mRequestIndex(requestIndex)

Member Function Documentation

Definition at line 689 of file ipcDConnectService.cpp.

{ return 1; }

Definition at line 690 of file ipcDConnectService.cpp.

{ return 1; }
void ipcIMessageObserver::onMessageAvailable ( in unsigned long  aSenderID,
in nsIDRef  aTarget,
[array, const, size_is(aDataLen)] in octet  aData,
in unsigned long  aDataLen 
) [inherited]
aSenderIDthe client id of the sender of this message. if sent by the daemon (or a deamon module), then this will have a value of 0.
aTargetthe target of the message, corresponding to the target this observer was registered under. this parameter is passed to allow an observer instance to receive messages for more than one target.
aDatathe data of the message.
aDataLenthe data length of the message.
NS_IMETHOD DConnectCompletion::OnMessageAvailable ( PRUint32  aSenderID,
const nsID aTarget,
const PRUint8 aData,
PRUint32  aDataLen 
) [inline]

Definition at line 694 of file ipcDConnectService.cpp.

    const DConnectOp *op = (const DConnectOp *) aData;
    if ((aDataLen >= sizeof(DConnectOp)) && (op->request_index == mRequestIndex))
      OnResponseAvailable(aSenderID, op, aDataLen);
      gDConnect->OnMessageAvailable(aSenderID, aTarget, aData, aDataLen);
    return NS_OK;

Here is the call graph for this function:

virtual void DConnectCompletion::OnResponseAvailable ( PRUint32  sender,
const DConnectOp op,
PRUint32  opLen 
) [pure virtual]

Implemented in DConnectSetupCompletion, and DConnectInvokeCompletion.

Here is the caller graph for this function:

NS_IMETHOD DConnectCompletion::QueryInterface ( const nsIID aIID,
void **  aInstancePtr 

Member Data Documentation

Definition at line 708 of file ipcDConnectService.cpp.

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