2008-03-28 19:05:10 +08:00
|
|
|
// $OpenLDAP$
|
2000-09-02 02:46:32 +08:00
|
|
|
/*
|
2014-01-25 21:21:25 +08:00
|
|
|
* Copyright 2000-2014 The OpenLDAP Foundation, All Rights Reserved.
|
2000-09-02 02:46:32 +08:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_MODIFICATION_H
|
|
|
|
#define LDAP_MODIFICATION_H
|
|
|
|
|
|
|
|
#include <ldap.h>
|
2001-03-15 19:07:58 +08:00
|
|
|
#include <LDAPAttribute.h>
|
2000-09-02 02:46:32 +08:00
|
|
|
|
|
|
|
class LDAPModification{
|
|
|
|
public:
|
|
|
|
enum mod_op {OP_ADD, OP_DELETE, OP_REPLACE};
|
|
|
|
|
|
|
|
LDAPModification(const LDAPAttribute& attr, mod_op op);
|
|
|
|
LDAPMod *toLDAPMod() const;
|
|
|
|
|
2011-06-15 21:28:55 +08:00
|
|
|
const LDAPAttribute* getAttribute() const;
|
|
|
|
mod_op getOperation() const;
|
|
|
|
|
2000-09-02 02:46:32 +08:00
|
|
|
private:
|
|
|
|
LDAPAttribute m_attr;
|
|
|
|
mod_op m_mod_op;
|
|
|
|
|
|
|
|
};
|
|
|
|
#endif //LDAP_MODIFICATION_H
|
|
|
|
|