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

KLDAP Library

  • KLDAP
  • LdapConfigWidget
Public Types | Public Member Functions | Properties | List of all members
KLDAP::LdapConfigWidget Class Reference

#include <ldapconfigwidget.h>

Inherits QWidget.

Public Types

enum  Auth { Anonymous, Simple, SASL }
 
enum  Security { None, SSL, TLS }
 
enum  WinFlag {
  W_USER = 0x1, W_BINDDN = 0x2, W_REALM = 0x4, W_PASS = 0x8,
  W_HOST = 0x10, W_PORT = 0x20, W_VER = 0x40, W_DN = 0x80,
  W_FILTER = 0x100, W_SECBOX = 0x200, W_AUTHBOX = 0x400, W_TIMELIMIT = 0x800,
  W_SIZELIMIT = 0x1000, W_PAGESIZE = 0x2000, W_ALL = 0x2fff
}
 

Public Member Functions

 LdapConfigWidget (QWidget *parent=0, Qt::WindowFlags fl=0)
 
 LdapConfigWidget (WinFlags flags, QWidget *parent=0, Qt::WindowFlags fl=0)
 
virtual ~LdapConfigWidget ()
 
Auth auth () const
 
QString bindDn () const
 
LdapDN dn () const
 
WinFlags features () const
 
QString filter () const
 
QString host () const
 
QString mech () const
 
int pageSize () const
 
QString password () const
 
int port () const
 
QString realm () const
 
Security security () const
 
LdapServer server () const
 
void setAuth (Auth auth)
 
void setBindDn (const QString &binddn)
 
void setDn (const LdapDN &dn)
 
void setFeatures (WinFlags features)
 
void setFilter (const QString &filter)
 
void setHost (const QString &host)
 
void setMech (const QString &mech)
 
void setPageSize (int pagesize)
 
void setPassword (const QString &password)
 
void setPort (int port)
 
void setRealm (const QString &realm)
 
void setSecurity (Security security)
 
void setServer (const LdapServer &server)
 
void setSizeLimit (int sizelimit)
 
void setTimeLimit (int timelimit)
 
void setUrl (const LdapUrl &url)
 
void setUser (const QString &user)
 
void setVersion (int version)
 
int sizeLimit () const
 
int timeLimit () const
 
LdapUrl url () const
 
QString user () const
 
int version () const
 

Properties

Auth auth
 
QString bindDn
 
LdapDN dn
 
WinFlags features
 
QString filter
 
QString host
 
QString mech
 
int pageSize
 
QString password
 
int port
 
QString realm
 
Security security
 
int sizeLimit
 
int timeLimit
 
QString user
 
int version
 

Detailed Description

LDAP Configuration widget.

This class can be used to query the user for LDAP connection parameters. It's KConfigXT compatible, using widget names starting with kcfg_

Definition at line 44 of file ldapconfigwidget.h.

Constructor & Destructor Documentation

LdapConfigWidget::LdapConfigWidget ( QWidget *  parent = 0,
Qt::WindowFlags  fl = 0 
)
explicit

Constructs an empty configuration widget.

You need to call setFlags() after this.

Parameters
parentthe QWidget parent
flthe window flags to set

Definition at line 510 of file ldapconfigwidget.cpp.

KLDAP::LdapConfigWidget::LdapConfigWidget ( WinFlags  flags,
QWidget *  parent = 0,
Qt::WindowFlags  fl = 0 
)
explicit

Constructs a configuration widget.

LdapConfigWidget::~LdapConfigWidget ( )
virtual

Destructs a configuration widget.

Definition at line 524 of file ldapconfigwidget.cpp.

Member Function Documentation

Auth KLDAP::LdapConfigWidget::auth ( ) const

Returns the authentication type.

Kconfig widget names: kcfg_ldapanon, kcfg_ldapsimple, kcfg_ldapsasl

Parameters
auththe authentication type to set
QString KLDAP::LdapConfigWidget::bindDn ( ) const

Gets the bind dn.

Kconfig widget name: kcfg_ldapbinddn

LdapDN KLDAP::LdapConfigWidget::dn ( ) const

Gets the LDAP Base DN.

Kconfig widget name: kcfg_ldapdn

QString KLDAP::LdapConfigWidget::filter ( ) const

Gets the LDAP Filter.

Kconfig widget name: kcfg_ldapfilter

QString KLDAP::LdapConfigWidget::host ( ) const

Gets the host name.

Kconfig widget name: kcfg_ldaphost

QString KLDAP::LdapConfigWidget::mech ( ) const

Gets the SASL Mechanism.

Kconfig widget name: kcfg_ldapsaslmech

int KLDAP::LdapConfigWidget::pageSize ( ) const

Returns the page size.

KConfig widget name: kcfg_ldappagesize

QString KLDAP::LdapConfigWidget::password ( ) const

Gets the password.

