2008-03-28 07:05:10 -04:00
|
|
|
// $OpenLDAP$
|
2000-10-03 14:50:44 -04:00
|
|
|
/*
|
2012-01-01 10:07:45 -05:00
|
|
|
* Copyright 2000-2012 The OpenLDAP Foundation, All Rights Reserved.
|
2000-10-03 14:50:44 -04:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_EXT_RESULT_H
|
|
|
|
|
#define LDAP_EXT_RESULT_H
|
|
|
|
|
|
|
|
|
|
#include <ldap.h>
|
|
|
|
|
|
2001-03-15 06:07:58 -05:00
|
|
|
#include <LDAPResult.h>
|
2001-02-19 06:34:28 -05:00
|
|
|
|
2000-10-03 14:50:44 -04:00
|
|
|
class LDAPRequest;
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* Object of this class are created by the LDAPMsg::create method if
|
|
|
|
|
* results for an Extended Operation were returned by a LDAP server.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
class LDAPExtResult : public LDAPResult {
|
|
|
|
|
public :
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* Constructor that creates an LDAPExtResult-object from the C-API
|
|
|
|
|
* structures
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
LDAPExtResult(const LDAPRequest* req, LDAPMessage* msg);
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The Destructor
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
virtual ~LDAPExtResult();
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
/**
|
|
|
|
|
* @returns The OID of the Extended Operation that has returned
|
|
|
|
|
* this result.
|
|
|
|
|
*/
|
2001-09-28 12:39:58 -04:00
|
|
|
const std::string& getResponseOid() const;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @returns If the result contained data this method will return
|
2001-09-28 12:39:58 -04:00
|
|
|
* the data to the caller as a std::string.
|
2001-02-19 06:34:28 -05:00
|
|
|
*/
|
2001-09-28 12:39:58 -04:00
|
|
|
const std::string& getResponse() const;
|
2000-10-03 14:50:44 -04:00
|
|
|
|
|
|
|
|
private:
|
2001-09-28 12:39:58 -04:00
|
|
|
std::string m_oid;
|
|
|
|
|
std::string m_data;
|
2000-10-03 14:50:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // LDAP_EXT_RESULT_H
|