• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KLDAP Library

  • KLDAP
  • LdapObject
Public Member Functions
KLDAP::LdapObject Class Reference

This class represents an LDAP Object. More...

#include <ldapobject.h>

List of all members.

Public Member Functions

 LdapObject (const QString &dn)
 LdapObject (const LdapObject &that)
void addValue (const QString &attributeName, const QByteArray &value)
const LdapAttrMap & attributes () const
void clear ()
LdapDN dn () const
bool hasAttribute (const QString &attributeName) const
LdapObject & operator= (const LdapObject &that)
void setAttributes (const LdapAttrMap &attrs)
void setDn (const LdapDN &dn)
void setDn (const QString &dn)
void setValues (const QString &attributeName, const LdapAttrValue &values)
QString toString () const
QByteArray value (const QString &attributeName) const
LdapAttrValue values (const QString &attributeName) const

Detailed Description

This class represents an LDAP Object.

Definition at line 41 of file ldapobject.h.


Member Function Documentation

void LdapObject::addValue ( const QString &  attributeName,
const QByteArray &  value 
)

Adds the given value to the specified attribute.

If the given attribute not exists, then it's created.

Definition at line 123 of file ldapobject.cpp.

const LdapAttrMap & LdapObject::attributes ( ) const

Returns the attributes and their values.

Definition at line 95 of file ldapobject.cpp.

void LdapObject::clear ( )

Clears the name and attributes of the object.

Definition at line 112 of file ldapobject.cpp.

LdapDN LdapObject::dn ( ) const

Return the Distinguished Name of the object.

Definition at line 90 of file ldapobject.cpp.

bool LdapObject::hasAttribute ( const QString &  attributeName) const

Returns true if the given attributethe exists, false otherwise.

Definition at line 146 of file ldapobject.cpp.

void LdapObject::setAttributes ( const LdapAttrMap &  attrs)

Sets the attributes and attribute values of the object.

Definition at line 85 of file ldapobject.cpp.

void LdapObject::setDn ( const LdapDN &  dn)

Sets the Distinguished Name of the object.

Definition at line 75 of file ldapobject.cpp.

void LdapObject::setDn ( const QString &  dn)

Sets the Distinguished Name of the object.

Definition at line 80 of file ldapobject.cpp.

void LdapObject::setValues ( const QString &  attributeName,
const LdapAttrValue &  values 
)

Sets the given attribute values.

If the given attribute not exists, then it's created, if exists, it's overwritten.

Definition at line 118 of file ldapobject.cpp.

QString LdapObject::toString ( ) const

Returns the text presentation (LDIF format) of the object.

Definition at line 100 of file ldapobject.cpp.

QByteArray LdapObject::value ( const QString &  attributeName) const

Returns the first value of the attribute with the given name or an empty byte array if the attribute does not exists.

Definition at line 137 of file ldapobject.cpp.

LdapAttrValue LdapObject::values ( const QString &  attributeName) const

Returns all values of the attribute with the given name.

Definition at line 128 of file ldapobject.cpp.


The documentation for this class was generated from the following files:
  • ldapobject.h
  • ldapobject.cpp

KLDAP Library

Skip menu "KLDAP Library"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal