1 /*	$NetBSD: LDAPModDNRequest.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $	*/
2 
3 // OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPModDNRequest.h,v 1.4.10.1 2008/04/14 23:09:26 quanah Exp
4 /*
5  * Copyright 2000, 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