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

KLDAP Library

ldapserver.h

00001 /*
00002   This file is part of libkldap.
00003   Copyright (c) 2004-2006 Szombathelyi György <gyurco@freemail.hu>
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_LDAPSERVER_H
00022 #define KLDAP_LDAPSERVER_H
00023 
00024 #include <QtCore/QString>
00025 
00026 #include "ldapurl.h"
00027 #include "ldapdn.h"
00028 #include "kldap_export.h"
00029 
00030 namespace KLDAP {
00031 
00035 class KLDAP_EXPORT LdapServer
00036 {
00037   public:
00038     LdapServer();
00039     LdapServer( const LdapUrl &url );
00040 
00041     LdapServer( const LdapServer &that );
00042     LdapServer &operator= ( const LdapServer &that );
00043 
00044     virtual ~LdapServer();
00045 
00046     typedef enum {
00047       None, TLS, SSL
00048     } Security;
00049     typedef enum {
00050       Anonymous, Simple, SASL
00051     } Auth;
00052 
00056     void clear();
00057 
00058     QString host() const;
00059     int port() const;
00060     LdapDN baseDn() const;
00061     QString user() const;
00062     QString bindDn() const;
00063     QString realm() const;
00064     QString password() const;
00065     int version() const;
00066     Security security() const;
00067     Auth auth() const;
00068     QString mech() const;
00069     int timeout() const;
00070 
00071     LdapUrl::Scope scope() const;
00072     int timeLimit() const;
00073     int sizeLimit() const;
00074     int pageSize() const;
00075     QString filter() const;
00076 
00077     void setHost( const QString &host );
00078     void setPort( int port );
00079     void setBaseDn( const LdapDN &baseDn );
00080     void setUser( const QString &user );
00081     void setBindDn( const QString &bindDn );
00082     void setRealm( const QString &realm );
00083     void setPassword( const QString &password );
00084     void setVersion( int version );
00085     void setSecurity( Security security );
00086     void setAuth( Auth auth );
00087     void setMech( const QString &mech );
00088     void setTimeout( int timeout );
00089 
00090     void setScope( LdapUrl::Scope scope );
00091     void setTimeLimit( int timelimit );
00092     void setSizeLimit( int sizelimit );
00093     void setPageSize( int pagesize );
00094     void setFilter( const QString &filter );
00095 
00103     LdapUrl url() const;
00107     void setUrl( const LdapUrl &url );
00108 
00109   private:
00110     class LdapServerPrivate;
00111     LdapServerPrivate *const d;
00112 };
00113 
00114 }
00115 
00116 #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