]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPModDNRequest.h
some changes to make the library working with gcc 3.0 (mostly namespace
[openldap] / contrib / ldapc++ / src / LDAPModDNRequest.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_MOD_DN_REQUEST_H
7 #define LDAP_MOD_DN_REQUEST_H
8
9 #include <LDAPRequest.h>
10
11 class LDAPModDNRequest : LDAPRequest {
12
13     public:
14         LDAPModDNRequest(const LDAPModDNRequest& req); 
15         LDAPModDNRequest(const std::string& dn, const std::string& newRDN,
16                 bool deleteOld, const std::string& newParentDN,
17                 LDAPAsynConnection *connect, const LDAPConstraints *cons,
18                 bool isReferral=false, const LDAPRequest* parent=0); 
19         virtual ~LDAPModDNRequest(); 
20         
21         virtual LDAPMessageQueue* sendRequest(); 
22         virtual LDAPRequest* followReferral(LDAPMsg*  urls);
23     
24     private:
25         std::string m_dn;
26         std::string m_newRDN;
27         std::string m_newParentDN;
28         bool m_deleteOld;
29 };    
30
31 #endif // LDAP_MOD_DN_REQUEST_H
32