xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPExtRequest.h (revision 7330f729ccf0bd976a06f95fad452fe774fc7fd1)
1 /*	$NetBSD: LDAPExtRequest.h,v 1.1.1.6 2019/08/08 13:31:09 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2019 The OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 #ifndef LDAP_EXT_REQUEST_H
10 #define LDAP_EXT_REQUEST_H
11 
12 #include <LDAPRequest.h>
13 
14 class LDAPExtRequest : LDAPRequest {
15 
16     public:
17         LDAPExtRequest(const LDAPExtRequest& req);
18         LDAPExtRequest(const std::string& oid, const std::string& data,
19                 LDAPAsynConnection *connect, const LDAPConstraints *cons,
20                 bool isReferral=false, const LDAPRequest* parent=0);
21         virtual ~LDAPExtRequest();
22         virtual LDAPMessageQueue* sendRequest();
23         virtual LDAPRequest* followReferral(LDAPMsg* urls);
24 
25     private:
26         std::string m_oid;
27         std::string m_data;
28 };
29 
30 #endif // LDAP_EXT_REQUEST_H
31