KLdap
ldapclient.cpp
110 url.setScope(d->mScope == QLatin1StringView("one") ? KLDAPCore::LdapUrl::One : KLDAPCore::LdapUrl::Sub);
113 // combine the filter set by the user in the config dialog (url.filter()) and the filter from this query
115 finalFilter = QLatin1StringView("&(") + finalFilter + QLatin1StringView(")(") + userFilter + QLatin1Char(')');
125 connect(transfertJob, &KIO::TransferJob::data, this, [this](KIO::Job *job, const QByteArray &data) {
128 connect(d->mJob.data(), &KIO::TransferJob::infoMessage, this, [this](KJob *job, const QString &message) {
190 for (KLDAPCore::LdapAttrMap::ConstIterator it = mCurrentObject.attributes().constBegin(); it != end; ++it) {
199 for (KLDAPCore::LdapAttrValue::ConstIterator it = objectclasses.constBegin(); it != endValue; ++it) {
207 KLDAPCore::LdapAttrMap::ConstIterator it = mCurrentObject.attributes().find(QStringLiteral("mail"));
212 const QStringList lMail = mCurrentObject.dn().toString().split(QStringLiteral(",dc="), Qt::SkipEmptyParts);
237 // qCDebug(LDAPCLIENT_LOG) <<"LdapClient::parseLDIF(" << QCString(data.data(), data.size()+1) <<" )";
void data(KIO::Job *job, const QByteArray &data)
void result(KJob *job)
void infoMessage(KJob *job, const QString &message)
A class that contains LDAP server connection settings.
Definition ldapserver.h:27
An object that represents a configured LDAP server.
Definition ldapclient.h:34
void startQuery(const QString &filter)
Starts the query with the given filter.
Definition ldapclient.cpp:104
int completionWeight() const
Returns the completion weight of this client.
Definition ldapclient.cpp:268
const KLDAPCore::LdapServer server() const
Returns the ldap server information that are used by this client.
Definition ldapclient.cpp:83
void setAttributes(const QStringList &attributes)
Sets the LDAP attributes that should be returned in the query result.
Definition ldapclient.cpp:88
void setServer(const KLDAPCore::LdapServer &server)
Sets the LDAP server information that shall be used by this client.
Definition ldapclient.cpp:78
QStringList attributes() const
Returns the LDAP attributes that should be returned in the query result.
Definition ldapclient.cpp:94
void setCompletionWeight(int weight)
Sets the completion weight of this client.
Definition ldapclient.cpp:273
LdapClient(int clientNumber, QObject *parent=nullptr)
Creates a new ldap client.
Definition ldapclient.cpp:63
bool isActive() const
Returns whether this client is currently running a search query.
Definition ldapclient.cpp:73
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
HideProgressInfo
const QList< QKeySequence > & end()
QString name(StandardShortcut id)
bool isEmpty() const const
QByteArray toLower() const const
typedef ConstIterator
const_reference at(qsizetype i) const const
const_iterator constBegin() const const
const_iterator constEnd() const const
qsizetype count() const const
T & first()
T value(qsizetype i) const const
typedef ConstIterator
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString & append(QChar ch)
void clear()
bool isEmpty() const const
QByteArray toUtf8() const const
CaseInsensitive
SkipEmptyParts
QString url(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.