Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes | Static Private Attributes
ipcClient Class Reference

#include <ipcClient.h>

Collaboration diagram for ipcClient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void Init ()
void Finalize ()
PRUint32 ID () const
void AddName (const char *name)
void DelName (const char *name)
PRBool HasName (const char *name) const
void AddTarget (const nsID &target)
void DelTarget (const nsID &target)
PRBool HasTarget (const nsID &target) const
const ipcStringNodeNames () const
const ipcIDNodeTargets () const
const char * PrimaryName () const
void SetExpectsSyncReply (PRBool val)
PRBool GetExpectsSyncReply () const

Private Attributes

PRUint32 mID
ipcStringList mNames
ipcIDList mTargets
PRBool mExpectsSyncReply

Static Private Attributes

static PRUint32 gLastID = 0

Detailed Description

Definition at line 58 of file ipcClient.h.


Member Function Documentation

void ipcClient::AddName ( const char *  name)

Definition at line 88 of file ipcClient.cpp.

{
    LOG(("adding client name: %s\n", name));

    if (HasName(name))
        return;

    mNames.Append(name);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 107 of file ipcClient.cpp.

{
    LOG(("adding client target\n"));

    if (HasTarget(target))
        return;

    mTargets.Append(target);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void ipcClient::DelName ( const char *  name)

Definition at line 99 of file ipcClient.cpp.

{
    LOG(("deleting client name: %s\n", name));

    mNames.FindAndDelete(name);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 118 of file ipcClient.cpp.

{
    LOG(("deleting client target\n"));

    //
    // cannot remove the IPCM target
    //
    if (!target.Equals(IPCM_TARGET))
        mTargets.FindAndDelete(target);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 74 of file ipcClient.cpp.

{
    IPC_NotifyClientDown(this);

    mNames.DeleteAll();
    mTargets.DeleteAll();

#if defined(XP_UNIX) || defined(XP_OS2)
    mInMsg.Reset();
    mOutMsgQ.DeleteAll();
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 82 of file ipcClient.h.

{ return mExpectsSyncReply; }

Here is the caller graph for this function:

PRBool ipcClient::HasName ( const char *  name) const [inline]

Definition at line 68 of file ipcClient.h.

{ return mNames.Find(name) != NULL; }

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool ipcClient::HasTarget ( const nsID target) const [inline]

Definition at line 72 of file ipcClient.h.

{ return mTargets.Find(target) != NULL; }

Here is the call graph for this function:

Here is the caller graph for this function:

PRUint32 ipcClient::ID ( ) const [inline]

Definition at line 64 of file ipcClient.h.

{ return mID; }

Here is the caller graph for this function:

Definition at line 58 of file ipcClient.cpp.

{
    mID = ++gLastID;

    // every client must be able to handle IPCM messages.
    mTargets.Append(IPCM_TARGET);

    // although it is tempting to fire off the NotifyClientUp event at this
    // time, we must wait until the client sends us a CLIENT_HELLO event.
    // see ipcCommandModule::OnClientHello.
}

Here is the call graph for this function:

Here is the caller graph for this function:

const ipcStringNode* ipcClient::Names ( ) const [inline]

Definition at line 75 of file ipcClient.h.

{ return mNames.First(); }

Here is the call graph for this function:

Here is the caller graph for this function:

const char* ipcClient::PrimaryName ( ) const [inline]

Definition at line 79 of file ipcClient.h.

{ return mNames.First() ? mNames.First()->Value() : NULL; }

Here is the call graph for this function:

Definition at line 81 of file ipcClient.h.

Here is the caller graph for this function:

const ipcIDNode* ipcClient::Targets ( ) const [inline]

Definition at line 76 of file ipcClient.h.

{ return mTargets.First(); }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

PRUint32 ipcClient::gLastID = 0 [static, private]

Definition at line 115 of file ipcClient.h.

Definition at line 120 of file ipcClient.h.

Definition at line 117 of file ipcClient.h.

Definition at line 118 of file ipcClient.h.

Definition at line 119 of file ipcClient.h.


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