Back to index

openldap  2.4.31
LDAPModDNRequest.h
Go to the documentation of this file.
00001 // $OpenLDAP$
00002 /*
00003  * Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
00004  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
00005  */
00006 
00007 #ifndef LDAP_MOD_DN_REQUEST_H
00008 #define LDAP_MOD_DN_REQUEST_H
00009 
00010 #include <LDAPRequest.h>
00011 
00012 class LDAPModDNRequest : LDAPRequest {
00013 
00014     public:
00015         LDAPModDNRequest(const LDAPModDNRequest& req); 
00016         LDAPModDNRequest(const std::string& dn, const std::string& newRDN,
00017                 bool deleteOld, const std::string& newParentDN,
00018                 LDAPAsynConnection *connect, const LDAPConstraints *cons,
00019                 bool isReferral=false, const LDAPRequest* parent=0); 
00020         virtual ~LDAPModDNRequest(); 
00021         
00022         virtual LDAPMessageQueue* sendRequest(); 
00023         virtual LDAPRequest* followReferral(LDAPMsg*  urls);
00024     
00025     private:
00026         std::string m_dn;
00027         std::string m_newRDN;
00028         std::string m_newParentDN;
00029         bool m_deleteOld;
00030 };    
00031 
00032 #endif // LDAP_MOD_DN_REQUEST_H
00033