KLDAP Library
KLDAP::LdapConfigWidget Class Reference
#include <ldapconfigwidget.h>
Inherits QWidget.
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.
Public Types | |
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 } |
enum | Security { None, SSL, TLS } |
enum | Auth { Anonymous, Simple, SASL } |
Public Member Functions | |
LdapConfigWidget (QWidget *parent=0, Qt::WFlags fl=0) | |
LdapConfigWidget (WinFlags flags, QWidget *parent=0, Qt::WFlags fl=0) | |
virtual | ~LdapConfigWidget () |
void | setUser (const QString &user) |
QString | user () const |
void | setPassword (const QString &password) |
QString | password () const |
void | setBindDn (const QString &binddn) |
QString | bindDn () const |
void | setRealm (const QString &realm) |
QString | realm () const |
void | setHost (const QString &host) |
QString | host () const |
void | setPort (int port) |
int | port () const |
void | setVersion (int version) |
int | version () const |
void | setDn (const LdapDN &dn) |
LdapDN | dn () const |
void | setFilter (const QString &filter) |
QString | filter () const |
void | setMech (const QString &mech) |
QString | mech () const |
void | setSecurity (Security security) |
Security | security () const |
void | setAuth (Auth auth) |
Auth | auth () const |
void | setSizeLimit (int sizelimit) |
int | sizeLimit () const |
void | setTimeLimit (int timelimit) |
int | timeLimit () const |
void | setPageSize (int pagesize) |
int | pageSize () const |
WinFlags | features () const |
void | setFeatures (WinFlags features) |
LdapUrl | url () const |
void | setUrl (const LdapUrl &url) |
LdapServer | server () const |
void | setServer (const LdapServer &server) |
Properties | |
WinFlags | features |
QString | user |
QString | bindDn |
QString | realm |
QString | password |
QString | host |
int | port |
int | version |
LdapDN | dn |
QString | filter |
QString | mech |
Security | security |
Auth | auth |
int | sizeLimit |
int | timeLimit |
int | pageSize |
Constructor & Destructor Documentation
LdapConfigWidget::LdapConfigWidget | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) | [explicit] |
Constructs an empty configuration widget.
You need to call setFlags() after this.
Definition at line 502 of file ldapconfigwidget.cpp.
KLDAP::LdapConfigWidget::LdapConfigWidget | ( | WinFlags | flags, | |
QWidget * | parent = 0 , |
|||
Qt::WFlags | fl = 0 | |||
) | [explicit] |
Constructs a configuration widget.
LdapConfigWidget::~LdapConfigWidget | ( | ) | [virtual] |
Member Function Documentation
void LdapConfigWidget::setUser | ( | const QString & | user | ) |
Sets the user name.
Kconfig widget name: kcfg_ldapuser
Definition at line 638 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::user | ( | ) | const |
Gets the user name.
Kconfig widget name: kcfg_ldapuser
void LdapConfigWidget::setPassword | ( | const QString & | password | ) |
Sets the password.
Kconfig widget name: kcfg_ldappassword
Definition at line 650 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::password | ( | ) | const |
Gets the password.
Kconfig widget name: kcfg_ldappassword
void LdapConfigWidget::setBindDn | ( | const QString & | binddn | ) |
Sets the bind dn.
Kconfig widget name: kcfg_ldapbinddn
Definition at line 662 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::bindDn | ( | ) | const |
Gets the bind dn.
Kconfig widget name: kcfg_ldapbinddn
void LdapConfigWidget::setRealm | ( | const QString & | realm | ) |
Sets the SASL realm.
Kconfig widget name: kcfg_ldaprealm
Definition at line 674 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::realm | ( | ) | const |
Gets the SASL realm.
Kconfig widget name: kcfg_ldaprealm
void LdapConfigWidget::setHost | ( | const QString & | host | ) |
Sets the host name.
Kconfig widget name: kcfg_ldaphost
Definition at line 686 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::host | ( | ) | const |
Gets the host name.
Kconfig widget name: kcfg_ldaphost
void LdapConfigWidget::setPort | ( | int | port | ) |
Sets the LDAP port.
Kconfig widget name: kcfg_ldapport
Definition at line 698 of file ldapconfigwidget.cpp.
int KLDAP::LdapConfigWidget::port | ( | ) | const |
Gets the LDAP port.
Kconfig widget name: kcfg_ldapport
void LdapConfigWidget::setVersion | ( | int | version | ) |
Sets the LDAP protocol version.
Kconfig widget name: kcfg_ldapver
Definition at line 710 of file ldapconfigwidget.cpp.
int KLDAP::LdapConfigWidget::version | ( | ) | const |
Gets the LDAP protocol version.
Kconfig widget name: kcfg_ldapver
void LdapConfigWidget::setDn | ( | const LdapDN & | dn | ) |
Sets the LDAP Base DN.
Kconfig widget name: kcfg_ldapdn
Definition at line 722 of file ldapconfigwidget.cpp.
LdapDN KLDAP::LdapConfigWidget::dn | ( | ) | const |
Gets the LDAP Base DN.
Kconfig widget name: kcfg_ldapdn
void LdapConfigWidget::setFilter | ( | const QString & | filter | ) |
Sets the LDAP Filter.
Kconfig widget name: kcfg_ldapfilter
Definition at line 734 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::filter | ( | ) | const |
Gets the LDAP Filter.
Kconfig widget name: kcfg_ldapfilter
void LdapConfigWidget::setMech | ( | const QString & | mech | ) |
Sets the SASL Mechanism.
Kconfig widget name: kcfg_ldapsaslmech
Definition at line 746 of file ldapconfigwidget.cpp.
QString KLDAP::LdapConfigWidget::mech | ( | ) | const |
Gets the SASL Mechanism.
Kconfig widget name: kcfg_ldapsaslmech
void LdapConfigWidget::setSecurity | ( | Security | security | ) |
Sets the security type (None, SSL, TLS).
Kconfig widget names: kcfg_ldapnosec, kcfg_ldaptls, kcfg_ldapssl
Definition at line 771 of file ldapconfigwidget.cpp.
Security KLDAP::LdapConfigWidget::security | ( | ) | const |
Returns the security type.
Kconfig widget names: kcfg_ldapnosec, kcfg_ldaptls, kcfg_ldapssl
void LdapConfigWidget::setAuth | ( | Auth | auth | ) |
Sets the authentication type (Anonymous, Simple, SASL).
Kconfig widget names: kcfg_ldapanon, kcfg_ldapsimple, kcfg_ldapsasl
Definition at line 797 of file ldapconfigwidget.cpp.
Auth KLDAP::LdapConfigWidget::auth | ( | ) | const |
Returns the authentication type.
Kconfig widget names: kcfg_ldapanon, kcfg_ldapsimple, kcfg_ldapsasl
void LdapConfigWidget::setSizeLimit | ( | int | sizelimit | ) |
Sets the size limit.
KConfig widget name: kcfg_ldapsizelimit
Definition at line 823 of file ldapconfigwidget.cpp.
int KLDAP::LdapConfigWidget::sizeLimit | ( | ) | const |
Returns the size limit.
KConfig widget name: kcfg_ldapsizelimit
void LdapConfigWidget::setTimeLimit | ( | int | timelimit | ) |
Sets the time limit.
KConfig widget name: kcfg_ldaptimelimit
Definition at line 835 of file ldapconfigwidget.cpp.
int KLDAP::LdapConfigWidget::timeLimit | ( | ) | const |
Returns the time limit.
KConfig widget name: kcfg_ldaptimelimit
void LdapConfigWidget::setPageSize | ( | int | pagesize | ) |
Sets the page size.
KConfig widget name: kcfg_ldappagesize
Definition at line 847 of file ldapconfigwidget.cpp.
int KLDAP::LdapConfigWidget::pageSize | ( | ) | const |
Returns the page size.
KConfig widget name: kcfg_ldappagesize
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 521 of file ldapconfigwidget.cpp.
void LdapConfigWidget::setUrl | ( | const LdapUrl & | url | ) |
LdapServer LdapConfigWidget::server | ( | ) | const |
Returns an LdapServer object constructed from the settings given.
Definition at line 533 of file ldapconfigwidget.cpp.
void LdapConfigWidget::setServer | ( | const LdapServer & | server | ) |
The documentation for this class was generated from the following files: