xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPModDNRequest.h (revision 7330f729ccf0bd976a06f95fad452fe774fc7fd1)
1 /*	$NetBSD: LDAPModDNRequest.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_MOD_DN_REQUEST_H
10 #define LDAP_MOD_DN_REQUEST_H
11 
12 #include <LDAPRequest.h>
13 
14 class LDAPModDNRequest : LDAPRequest {
15 
16     public:
17         LDAPModDNRequest(const LDAPModDNRequest& req);
18         LDAPModDNRequest(const std::string& dn, const std::string& newRDN,
19                 bool deleteOld, const std::string& newParentDN,
20                 LDAPAsynConnection *connect, const LDAPConstraints *cons,
21                 bool isReferral=false, const LDAPRequest* parent=0);
22         virtual ~LDAPModDNRequest();
23 
24         virtual LDAPMessageQueue* sendRequest();
25         virtual LDAPRequest* followReferral(LDAPMsg*  urls);
26 
27     private:
28         std::string m_dn;
29         std::string m_newRDN;
30         std::string m_newParentDN;
31         bool m_deleteOld;
32 };
33 
34 #endif // LDAP_MOD_DN_REQUEST_H
35 
36