]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPSearchRequest.h
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / src / LDAPSearchRequest.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_SEARCH_REQUEST_H
7 #define LDAP_SEARCH_REQUEST_H
8
9 #include <queue>
10 #include "LDAPRequest.h"
11
12 class LDAPSearchReference;
13 class LDAPReferral;
14 class LDAPUrl;
15
16 class LDAPSearchRequest : public LDAPRequest{ 
17     private :
18         const char *m_base;
19         int m_scope;
20         const char *m_filter;
21         char **m_attrs;
22
23         //no default constructor
24         LDAPSearchRequest();
25
26     public :
27         LDAPSearchRequest(const LDAPSearchRequest& req);
28
29         LDAPSearchRequest(const char *base, int scope, const char* filter,
30                           char **attrs, const LDAPAsynConnection *connect,
31                           const LDAPConstraints* cons, bool isReferral=false);
32         virtual ~LDAPSearchRequest();        
33         virtual LDAPMessageQueue* sendRequest();
34         virtual LDAPRequest* followReferral(LDAPUrlList *ref);
35 };
36
37 #endif //LDAP_SEARCH_REQUEST_H