diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:23:53 +0000 |
commit | c000cad09d0b54c455c99271bfb996c2dfe13073 (patch) | |
tree | e47ca809ed512d7fb43ec3d555753b1b658e9819 /contrib/ldapc++/src/LDAPSearchRequest.h | |
parent | Initial commit. (diff) | |
download | openldap-c000cad09d0b54c455c99271bfb996c2dfe13073.tar.xz openldap-c000cad09d0b54c455c99271bfb996c2dfe13073.zip |
Adding upstream version 2.4.47+dfsg.upstream/2.4.47+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'contrib/ldapc++/src/LDAPSearchRequest.h')
-rw-r--r-- | contrib/ldapc++/src/LDAPSearchRequest.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/ldapc++/src/LDAPSearchRequest.h b/contrib/ldapc++/src/LDAPSearchRequest.h new file mode 100644 index 0000000..7042e82 --- /dev/null +++ b/contrib/ldapc++/src/LDAPSearchRequest.h @@ -0,0 +1,43 @@ +// $OpenLDAP$ +/* + * Copyright 2000-2018 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ + +#ifndef LDAP_SEARCH_REQUEST_H +#define LDAP_SEARCH_REQUEST_H + +#include <queue> +#include <LDAPRequest.h> + +class LDAPSearchReference; +class LDAPReferral; +class LDAPUrl; + +class LDAPSearchRequest : public LDAPRequest{ + + public : + LDAPSearchRequest(const LDAPSearchRequest& req); + + LDAPSearchRequest(const std::string& base, int scope, const std::string& filter, + const StringList& attrs, bool attrsOnly, + LDAPAsynConnection *connect, + const LDAPConstraints* cons, bool isReferral=false, + const LDAPRequest* parent=0); + virtual ~LDAPSearchRequest(); + virtual LDAPMessageQueue* sendRequest(); + virtual LDAPRequest* followReferral(LDAPMsg* ref); + virtual bool equals(const LDAPRequest* req) const; + + private : + std::string m_base; + int m_scope; + std::string m_filter; + StringList m_attrs; + bool m_attrsOnly; + + //no default constructor + LDAPSearchRequest(){}; +}; + +#endif //LDAP_SEARCH_REQUEST_H |