X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fldapc%2B%2B%2Fsrc%2FLDAPConstraints.h;h=9db3f3030258ba87d84f46e2600063f7027b3b4a;hb=0563d68c4779db0c82980466c9f9860abb0de0f8;hp=389624c71a68c68e3557ae0141fdd4ebce9050e2;hpb=c0dbaa736d8cb1c86a4a730e8c9b6942e0fdbb32;p=openldap diff --git a/contrib/ldapc++/src/LDAPConstraints.h b/contrib/ldapc++/src/LDAPConstraints.h index 389624c71a..9db3f30302 100644 --- a/contrib/ldapc++/src/LDAPConstraints.h +++ b/contrib/ldapc++/src/LDAPConstraints.h @@ -1,5 +1,6 @@ +// $OpenLDAP$ /* - * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. + * Copyright 2000-2014 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -25,32 +26,32 @@ */ class LDAPConstraints{ - public : + public : static const int DEREF_NEVER = 0x00; static const int DEREF_SEARCHING = 0x01; static const int DEREF_FINDING = 0x02; static const int DEREF_ALWAYS = 0x04; - //* Constructs a LDAPConstraints object with default values - LDAPConstraints(); + //* Constructs a LDAPConstraints object with default values + LDAPConstraints(); - //* Copy constructor - LDAPConstraints(const LDAPConstraints& c); + //* Copy constructor + LDAPConstraints(const LDAPConstraints& c); ~LDAPConstraints(); - - void setAliasDeref(int deref); + + void setAliasDeref(int deref); void setMaxTime(int t); - void setSizeLimit(int s); - void setReferralChase(bool rc); + void setSizeLimit(int s); + void setReferralChase(bool rc); void setHopLimit(int hop); void setReferralRebind(const LDAPRebind* rebind); void setServerControls(const LDAPControlSet* ctrls); void setClientControls(const LDAPControlSet* ctrls); - int getAliasDeref() const; + int getAliasDeref() const; int getMaxTime() const ; - int getSizeLimit() const; + int getSizeLimit() const; const LDAPRebind* getReferralRebind() const; const LDAPControlSet* getServerControls() const; const LDAPControlSet* getClientControls() const; @@ -63,20 +64,20 @@ class LDAPConstraints{ //*for internal use only timeval* getTimeoutStruct() const; - bool getReferralChase() const ; + bool getReferralChase() const ; int getHopLimit() const; - - private : + + private : int m_aliasDeref; //* max. time the server may spend for a search request - int m_maxTime; + int m_maxTime; + + //* max number of entries to return from a search request + int m_maxSize; - //* max number of entries to return from a search request - int m_maxSize; - - //* Flag for enabling automatic referral/reference chasing - bool m_referralChase; + //* Flag for enabling automatic referral/reference chasing + bool m_referralChase; //* HopLimit for referral chasing int m_HopLimit; @@ -87,11 +88,11 @@ class LDAPConstraints{ //* Object used to do bind for Referral chasing const LDAPRebind* m_refRebind; - //* List of Client Controls that should be used for each request - LDAPControlSet* m_clientControls; + //* List of Client Controls that should be used for each request + LDAPControlSet* m_clientControls; - //* List of Server Controls that should be used for each request - LDAPControlSet* m_serverControls; + //* List of Server Controls that should be used for each request + LDAPControlSet* m_serverControls; }; #endif //LDAP_CONSTRAINTS_H