• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • 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 
00038 class KLDAP_EXPORT LdapServer
00039 {
00040   public:
00044     LdapServer();
00045 
00051     LdapServer( const LdapUrl &url );
00052 
00056     LdapServer( const LdapServer &other );
00057 
00062     LdapServer &operator=( const LdapServer &other );
00063 
00067     virtual ~LdapServer();
00068 
00073     typedef enum
00074     {
00075       None, 
00076       TLS,  
00077       SSL   
00078     } Security;
00079 
00084     typedef enum
00085     {
00086       Anonymous,  
00087       Simple,     
00088       SASL        
00089     } Auth;
00090 
00094     void clear();
00095 
00099     void setHost( const QString &host );
00100 
00104     QString host() const;
00105 
00110     void setPort( int port );
00111 
00115     int port() const;
00116 
00120     void setBaseDn( const LdapDN &baseDn );
00121 
00125     LdapDN baseDn() const;
00126 
00130     void setUser( const QString &user );
00131 
00135     QString user() const;
00136 
00140     void setBindDn( const QString &bindDn );
00141 
00145     QString bindDn() const;
00146 
00150     void setRealm( const QString &realm );
00151 
00155     QString realm() const;
00156 
00160     void setPassword( const QString &password );
00161 
00165     QString password() const;
00166 
00171     void setVersion( int version );
00172 
00176     int version() const;
00177 
00182     void setSecurity( Security mode );
00183 
00187     Security security() const;
00188 
00193     void setAuth( Auth authentication );
00194 
00198     Auth auth() const;
00199 
00203     void setMech( const QString &mech );
00204 
00208     QString mech() const;
00209 
00213     void setTimeout( int timeout );
00214 
00218     int timeout() const;
00219 
00223     void setScope( LdapUrl::Scope scope );
00224 
00228     LdapUrl::Scope scope() const;
00229 
00233     void setTimeLimit( int limit );
00234 
00238     int timeLimit() const;
00239 
00243     void setSizeLimit( int sizelimit );
00244 
00248     int sizeLimit() const;
00249 
00253     void setPageSize( int size );
00254 
00258     int pageSize() const;
00259 
00263     void setFilter( const QString &filter );
00264 
00268     QString filter() const;
00269 
00273     void setUrl( const LdapUrl &url );
00274 
00282     LdapUrl url() const;
00283 
00284   private:
00285     class LdapServerPrivate;
00286     LdapServerPrivate *const d;
00287 };
00288 
00289 }
00290 
00291 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:18:18 by doxygen 1.8.0 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.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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