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

KLDAP Library

  • 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
32namespace KLDAP {
33
34typedef QList<QByteArray> LdapAttrValue;
35typedef QMap<QString,LdapAttrValue > LdapAttrMap;
36
41class 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
113typedef QList<LdapObject> LdapObjects;
114}
115
116#endif
KLDAP::LdapObject
This class represents an LDAP Object.
Definition: ldapobject.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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