From 7d0df230ae55f81997fa8b1719f152ca9cd09ace Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" Date: Tue, 20 Jun 2000 05:12:32 +0000 Subject: [PATCH] Simplified nsILDAPMessageListener, and refactored much of the code in ldapSearch.cpp into nsLDAPChannel.cpp itself, using the simplified nsILDAPMessageListener class. This work is in preparation for pushing all threading code out of nsILDAPChannel down into nsILDAPConnection/Operation/Message. a=r=(not built) git-svn-id: svn://10.0.0.236/trunk@72632 18797224-902f-48f8-a5cc-f745e15eee43 --- .../base/public/nsILDAPMessageListener.idl | 28 ++----------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/mozilla/directory/xpcom/base/public/nsILDAPMessageListener.idl b/mozilla/directory/xpcom/base/public/nsILDAPMessageListener.idl index e9f2dfc6b39..ad5b685aab5 100644 --- a/mozilla/directory/xpcom/base/public/nsILDAPMessageListener.idl +++ b/mozilla/directory/xpcom/base/public/nsILDAPMessageListener.idl @@ -41,31 +41,9 @@ [scriptable, uuid(dc721d4b-3ff2-4387-a80c-5e29545f774a)] interface nsILDAPMessageListener : nsISupports { - // when ldap_result() returns, one of these routines is called, depending - // on the return value - - // return value = LDAP_RES_SEARCH_ENTRY - // - void onLDAPSearchEntry(in nsILDAPMessage aMessage); - - // return value = LDAP_RES_SEARCH_REFERENCE + // aMessage is the message that was returned, and aRetVal is the + // return code from ldap_result() // - void onLDAPSearchReference(in nsILDAPMessage aMessage); - - // return value = LDAP_RES_SEARCH_RESULT - // - void onLDAPSearchResult(in nsILDAPMessage aMessage); - - // return value of -1 - // - // XXX should have an arg? - // - void onLDAPError(); - - // return value of 0 - // - void onLDAPTimeout(); - - // XXX need to add other possible ldap_result return values + void onLDAPMessage(in nsILDAPMessage aMessage, in PRInt32 aRetVal); };