Libkleo
editdirectoryservicedialog.cpp
103 hostEdit->setToolTip(i18nc("@info:tooltip", "Enter the name or IP address of the server hosting the directory service."));
112 invalidHostLabel->setText(i18nc("@info:label", "Error: Enter a hostname in the correct format, like ldap.example.com."));
133 radioButton->setToolTip(i18nc("@info:tooltip", "Use an anonymous LDAP server that does not require authentication."));
135 authenticationGroup->addButton(radioButton, static_cast<int>(KeyserverAuthentication::Anonymous));
141 radioButton->setText(i18n("Authenticate via Active Directory (requires GnuPG 2.2.28 or later)"));
144 i18nc("@info:tooltip", "On Windows, authenticate to the LDAP server using the Active Directory with the current user."));
145 authenticationGroup->addButton(radioButton, static_cast<int>(KeyserverAuthentication::ActiveDirectory));
150 radioButton->setToolTip(i18nc("@info:tooltip", "Authenticate to the LDAP server with your LDAP credentials."));
151 authenticationGroup->addButton(radioButton, static_cast<int>(KeyserverAuthentication::Password));
161 userEdit->setToolTip(i18nc("@info:tooltip", "Enter your LDAP user resp. Bind DN for authenticating to the LDAP server."));
216 connectionGroup->addButton(radioButton, static_cast<int>(KeyserverConnection::TunnelThroughTLS));
292 return transformInPlace(ui.additionalFlagsEdit->text().split(QLatin1Char{','}, Qt::SkipEmptyParts), [](const auto &flag) {
303 const bool requiredCredentialsAreSet = authentication() != KeyserverAuthentication::Password || (!user().isEmpty() && !password().isEmpty());
361 ui.portSpinBox->setValue(keyserver.port() == -1 ? defaultPort(keyserver.connection()) : keyserver.port());
369 ui.advancedSettings->setExpanded(!keyserver.ldapBaseDn().isEmpty() || !keyserver.additionalFlags().empty());
391 KConfigGroup configGroup{KSharedConfig::openStateConfig(), QLatin1StringView("EditDirectoryServiceDialog")};
398 const KConfigGroup configGroup{KSharedConfig::openStateConfig(), QLatin1StringView("EditDirectoryServiceDialog")};
void setTitle(const QString &title)
void setExpanded(bool expanded)
NegativeText
NegativeBackground
void writeEntry(const char *key, const char *value, WriteConfigFlags pFlags=Normal)
QString readEntry(const char *key, const char *aDefault=nullptr) const
static void assign(QPushButton *button, const KGuiItem &item)
QString password() const
void setPassword(const QString &password)
void setClearButtonEnabled(bool clear)
QString xi18nc(const char *context, const char *text, const TYPE &arg...)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
KGuiItem cancel()
KGuiItem ok()
void setChecked(bool)
void setText(const QString &text)
void toggled(bool checked)
void addButton(QAbstractButton *button, int id)
QAbstractButton * button(int id) const const
int checkedId() const const
void idToggled(int id, bool checked)
virtual void accept()
virtual void reject()
void accepted()
QPushButton * button(StandardButton which) const const
void rejected()
void setStandardButtons(StandardButtons buttons)
void setText(const QString &)
void addWidget(QWidget *w)
void setClearButtonEnabled(bool enable)
text
void textEdited(const QString &text)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
Active
Window
void setBrush(ColorGroup group, ColorRole role, const QBrush &brush)
void setRange(int minimum, int maximum)
value
bool isEmpty() const const
SkipEmptyParts
typedef WindowFlags
bool isValid() const const
void setHost(const QString &host, ParsingMode mode)
void setEnabled(bool)
QLayout * layout() const const
palette
size
void setToolTip(const QString &)
virtual void setVisible(bool visible)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.