xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPExtRequest.h (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1 /*	$NetBSD: LDAPExtRequest.h,v 1.1.1.3 2014/05/28 09:58:26 tron Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2014 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