KABC::LdapConfigWidget Class Reference
LDAP Configuration widget. More...
#include <ldapconfigwidget.h>
Inheritance diagram for KABC::LdapConfigWidget:


Public Types | |
enum | LCW_Flags { W_USER = 0x1, W_PASS = 0x2, W_BINDDN = 0x4, W_REALM = 0x8, W_HOST = 0x10, W_PORT = 0x20, W_VER = 0x40, W_DN = 0x80, W_FILTER = 0x100, W_SECBOX = 0x400, W_AUTHBOX = 0x800, W_TIMELIMIT = 0x1000, W_SIZELIMIT = 0x2000, W_ALL = 0xFFFFFFF } |
Public Member Functions | |
LdapConfigWidget (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
LdapConfigWidget (int flags, QWidget *parent=0, const char *name=0, 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 | setVer (int ver) |
int | ver () const |
void | setDn (const QString &dn) |
QString | dn () const |
void | setFilter (const QString &filter) |
QString | filter () const |
void | setMech (const QString &mech) |
QString | mech () const |
void | setSecNO (bool b=true) |
bool | isSecNO () const |
void | setSecTLS (bool b=true) |
bool | isSecTLS () const |
void | setSecSSL (bool b=true) |
bool | isSecSSL () const |
void | setAuthAnon (bool b=true) |
bool | isAuthAnon () const |
void | setAuthSimple (bool b=true) |
bool | isAuthSimple () const |
void | setAuthSASL (bool b=true) |
bool | isAuthSASL () const |
void | setSizeLimit (int sizelimit) |
int | sizeLimit () const |
void | setTimeLimit (int timelimit) |
int | timeLimit () const |
int | flags () const |
void | setFlags (int flags) |
KABC::LDAPUrl | url () const |
Properties | |
LCW_Flags | flags |
QString | user |
QString | password |
QString | bindDN |
QString | realm |
QString | host |
int | port |
int | ver |
QString | dn |
QString | filter |
QString | mech |
bool | secNO |
bool | secSSL |
bool | secTLS |
bool | authAnon |
bool | authSimple |
bool | authSASL |
int | sizeLimit |
int | timeLimit |
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 50 of file ldapconfigwidget.h.
Constructor & Destructor Documentation
|
Constructs an empty configuration widget. You need to call setFlags() after this. Definition at line 47 of file ldapconfigwidget.cpp. |
|
Constructs a configuration widget.
Definition at line 56 of file ldapconfigwidget.cpp. |
|
Destructs a configuration widget.
Definition at line 66 of file ldapconfigwidget.cpp. |
Member Function Documentation
|
Sets the user name. Kconfig widget name: kcfg_ldapuser Definition at line 410 of file ldapconfigwidget.cpp. References KLineEdit::setText(). |
|
Gets the user name. Kconfig widget name: kcfg_ldapuser |
|
Sets the password. Kconfig widget name: kcfg_ldappassword Definition at line 420 of file ldapconfigwidget.cpp. |
|
Gets the password. Kconfig widget name: kcfg_ldappassword |
|
Sets the bind dn. Useful for SASL proxy auth. Kconfig widget name: kcfg_ldapbinddn Definition at line 430 of file ldapconfigwidget.cpp. |
|
Gets the bind dn. Kconfig widget name: kcfg_ldapbinddn |
|
Sets the SASL realm. Kconfig widget name: kcfg_ldaprealm Definition at line 440 of file ldapconfigwidget.cpp. |
|
Gets the SASL realm. Kconfig widget name: kcfg_ldaprealm |
|
Sets the host name. Kconfig widget name: kcfg_ldaphost Definition at line 450 of file ldapconfigwidget.cpp. |
|
Gets the host name. Kconfig widget name: kcfg_ldaphost |
|
Sets the LDAP port. Kconfig widget name: kcfg_ldapport Definition at line 460 of file ldapconfigwidget.cpp. References QSpinBox::setValue(). |
|
Gets the LDAP port. Kconfig widget name: kcfg_ldapport |
|
Sets the LDAP protocol version. Kconfig widget name: kcfg_ldapver Definition at line 470 of file ldapconfigwidget.cpp. |
|
Gets the LDAP protocol version. Kconfig widget name: kcfg_ldapver |
|
Sets the LDAP Base DN. Kconfig widget name: kcfg_ldapdn Definition at line 480 of file ldapconfigwidget.cpp. |
|
Gets the LDAP Base DN. Kconfig widget name: kcfg_ldapdn |
|
Sets the LDAP Filter. Kconfig widget name: kcfg_ldapfilter Definition at line 490 of file ldapconfigwidget.cpp. |
|
Gets the LDAP Filter. Kconfig widget name: kcfg_ldapfilter |
|
Sets the SASL Mechanism. Kconfig widget name: kcfg_ldapsaslmech Definition at line 500 of file ldapconfigwidget.cpp. References QComboBox::count(), QComboBox::insertItem(), QString::isEmpty(), KComboBox::setCurrentItem(), and QComboBox::text(). |
|
Gets the SASL Mechanism. Kconfig widget name: kcfg_ldapsaslmech |
|
Sets the configuration to no transport security. Kconfig widget name: kcfg_ldapnosec Definition at line 519 of file ldapconfigwidget.cpp. |
|
Returns true if no transport security selected. Kconfig widget name: kcfg_ldapnosec Definition at line 524 of file ldapconfigwidget.cpp. |
|
Sets the configuration to TLS. Kconfig widget name: kcfg_ldaptls Definition at line 529 of file ldapconfigwidget.cpp. |
|
Returns true if TLS selected. Kconfig widget name: kcfg_ldaptls Definition at line 534 of file ldapconfigwidget.cpp. |
|
Sets the configuration to SSL. Kconfig widget name: kcfg_ldapssl Definition at line 539 of file ldapconfigwidget.cpp. |
|
Returns true if SSL selected. Kconfig widget name: kcfg_ldapssl Definition at line 544 of file ldapconfigwidget.cpp. |
|
Sets the authentication to anonymous. Kconfig widget name: kcfg_ldapanon Definition at line 549 of file ldapconfigwidget.cpp. References QRadioButton::setChecked(). |
|
Returns true if Anonymous authentication selected. Kconfig widget name: kcfg_ldapanon Definition at line 554 of file ldapconfigwidget.cpp. References QRadioButton::isChecked(). |
|
Sets the authentication to simple. Kconfig widget name: kcfg_ldapsimple Definition at line 559 of file ldapconfigwidget.cpp. |
|
Returns true if Simple authentication selected. Kconfig widget name: kcfg_ldapsimple Definition at line 564 of file ldapconfigwidget.cpp. |
|
Sets the authentication to SASL. Kconfig widget name: kcfg_ldapsasl Definition at line 569 of file ldapconfigwidget.cpp. |
|
Returns true if SASL authentication selected. Kconfig widget name: kcfg_ldapsasl Definition at line 574 of file ldapconfigwidget.cpp. |
|
Sets the size limit. KConfig widget name: kcfg_ldapsizelimit Definition at line 579 of file ldapconfigwidget.cpp. |
|
Returns the size limit. KConfig widget name: kcfg_ldapsizelimit |
|
Sets the time limit. KConfig widget name: kcfg_ldaptimelimit Definition at line 589 of file ldapconfigwidget.cpp. |
|
Returns the time limit. KConfig widget name: kcfg_ldaptimelimit |
|
Returns a LDAP Url constructed from the settings given. Extensions are filled for use in the LDAP ioslave Definition at line 378 of file ldapconfigwidget.cpp. References QComboBox::currentText(), KABC::LDAPUrl::setDn(), KABC::LDAPUrl::setExtension(), KABC::LDAPUrl::setFilter(), KURL::setHost(), KURL::setPass(), KURL::setPort(), KURL::setProtocol(), KURL::setUser(), QLineEdit::text(), and QSpinBox::value(). |
The documentation for this class was generated from the following files: