xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPSearchRequest.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1 /*	$NetBSD: LDAPSearchRequest.h,v 1.3 2021/08/14 16:14:49 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2021 The OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 #ifndef LDAP_SEARCH_REQUEST_H
10 #define LDAP_SEARCH_REQUEST_H
11 
12 #include <queue>
13 #include <LDAPRequest.h>
14 
15 class LDAPSearchReference;
16 class LDAPReferral;
17 class LDAPUrl;
18 
19 class LDAPSearchRequest : public LDAPRequest{
20 
21     public :
22         LDAPSearchRequest(const LDAPSearchRequest& req);
23 
24         LDAPSearchRequest(const std::string& base, int scope, const std::string& filter,
25                           const StringList& attrs, bool attrsOnly,
26                           LDAPAsynConnection *connect,
27                           const LDAPConstraints* cons, bool isReferral=false,
28                           const LDAPRequest* parent=0);
29         virtual ~LDAPSearchRequest();
30         virtual LDAPMessageQueue* sendRequest();
31         virtual LDAPRequest* followReferral(LDAPMsg* ref);
32         virtual bool equals(const LDAPRequest* req) const;
33 
34     private :
35         std::string m_base;
36         int m_scope;
37         std::string m_filter;
38         StringList m_attrs;
39         bool m_attrsOnly;
40 
41         //no default constructor
LDAPSearchRequest()42         LDAPSearchRequest(){};
43 };
44 
45 #endif //LDAP_SEARCH_REQUEST_H
46