kabc
Ldif Class Reference
#include <ldif_p.h>
Public Member Functions | |
Ldif (const Ldif &that) | |
QString | attr () const |
bool | delOldRdn () const |
LdapDN | dn () const |
void | endLdif () |
EntryType | entryType () const |
bool | isCritical () const |
bool | isUrl () const |
uint | lineNumber () const |
int | modType () const |
QString | newRdn () const |
QString | newSuperior () const |
ParseValue | nextItem () |
QString | oid () const |
Ldif & | operator= (const Ldif &that) |
ParseValue | processLine () |
void | setLdif (const QByteArray &ldif) |
void | startParsing () |
QByteArray | value () const |
Static Public Member Functions | |
static QByteArray | assembleLine (const QString &fieldname, const QByteArray &value, uint linelen=0, bool url=false) |
static QByteArray | assembleLine (const QString &fieldname, const QString &value, uint linelen=0, bool url=false) |
static bool | splitControl (const QByteArray &line, QString &oid, bool &critical, QByteArray &value) |
static bool | splitLine (const QByteArray &line, QString &fieldname, QByteArray &value) |
Detailed Description
Ldif.
Ldif implements an RFC 2849 compliant Ldif parser. Ldif files are used to represent directory information on LDAP-based servers, or to describe a set of changes which are to be applied to a directory.
Member Enumeration Documentation
◆ EntryType
◆ ModType
◆ ParseValue
Constructor & Destructor Documentation
◆ Ldif() [1/2]
◆ Ldif() [2/2]
◆ ~Ldif()
Member Function Documentation
◆ assembleLine() [1/2]
|
static |
Assembles fieldname and value into a valid Ldif line, BASE64 encodes the value if necessary and optionally splits into more lines.
- Parameters
-
fieldname The name of the entry. value The value of the entry. linelen Maximum length of the lines in the result. url If true, encode value as url ( use :< ).
◆ assembleLine() [2/2]
|
static |
◆ attr()
◆ delOldRdn()
bool Ldif::delOldRdn | ( | ) | const |
◆ dn()
LdapDN Ldif::dn | ( | ) | const |
◆ endLdif()
void Ldif::endLdif | ( | ) |
◆ entryType()
Ldif::EntryType Ldif::entryType | ( | ) | const |
◆ isCritical()
bool Ldif::isCritical | ( | ) | const |
◆ isUrl()
◆ lineNumber()
uint Ldif::lineNumber | ( | ) | const |
◆ modType()
int Ldif::modType | ( | ) | const |
◆ newRdn()
QString Ldif::newRdn | ( | ) | const |
◆ newSuperior()
QString Ldif::newSuperior | ( | ) | const |
◆ nextItem()
Ldif::ParseValue Ldif::nextItem | ( | ) |
Process the Ldif until a complete item can be returned.
- Returns
- NewEntry if a new DN encountered, Item if a new item returned, Err if the Ldif contains error, EndEntry if the parser reached the end of the current entry and MoreData if the parser encountered the end of the current chunk of the Ldif.
If you want to finish the parsing after receiving MoreData, then call endLdif(), so the parser can safely flush the current entry.
◆ oid()
QString Ldif::oid | ( | ) | const |
◆ operator=()
◆ processLine()
Ldif::ParseValue Ldif::processLine | ( | ) |
◆ setLdif()
void Ldif::setLdif | ( | const QByteArray & | ldif | ) |
◆ splitControl()
|
static |
◆ splitLine()
|
static |
◆ startParsing()
void Ldif::startParsing | ( | ) |
◆ value()
QByteArray Ldif::value | ( | ) | const |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.