KABC::LDIF Class Reference
LDIF. More...
#include <ldif.h>
Public Types | |
enum | ParseVal { None, NewEntry, EndEntry, Item, Control, Err, MoreData } |
enum | EntryType { Entry_None, Entry_Add, Entry_Del, Entry_Mod, Entry_Modrdn } |
enum | ModType { Mod_None, Mod_Add, Mod_Replace, Mod_Del } |
Public Member Functions | |
void | startParsing () |
ParseVal | processLine () |
ParseVal | nextItem () |
void | setLDIF (const QByteArray &ldif) |
void | endLDIF () |
EntryType | entryType () const |
int | modType () const |
const QString & | dn () const |
const QString & | newRdn () const |
const QString & | newSuperior () const |
bool | delOldRdn () const |
const QString & | attr () const |
const QByteArray & | val () const |
bool | isUrl () const |
bool | critical () const |
const QString & | oid () const |
uint | lineNo () const |
Static Public Member Functions | |
QCString | assembleLine (const QString &fieldname, const QByteArray &value, uint linelen=0, bool url=false) |
QCString | assembleLine (const QString &fieldname, const QCString &value, uint linelen=0, bool url=false) |
QCString | assembleLine (const QString &fieldname, const QString &value, uint linelen=0, bool url=false) |
bool | splitLine (const QCString &line, QString &fieldname, QByteArray &value) |
bool | splitControl (const QCString &line, QString &oid, bool &critical, 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.
Definition at line 38 of file ldif.h.
Member Function Documentation
|
Assembles fieldname and value into a valid LDIF line, BASE64 encodes the value if neccessary and optionally splits into more lines.
References KCodecs::base64Encode(). Referenced by assembleLine(). |
|
This is the same as the above function, the only difference that this accepts QCString as the value. Definition at line 85 of file ldif.cpp. References assembleLine(). |
|
This is the same as the above function, the only difference that this accepts QString as the value. Definition at line 98 of file ldif.cpp. References assembleLine(). |
|
Splits one line from an LDIF file to attribute and value components.
References KCodecs::base64Decode(). Referenced by processLine(), and splitControl(). |
|
Splits a control specification (without the "control:" directive).
References endl(), kdDebug(), and splitLine(). Referenced by processLine(). |
|
Starts the parsing of a new LDIF. |
|
Process one LDIF line. Definition at line 190 of file ldif.cpp. References endl(), kdDebug(), splitControl(), and splitLine(). Referenced by nextItem(). |
|
Process the LDIF until a complete item can be returned.
References processLine(). |
|
Sets a chunk of LDIF. Call before startParsing(), or if nextItem() returned MoreData. Definition at line 109 of file ldif.h. |
|
Indicates the end of the LDIF file/stream. Call if nextItem() returned MoreData, but actually you don't have more data. Definition at line 337 of file ldif.cpp. |
|
Returns the requested LDAP operation extracted from the current entry. |
|
Returns the LDAP modify request type if entryType() returned Entry_Mod. |
|
Returns the Distinguished Name of the current entry. |
|
Returns the new Relative Distinguished Name if modType() returned Entry_Modrdn. |
|
Returns the new parent of the entry if modType() returned Entry_Modrdn. |
|
Returns if the delete of the old RDN is required. |
|
Returns the attribute name. |
|
Returns the attribute value. |
|
Returns if val() is an url. |
|
Returns the criticality level when modType() returned Control. |
|
Returns the OID when modType() returned Control. |
|
Returns the line number which the parser processes. |
The documentation for this class was generated from the following files: