2000-10-03 14:50:44 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_EXT_RESULT_H
|
|
|
|
|
#define LDAP_EXT_RESULT_H
|
|
|
|
|
|
|
|
|
|
#include <ldap.h>
|
|
|
|
|
|
2001-02-19 06:34:28 -05:00
|
|
|
#include "LDAPResult.h"
|
|
|
|
|
|
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.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
const string& getResponseOid() const;
|
2001-02-19 06:34:28 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @returns If the result contained data this method will return
|
|
|
|
|
* the data to the caller as a string.
|
|
|
|
|
*/
|
2000-10-03 14:50:44 -04:00
|
|
|
const string& getResponse() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
string m_oid;
|
|
|
|
|
string m_data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // LDAP_EXT_RESULT_H
|