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

KLDAP Library

ldapcontrol.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_LDAPCONTROL_H
00022 #define KLDAP_LDAPCONTROL_H
00023 
00024 #include <QtCore/QString>
00025 #include <QtCore/QList>
00026 #include <QtCore/QSharedDataPointer>
00027 
00028 #include "kldap_export.h"
00029 
00030 namespace KLDAP {
00031 
00036 class KLDAP_EXPORT LdapControl
00037 {
00038   public:
00042     LdapControl();
00046     LdapControl( QString &oid, QByteArray &value, bool critical = false );
00047 
00048     LdapControl( const LdapControl &that );
00049     LdapControl &operator= ( const LdapControl &that );
00053     virtual ~LdapControl();
00057     void setControl( const QString &oid, const QByteArray &value,
00058                      bool critical = false );
00062     void setOid( const QString &oid );
00066     void setValue( const QByteArray &value );
00070     void setCritical( bool critical );
00074     QString oid() const;
00078     QByteArray value() const;
00082     bool critical() const;
00083 
00090     int parsePageControl( QByteArray &cookie ) const;
00094     static LdapControl createPageControl( int pagesize, const QByteArray &cookie = QByteArray() );
00095 
00096   private:
00097     class Private;
00098     QSharedDataPointer<Private> d;
00099 };
00100 
00101 typedef QList<LdapControl> LdapControls;
00102 
00103 }
00104 
00105 #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
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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