• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KLDAP Library

  • sources
  • kde-4.12
  • kdepimlibs
  • kldap
ldapobject.h
1 /*
2  This file is part of libkldap.
3  Copyright (c) 2004-2006 Szombathelyi György <gyurco@freemail.hu>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KLDAP_LDAPOBJECT_H
22 #define KLDAP_LDAPOBJECT_H
23 
24 #include <QtCore/QList>
25 #include <QtCore/QMap>
26 #include <QtCore/QSharedDataPointer>
27 #include <QtCore/QString>
28 
29 #include "ldapdn.h"
30 #include "kldap_export.h"
31 
32 namespace KLDAP {
33 
34 typedef QList<QByteArray> LdapAttrValue;
35 typedef QMap<QString,LdapAttrValue > LdapAttrMap;
36 
41 class KLDAP_EXPORT LdapObject
42 {
43  public:
44  LdapObject();
45  explicit LdapObject( const QString &dn );
46  virtual ~LdapObject();
47 
48  LdapObject( const LdapObject &that );
49  LdapObject &operator=( const LdapObject &that );
50 
54  QString toString() const;
55 
59  void clear();
63  void setDn( const LdapDN &dn );
67  void setDn( const QString &dn );
71  void setAttributes( const LdapAttrMap &attrs );
78  void setValues( const QString &attributeName, const LdapAttrValue &values );
85  void addValue( const QString &attributeName, const QByteArray &value );
89  LdapDN dn() const;
93  const LdapAttrMap &attributes() const;
97  LdapAttrValue values( const QString &attributeName ) const;
102  QByteArray value( const QString &attributeName ) const;
106  bool hasAttribute( const QString &attributeName ) const;
107 
108  private:
109  class Private;
110  QSharedDataPointer<Private> d;
111 };
112 
113 typedef QList<LdapObject> LdapObjects;
114 }
115 
116 #endif
KLDAP::LdapObject
This class represents an LDAP Object.
Definition: ldapobject.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KLDAP Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal