ldapsdk  0.0.1
LDAPSearchRequest.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 #ifndef LDAP_SEARCH_REQUEST_H
8 #define LDAP_SEARCH_REQUEST_H
9 
10 #include <queue>
11 #include <LDAPRequest.h>
12 
14 class LDAPReferral;
15 class LDAPUrl;
16 
18 
19  public :
21 
22  LDAPSearchRequest(const std::string& base, int scope, const std::string& filter,
23  const StringList& attrs, bool attrsOnly,
24  LDAPAsynConnection *connect,
25  const LDAPConstraints* cons, bool isReferral=false,
26  const LDAPRequest* parent=0);
27  virtual ~LDAPSearchRequest();
28  virtual LDAPMessageQueue* sendRequest();
29  virtual LDAPRequest* followReferral(LDAPMsg* ref);
30  virtual bool equals(const LDAPRequest* req) const;
31 
32  private :
33  std::string m_base;
34  int m_scope;
35  std::string m_filter;
36  StringList m_attrs;
37  bool m_attrsOnly;
38 
39  //no default constructor
41 };
42 
43 #endif //LDAP_SEARCH_REQUEST_H
virtual LDAPRequest * followReferral(LDAPMsg *ref)
Definition: LDAPSearchRequest.cpp:89
This class is created for the asynchronous LDAP-operations.
Definition: LDAPMessageQueue.h:27
virtual ~LDAPSearchRequest()
Definition: LDAPSearchRequest.cpp:56
This class represents any type of LDAP- Message returned from the server.
Definition: LDAPMessage.h:23
bool isReferral() const
Definition: LDAPRequest.cpp:111
For internal use only.
Definition: LDAPRequest.h:25
This class represents an asynchronous connection to an LDAP-Server.
Definition: LDAPAsynConnection.h:45
This class is used to represent Continuation References that were returned during a SEARCH-Operation...
Definition: LDAPSearchReference.h:21
virtual bool equals(const LDAPRequest *req) const
Compare this request with another on.
Definition: LDAPSearchRequest.cpp:124
This class is used to analyze and store LDAP-Urls as returned by a LDAP-Server as Referrals and Searc...
Definition: LDAPUrl.h:22
Container class to store multiple string-objects.
Definition: StringList.h:15
virtual LDAPMessageQueue * sendRequest()
This method encodes the request an calls the apprpriate functions of the C-API to send the Request to...
Definition: LDAPSearchRequest.cpp:60
Definition: LDAPSearchRequest.h:17
This class represents some options that can be set for a LDAPConnection operation.
Definition: LDAPConstraints.h:27