Back to index

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

List of all members.

Public Member Functions

 DConnectInvokeCompletion (const DConnectInvoke *invoke)
 ~DConnectInvokeCompletion ()
void OnResponseAvailable (PRUint32 sender, const DConnectOp *op, PRUint32 opLen)
PRBool IsPending () const
nsresult GetResult () const
const PRUint8Params () const
PRUint32 ParamsLen () const
const DConnectInvokeReplyReply () const
 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)
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

Private Attributes

DConnectInvokeReplymReply
PRUint32 mParamsLen

Detailed Description

Definition at line 714 of file ipcDConnectService.cpp.


Constructor & Destructor Documentation

Definition at line 717 of file ipcDConnectService.cpp.

Definition at line 723 of file ipcDConnectService.cpp.

{ if (mReply) free(mReply); }

Member Function Documentation

Definition at line 737 of file ipcDConnectService.cpp.

{ return mReply->result; }

Here is the caller graph for this function:

Definition at line 736 of file ipcDConnectService.cpp.

{ return mReply == nsnull; }

Here is the caller graph for this function:

DConnectCompletion::NS_IMETHOD_ ( nsrefcnt  ) [inline, inherited]

Definition at line 689 of file ipcDConnectService.cpp.

{ return 1; }
DConnectCompletion::NS_IMETHOD_ ( nsrefcnt  ) [inline, inherited]

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]
Parameters:
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, inherited]

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);
    else
      gDConnect->OnMessageAvailable(aSenderID, aTarget, aData, aDataLen);
    return NS_OK;
  }

Here is the call graph for this function:

void DConnectInvokeCompletion::OnResponseAvailable ( PRUint32  sender,
const DConnectOp op,
PRUint32  opLen 
) [inline, virtual]

Implements DConnectCompletion.

Definition at line 725 of file ipcDConnectService.cpp.

  {
    mReply = (DConnectInvokeReply *) malloc(opLen);
    if (!mReply)
      return; // out of memory
    memcpy(mReply, op, opLen);

    // the length in bytes of the parameter blob
    mParamsLen = opLen - sizeof(*mReply);
  }

Here is the call graph for this function:

Definition at line 739 of file ipcDConnectService.cpp.

{ return (const PRUint8 *) (mReply + 1); }

Here is the caller graph for this function:

Definition at line 740 of file ipcDConnectService.cpp.

{ return mParamsLen; }

Here is the caller graph for this function:

NS_IMETHOD DConnectCompletion::QueryInterface ( const nsIID aIID,
void **  aInstancePtr 
) [inherited]

Definition at line 742 of file ipcDConnectService.cpp.

{ return mReply; }

Member Data Documentation

Definition at line 746 of file ipcDConnectService.cpp.

Definition at line 745 of file ipcDConnectService.cpp.

Definition at line 708 of file ipcDConnectService.cpp.


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