KLdap
ldapclient.cpp
109 url.setScope(d->mScope == QLatin1StringView("one") ? KLDAPCore::LdapUrl::One : KLDAPCore::LdapUrl::Sub);
112 // combine the filter set by the user in the config dialog (url.filter()) and the filter from this query
114 finalFilter = QLatin1StringView("&(") + finalFilter + QLatin1StringView(")(") + userFilter + QLatin1Char(')');
124 connect(transfertJob, &KIO::TransferJob::data, this, [this](KIO::Job *job, const QByteArray &data) {
127 connect(d->mJob.data(), &KIO::TransferJob::infoMessage, this, [this](KJob *job, const QString &message) {
189 for (KLDAPCore::LdapAttrMap::ConstIterator it = mCurrentObject.attributes().constBegin(); it != end; ++it) {
198 for (KLDAPCore::LdapAttrValue::ConstIterator it = objectclasses.constBegin(); it != endValue; ++it) {
206 KLDAPCore::LdapAttrMap::ConstIterator it = mCurrentObject.attributes().find(QStringLiteral("mail"));
211 const QStringList lMail = mCurrentObject.dn().toString().split(QStringLiteral(",dc="), Qt::SkipEmptyParts);
236 // 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)
void startQuery(const QString &filter)
Starts the query with the given filter.
Definition ldapclient.cpp:103
int completionWeight() const
Returns the completion weight of this client.
Definition ldapclient.cpp:267
const KLDAPCore::LdapServer server() const
Returns the ldap server information that are used by this client.
Definition ldapclient.cpp:82
void setAttributes(const QStringList &attributes)
Sets the LDAP attributes that should be returned in the query result.
Definition ldapclient.cpp:87
void setServer(const KLDAPCore::LdapServer &server)
Sets the LDAP server information that shall be used by this client.
Definition ldapclient.cpp:77
QStringList attributes() const
Returns the LDAP attributes that should be returned in the query result.
Definition ldapclient.cpp:93
void setCompletionWeight(int weight)
Sets the completion weight of this client.
Definition ldapclient.cpp:272
LdapClient(int clientNumber, QObject *parent=nullptr)
Creates a new ldap client.
Definition ldapclient.cpp:62
bool isActive() const
Returns whether this client is currently running a search query.
Definition ldapclient.cpp:72
A class that contains LDAP server connection settings.
Definition ldapserver.h:27
void setAttributes(const QStringList &attributes)
Sets the attributes part of the LDAP url.
Definition ldapurl.cpp:87
QString name(GameStandardAction id)
QAction * end(const QObject *recvr, const char *slot, QObject *parent)
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
HideProgressInfo
bool isEmpty() const const
QByteArray toLower() const const
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
ConstIterator
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QString & append(QChar ch)
bool isEmpty() const const
QByteArray toUtf8() const const
CaseInsensitive
SkipEmptyParts
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:09 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:34:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.