#### PyKDE - Python Bindings for KDE

# class KABC.LDIF

Table of contents
Modules
kabc Classes
All Classes

Module | kabc
Class | KABC.LDIF
Inherits |

### enums

- EntryType = {Entry_None, Entry_Add, Entry_Del, Entry_Mod, Entry_Modrdn }
- ModType = {Mod_None, Mod_Add, Mod_Replace, Mod_Del }
- ParseVal = {None, NewEntry, EndEntry, Item, Control, Err, MoreData }

### methods

- LDIF ()

  returns a LDIF instance
  In versions KDE 3.3.0 and above only

- assembleLine (fieldname, value, linelen = 0, url = 0)

  returns (QCString)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  fieldname | QString |
  value | QByteArray |
  linelen | uint | 0
  url | bool | 0

- assembleLine (fieldname, value, linelen = 0, url = 0)

  returns (QCString)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  fieldname | QString |
  value | QCString |
  linelen | uint | 0
  url | bool | 0

- assembleLine (fieldname, value, linelen = 0, url = 0)

  returns (QCString)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  fieldname | QString |
  value | QString |
  linelen | uint | 0
  url | bool | 0

- attr ()

  returns (QString)
  In versions KDE 3.3.0 and above only

- critical ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- delOldRdn ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- dn ()

  returns (QString)
  In versions KDE 3.3.0 and above only

- endLDIF ()

  returns nothing
  In versions KDE 3.3.0 and above only

- entryType ()

  returns (KABC.LDIF.EntryType)
  In versions KDE 3.3.0 and above only

- isUrl ()

  returns (bool)
  In versions KDE 3.3.0 and above only

- lineNo ()

  returns (uint)
  In versions KDE 3.3.0 and above only

- modType ()

  returns (int)
  In versions KDE 3.3.0 and above only

- newRdn ()

  returns (QString)
  In versions KDE 3.3.0 and above only

- newSuperior ()

  returns (QString)
  In versions KDE 3.3.0 and above only

- nextItem ()

  returns (KABC.LDIF.ParseVal)
  In versions KDE 3.3.0 and above only

- oid ()

  returns (QString)
  In versions KDE 3.3.0 and above only

- processLine ()

  returns (KABC.LDIF.ParseVal)
  In versions KDE 3.3.0 and above only

- setLDIF (ldif)

  returns nothing
  In versions KDE 3.3.0 and above only

  Argument | Type | Default
  --- | --- | ---
  ldif | QByteArray |

- splitControl (line, oid, value)

  returns (bool) critical (bool)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  line | QCString |
  oid | QString |
  value | QByteArray |

- splitLine (line, fieldname, value)

  returns (bool)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  line | QCString |
  fieldname | QString |
  value | QByteArray |

- startParsing ()

  returns nothing
  In versions KDE 3.3.0 and above only

- val ()

  returns (QByteArray)
  In versions KDE 3.3.0 and above only