Back to index

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

#include <nsLDAPSyncQuery.h>

Inheritance diagram for nsLDAPSyncQuery:
Inheritance graph
[legend]
Collaboration diagram for nsLDAPSyncQuery:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSILDAPMESSAGELISTENER
NS_DECL_NSILDAPSYNCQUERY 
nsLDAPSyncQuery ()
virtual ~nsLDAPSyncQuery ()
wstring getQueryResults (in nsILDAPURL aServerURL, in unsigned long aProtocolVersion)
 getQueryResults
void onLDAPMessage (in nsILDAPMessage aMessage)
 Messages received are passed back via this function.
void onLDAPInit (in nsILDAPConnection aConn, in nsresult aStatus)
 Notify the listener that the Init has completed, passing in the results from the connection initialization.

Protected Member Functions

nsresult InitConnection ()
nsresult OnLDAPBind (nsILDAPMessage *aMessage)
nsresult OnLDAPSearchEntry (nsILDAPMessage *aMessage)
nsresult OnLDAPSearchResult (nsILDAPMessage *aMessage)
nsresult StartLDAPSearch ()
void FinishLDAPQuery ()

Protected Attributes

nsCOMPtr< nsILDAPConnectionmConnection
nsCOMPtr< nsILDAPOperationmOperation
nsCOMPtr< nsILDAPURLmServerURL
PRBool mFinished
PRUint32 mAttrCount
char ** mAttrs
nsString mResults
PRUint32 mProtocolVersion

Detailed Description

Definition at line 54 of file nsLDAPSyncQuery.h.


Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSILDAPMESSAGELISTENER NS_DECL_NSILDAPSYNCQUERY nsLDAPSyncQuery::nsLDAPSyncQuery ( )
virtual nsLDAPSyncQuery::~nsLDAPSyncQuery ( ) [virtual]

Member Function Documentation

wstring nsILDAPSyncQuery::getQueryResults ( in nsILDAPURL  aServerURL,
in unsigned long  aProtocolVersion 
) [inherited]

getQueryResults

Create a new LDAP connection do a synchronous LDAP search and return the results.

Parameters:
aServerURL- LDAP URL with parameters to a LDAP seach ("ldap://host/base?attributes?one/sub?filter")
aProtocolVersion- LDAP protocol version to use for connection (nsILDAPConnection.idl has symbolic constants)
Returns:
results

Notify the listener that the Init has completed, passing in the results from the connection initialization.

The Reason for this is to allow us to do asynchronous DNS lookups, preresolving hostnames.

  • aConn The LDAP connection in question
  • aStatus The result from the LDAP connection init

Messages received are passed back via this function.

  • aMessage The message that was returned, NULL if none was.

XXX semantics of NULL?


Member Data Documentation

Definition at line 73 of file nsLDAPSyncQuery.h.

char** nsLDAPSyncQuery::mAttrs [protected]

Definition at line 74 of file nsLDAPSyncQuery.h.

Definition at line 69 of file nsLDAPSyncQuery.h.

Definition at line 72 of file nsLDAPSyncQuery.h.

Definition at line 70 of file nsLDAPSyncQuery.h.

Definition at line 76 of file nsLDAPSyncQuery.h.

Definition at line 75 of file nsLDAPSyncQuery.h.

Definition at line 71 of file nsLDAPSyncQuery.h.


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