Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsLDAPServiceEntry Class Reference

#include <nsLDAPService.h>

Collaboration diagram for nsLDAPServiceEntry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsLDAPServiceEntry ()
virtual ~nsLDAPServiceEntry ()
PRBool Init ()
PRUint32 GetLeases ()
void IncrementLeases ()
PRBool DecrementLeases ()
PRTime GetTimestamp ()
void SetTimestamp ()
already_AddRefed< nsILDAPServerGetServer ()
PRBool SetServer (nsILDAPServer *aServer)
already_AddRefed
< nsILDAPConnection
GetConnection ()
void SetConnection (nsILDAPConnection *aConnection)
already_AddRefed< nsILDAPMessageGetMessage ()
void SetMessage (nsILDAPMessage *aMessage)
already_AddRefed
< nsILDAPMessageListener
PopListener ()
PRBool PushListener (nsILDAPMessageListener *)
PRBool IsRebinding ()
void SetRebinding (PRBool)
PRBool DeleteEntry ()

Protected Attributes

PRUint32 mLeases
PRTime mTimestamp
PRBool mDelete
PRBool mRebinding
nsCOMPtr< nsILDAPServermServer
nsCOMPtr< nsILDAPConnectionmConnection
nsCOMPtr< nsILDAPMessagemMessage
nsCOMArray
< nsILDAPMessageListener
mListeners

Detailed Description

Definition at line 65 of file nsLDAPService.h.


Constructor & Destructor Documentation

Definition at line 63 of file nsLDAPService.cpp.

Definition at line 74 of file nsLDAPService.cpp.

{
}

Member Function Documentation

Definition at line 105 of file nsLDAPService.cpp.

{
    if (!mLeases) {
        return PR_FALSE;
    }
    mLeases--;

    return PR_TRUE;
}

Definition at line 209 of file nsLDAPService.cpp.

{
    mDelete = PR_TRUE;

    return PR_TRUE;
}

Definition at line 140 of file nsLDAPService.cpp.

{
    nsILDAPConnection *conn;

    NS_IF_ADDREF(conn = mConnection);
    return conn;
}

Here is the caller graph for this function:

Definition at line 114 of file nsLDAPService.cpp.

{
    return mLeases;
}

Definition at line 154 of file nsLDAPService.cpp.

Here is the caller graph for this function:

Definition at line 121 of file nsLDAPService.cpp.

{
    nsILDAPServer *server;

    NS_IF_ADDREF(server = mServer);
    return server;
}

Here is the caller graph for this function:

Definition at line 88 of file nsLDAPService.cpp.

{
    return mTimestamp;
}

Definition at line 101 of file nsLDAPService.cpp.

{
    mLeases++;
}

Definition at line 80 of file nsLDAPService.cpp.

{
    return PR_TRUE;
}

Definition at line 197 of file nsLDAPService.cpp.

{
    return mRebinding;
}

Definition at line 171 of file nsLDAPService.cpp.

{
    nsILDAPMessageListener *listener;
    PRInt32 count = mListeners.Count();
    if (!count) {
        return 0;
    }

    listener = mListeners[0];
    NS_ADDREF(listener); // keep it alive
    mListeners.RemoveObjectAt(0);

    return listener;
}

Here is the call graph for this function:

Definition at line 185 of file nsLDAPService.cpp.

{
    PRBool ret;
    ret = mListeners.InsertObjectAt(listener, mListeners.Count());

    return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 147 of file nsLDAPService.cpp.

{
    mConnection = aConnection;
}

Here is the caller graph for this function:

Definition at line 161 of file nsLDAPService.cpp.

{
    mMessage = aMessage;
}

Definition at line 201 of file nsLDAPService.cpp.

{
    mRebinding = aState;
}

Definition at line 128 of file nsLDAPService.cpp.

{
    if (!aServer) {
        return PR_FALSE;
    }
    mServer = aServer;

    return PR_TRUE;
}

Definition at line 92 of file nsLDAPService.cpp.

{
    mTimestamp = PR_Now();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 103 of file nsLDAPService.h.

Definition at line 99 of file nsLDAPService.h.

Definition at line 97 of file nsLDAPService.h.

Definition at line 107 of file nsLDAPService.h.

Definition at line 104 of file nsLDAPService.h.

Definition at line 100 of file nsLDAPService.h.

Definition at line 102 of file nsLDAPService.h.

Definition at line 98 of file nsLDAPService.h.


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