KLDAP Library
#include <ldapcontrol.h>
Public Member Functions | |
LdapControl () | |
LdapControl (QString &oid, QByteArray &value, bool critical=false) | |
LdapControl (const LdapControl &that) | |
virtual | ~LdapControl () |
bool | critical () const |
QString | oid () const |
LdapControl & | operator= (const LdapControl &that) |
int | parsePageControl (QByteArray &cookie) const |
void | setControl (const QString &oid, const QByteArray &value, bool critical=false) |
void | setCritical (bool critical) |
void | setOid (const QString &oid) |
void | setValue (const QByteArray &value) |
QByteArray | value () const |
Static Public Member Functions | |
static LdapControl | createPageControl (int pagesize, const QByteArray &cookie=QByteArray()) |
static void | insert (LdapControls &list, const LdapControl &ctrl) |
Detailed Description
This class represents an LDAP Control.
Definition at line 39 of file ldapcontrol.h.
Constructor & Destructor Documentation
LdapControl::LdapControl | ( | ) |
Creates an empty control.
Definition at line 49 of file ldapcontrol.cpp.
LdapControl::LdapControl | ( | QString & | oid, |
QByteArray & | value, | ||
bool | critical = false |
||
) |
Creates a control with the given OID, value and criticality.
Definition at line 55 of file ldapcontrol.cpp.
|
virtual |
Destroys the control object.
Definition at line 78 of file ldapcontrol.cpp.
Member Function Documentation
|
static |
Creates a paging search control.
Definition at line 134 of file ldapcontrol.cpp.
bool LdapControl::critical | ( | ) | const |
Returns the control's criticality.
Definition at line 99 of file ldapcontrol.cpp.
|
static |
Inserts a unique control against a list of controls.
If the control already exists in the list is is updated, otherwise it is appended to the list.
- Parameters
-
list the current list of controls ctrl the control to insert
- Since
- 4.4
Definition at line 145 of file ldapcontrol.cpp.
QString LdapControl::oid | ( | ) | const |
Returns the control's OID.
Definition at line 89 of file ldapcontrol.cpp.
int LdapControl::parsePageControl | ( | QByteArray & | cookie | ) | const |
Parses a paging results control, which the server returned.
Puts the server's cookie into cookie
, and returns the estimated result set size. If the OID is not the page control's OID, or the value cannot be decoded, returns -1.
- Parameters
-
cookie the cookie to hold server's cookie
Definition at line 119 of file ldapcontrol.cpp.
void LdapControl::setControl | ( | const QString & | oid, |
const QByteArray & | value, | ||
bool | critical = false |
||
) |
Sets the control's OID, value and criticality.
Definition at line 82 of file ldapcontrol.cpp.
void LdapControl::setCritical | ( | bool | critical | ) |
Sets the control's criticality.
Definition at line 114 of file ldapcontrol.cpp.
void LdapControl::setOid | ( | const QString & | oid | ) |
Sets the control's OID.
Definition at line 104 of file ldapcontrol.cpp.
void LdapControl::setValue | ( | const QByteArray & | value | ) |
Sets the control's value.
Definition at line 109 of file ldapcontrol.cpp.
QByteArray LdapControl::value | ( | ) | const |
Returns the control's value.
Definition at line 94 of file ldapcontrol.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.