7#include "ldapwidgetitemreadconfigserverjob.h"
8#include "ldapclientsearchconfigreadconfigjob.h"
9#include "ldapwidgetitem_p.h"
10using namespace KLDAPWidgets;
11LdapWidgetItemReadConfigServerJob::LdapWidgetItemReadConfigServerJob(
QObject *parent)
16LdapWidgetItemReadConfigServerJob::~LdapWidgetItemReadConfigServerJob() =
default;
18void LdapWidgetItemReadConfigServerJob::start()
20 auto job =
new KLDAPCore::LdapClientSearchConfigReadConfigJob(
this);
21 connect(job, &KLDAPCore::LdapClientSearchConfigReadConfigJob::configLoaded,
this, &LdapWidgetItemReadConfigServerJob::slotConfigLoaded);
22 job->setActive(mActive);
23 job->setConfig(mConfig);
24 job->setServerIndex(mCurrentIndex);
30 mLdapWidgetItem->setServer(server);
34LdapWidgetItem *LdapWidgetItemReadConfigServerJob::ldapWidgetItem()
const
36 return mLdapWidgetItem;
39void LdapWidgetItemReadConfigServerJob::setLdapWidgetItem(LdapWidgetItem *ldapWidgetItem)
41 mLdapWidgetItem = ldapWidgetItem;
44int LdapWidgetItemReadConfigServerJob::currentIndex()
const
49void LdapWidgetItemReadConfigServerJob::setCurrentIndex(
int currentIndex)
51 mCurrentIndex = currentIndex;
54bool LdapWidgetItemReadConfigServerJob::active()
const
59void LdapWidgetItemReadConfigServerJob::setActive(
bool active)
64KConfigGroup LdapWidgetItemReadConfigServerJob::config()
const
69void LdapWidgetItemReadConfigServerJob::setConfig(
const KConfigGroup &config)
74#include "moc_ldapwidgetitemreadconfigserverjob.cpp"
A class that contains LDAP server connection settings.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
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
KDE's Doxygen guidelines are available online.