KLDAP Library
21 #include "ldapobject.h"
24 #include <QtCore/QSharedData>
26 using namespace KLDAP;
28 class LdapObject::Private :
public QSharedData
35 Private(
const Private &other )
36 : QSharedData( other )
39 mAttrs = other.mAttrs;
46 LdapObject::LdapObject()
51 LdapObject::LdapObject(
const QString &dn )
54 d->mDn = LdapDN( dn );
57 LdapObject::~LdapObject()
61 LdapObject::LdapObject(
const LdapObject &that )
68 if (
this != &that ) {
82 d->mDn = LdapDN( dn );
102 QString result = QString::fromLatin1(
"dn: %1\n" ).arg( d->mDn.toString() );
103 LdapAttrMap::ConstIterator end( d->mAttrs.constEnd() );
104 for ( LdapAttrMap::ConstIterator it = d->mAttrs.constBegin(); it != end; ++it ) {
105 const QString attr = it.key();
106 LdapAttrValue::ConstIterator end2( ( *it ).constEnd() );
107 for ( LdapAttrValue::ConstIterator it2 = ( *it ).constBegin(); it2 != end2; ++it2 ) {
122 d->mAttrs[ attributeName ] =
values;
127 d->mAttrs[ attributeName ].append( value );
133 return d->mAttrs.value( attributeName );
135 return LdapAttrValue();
142 return d->mAttrs.value( attributeName ).first();
150 return d->mAttrs.contains( attributeName );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:14 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.