Back to index

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

List of all members.

Public Member Functions

 DConnectSetupCompletion (const DConnectSetup *setup)
void OnResponseAvailable (PRUint32 sender, const DConnectOp *op, PRUint32 opLen)
nsresult GetStub (void **aInstancePtr)
 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

const DConnectSetupmSetup
nsresult mStatus
nsRefPtr< DConnectStubmStub

Detailed Description

Definition at line 1241 of file ipcDConnectService.cpp.

Constructor & Destructor Documentation

Definition at line 1244 of file ipcDConnectService.cpp.

Member Function Documentation

nsresult DConnectSetupCompletion::GetStub ( void **  aInstancePtr) [inline]

Definition at line 1277 of file ipcDConnectService.cpp.

    if (NS_FAILED(mStatus))
      return mStatus;

    DConnectStub *stub = mStub;
    *aInstancePtr = stub;
    return NS_OK;

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

Here is the call graph for this function:

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

Implements DConnectCompletion.

Definition at line 1250 of file ipcDConnectService.cpp.

    if (op->opcode_major != DCON_OP_SETUP_REPLY)
      NS_NOTREACHED("unexpected response");
      mStatus = NS_ERROR_UNEXPECTED;

    const DConnectSetupReply *reply = (const DConnectSetupReply *) op;

    LOG(("got SETUP_REPLY: status=%x instance=%p\n", reply->status, reply->instance));

    if (NS_FAILED(reply->status))
      NS_ASSERTION(!reply->instance, "non-null instance on failure");
      mStatus = reply->status;
      nsresult rv = CreateStub(mSetup->iid, sender, reply->instance,
      if (NS_FAILED(rv))
        mStatus = rv;

Here is the call graph for this function:

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

Member Data Documentation

Definition at line 708 of file ipcDConnectService.cpp.

Definition at line 1289 of file ipcDConnectService.cpp.

Definition at line 1290 of file ipcDConnectService.cpp.

Definition at line 1291 of file ipcDConnectService.cpp.

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