Kconfig widget name: kcfg_ldappassword

int KLDAP::LdapConfigWidget::port ( ) const

Gets the LDAP port.

Kconfig widget name: kcfg_ldapport

QString KLDAP::LdapConfigWidget::realm ( ) const

Gets the SASL realm.

Kconfig widget name: kcfg_ldaprealm

Security KLDAP::LdapConfigWidget::security ( ) const

Returns the security type.

Kconfig widget names: kcfg_ldapnosec, kcfg_ldaptls, kcfg_ldapssl

Parameters
securitythe security type to set
LdapServer LdapConfigWidget::server ( ) const

Returns an LdapServer object constructed from the settings given.

Definition at line 541 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setAuth ( Auth  auth)

Sets the authentication type (Anonymous, Simple, SASL).

Kconfig widget names: kcfg_ldapanon, kcfg_ldapsimple, kcfg_ldapsasl

Parameters
auththe authentication type to set

Definition at line 811 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setBindDn ( const QString &  binddn)

Sets the bind dn.

Kconfig widget name: kcfg_ldapbinddn

Parameters
binddnthe LDAP Bind DN to set

Definition at line 676 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setDn ( const LdapDN &  dn)

Sets the LDAP Base DN.

Kconfig widget name: kcfg_ldapdn

Parameters
dnthe LDAP Base DN to set

Definition at line 736 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setFilter ( const QString &  filter)

Sets the LDAP Filter.

Kconfig widget name: kcfg_ldapfilter

Parameters
filterthe LDAP Filter to set

Definition at line 748 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setHost ( const QString &  host)

Sets the host name.

Kconfig widget name: kcfg_ldaphost

Parameters
hostthe LDAP host to set

Definition at line 700 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setMech ( const QString &  mech)

Sets the SASL Mechanism.

Kconfig widget name: kcfg_ldapsaslmech

Parameters
mechthe SASL Mechanism to set

Definition at line 760 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setPageSize ( int  pagesize)

Sets the page size.

KConfig widget name: kcfg_ldappagesize

Parameters
pagesizethe page size to set

Definition at line 861 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setPassword ( const QString &  password)

Sets the password.

Kconfig widget name: kcfg_ldappassword

Parameters
passwordthe password to set

Definition at line 664 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setPort ( int  port)

Sets the LDAP port.

Kconfig widget name: kcfg_ldapport

Parameters
portthe LDAP port to set

Definition at line 712 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setRealm ( const QString &  realm)

Sets the SASL realm.

Kconfig widget name: kcfg_ldaprealm

Parameters
realmthe SASL realm to set

Definition at line 688 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setSecurity ( Security  security)

Sets the security type (None, SSL, TLS).

Kconfig widget names: kcfg_ldapnosec, kcfg_ldaptls, kcfg_ldapssl

Parameters
securitythe security type to set

Definition at line 785 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setServer ( const LdapServer &  server)

Set up the widget via an LdapServer object.

Parameters
serverthe LdapServer object to set

Definition at line 599 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setSizeLimit ( int  sizelimit)

Sets the size limit.

KConfig widget name: kcfg_ldapsizelimit

Parameters
sizelimitthe size limit to set

Definition at line 837 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setTimeLimit ( int  timelimit)

Sets the time limit.

KConfig widget name: kcfg_ldaptimelimit

Parameters
timelimitthe time limit to set

Definition at line 849 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setUrl ( const LdapUrl &  url)

Set up the widget via an LDAP Url.

Parameters
urlthe LDAP Url to set

Definition at line 534 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setUser ( const QString &  user)

Sets the user name.

Kconfig widget name: kcfg_ldapuser

Parameters
userthe user name to set

Definition at line 652 of file ldapconfigwidget.cpp.

void LdapConfigWidget::setVersion ( int  version)

Sets the LDAP protocol version.

Kconfig widget name: kcfg_ldapver

Parameters
versionthe LDAP protocol version to set

Definition at line 724 of file ldapconfigwidget.cpp.

int KLDAP::LdapConfigWidget::sizeLimit ( ) const

Returns the size limit.

KConfig widget name: kcfg_ldapsizelimit

int KLDAP::LdapConfigWidget::timeLimit ( ) const

Returns the time limit.

KConfig widget name: kcfg_ldaptimelimit

LdapUrl LdapConfigWidget::url ( ) const

Returns a LDAP Url constructed from the settings given.

Extensions are filled for use in the LDAP ioslave

Definition at line 529 of file ldapconfigwidget.cpp.

QString KLDAP::LdapConfigWidget::user ( ) const

Gets the user name.

Kconfig widget name: kcfg_ldapuser

int KLDAP::LdapConfigWidget::version ( ) const

Gets the LDAP protocol version.

Kconfig widget name: kcfg_ldapver


The documentation for this class was generated from the following files:
  • ldapconfigwidget.h
  • ldapconfigwidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:21 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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