• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KLDAP Library

ldapdn.h

00001 /*
00002   This file is part of libkldap.
00003   Copyright (c) 2006 Sean Harmer <sh@theharmers.co.uk>
00004 
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Library General  Public
00007   License as published by the Free Software Foundation; either
00008   version 2 of the License, or (at your option) any later version.
00009 
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Library General Public License for more details.
00014 
00015   You should have received a copy of the GNU Library General Public License
00016   along with this library; see the file COPYING.LIB.  If not, write to
00017   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018   Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KLDAP_LDAPDN_H
00022 #define KLDAP_LDAPDN_H
00023 
00024 #include "kldap_export.h"
00025 
00026 #include <QtCore/QStringList>
00027 
00028 #include <kldap/kldap_export.h>
00029 
00030 namespace KLDAP {
00031 
00032 class KLDAP_EXPORT LdapDN
00033 {
00034   public:
00035     explicit LdapDN();
00036     explicit LdapDN( const QString &dn );
00037 
00038     LdapDN( const LdapDN &that );
00039     LdapDN &operator=( const LdapDN &that );
00040 
00041     ~LdapDN();
00042 
00043     void clear();
00044 
00045     bool isEmpty() const;
00046 
00050     QString toString() const;
00051 
00056     QString toString( int depth ) const;
00057 
00061     QString rdnString() const;
00062 
00067     QString rdnString( int depth ) const;
00068 
00072     bool isValid() const;
00073 
00077     int depth() const;
00078 
00079     bool operator == ( const LdapDN &rhs ) const;
00080 
00081     bool operator != ( const LdapDN &rhs ) const;
00082 
00083   private:
00084     class LdapDNPrivate;
00085     LdapDNPrivate *const d;
00086 };
00087 
00088 }
00089 
00090 #endif

KLDAP Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.9
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