KLdap

ldapclientsearchconfigreadconfigjob.h
1/*
2 * SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#pragma once
8#include "kldap_core_export.h"
9#include <KConfigGroup>
10#include <KLDAPCore/LdapServer>
11#include <QObject>
12namespace QKeychain
13{
14class Job;
15}
16namespace KLDAPCore
17{
18class KLDAP_CORE_EXPORT LdapClientSearchConfigReadConfigJob : public QObject
19{
20 Q_OBJECT
21public:
22 explicit LdapClientSearchConfigReadConfigJob(QObject *parent = nullptr);
23 ~LdapClientSearchConfigReadConfigJob() override;
24
25 [[nodiscard]] bool canStart() const;
26 void start();
27
28 [[nodiscard]] bool active() const;
29 void setActive(bool newActive);
30
31 [[nodiscard]] int serverIndex() const;
32 void setServerIndex(int newServerIndex);
33
34 [[nodiscard]] KConfigGroup config() const;
35 void setConfig(const KConfigGroup &newConfig);
36
37Q_SIGNALS:
38 void configLoaded(const KLDAPCore::LdapServer &server);
39
40private:
41 KLDAP_CORE_NO_EXPORT void readLdapClientConfigFinished();
42 KLDAP_CORE_NO_EXPORT void readConfig();
43 int mServerIndex = -1;
44 KConfigGroup mConfig;
45 bool mActive = false;
47};
48
49}
A class that contains LDAP server connection settings.
Definition ldapserver.h:27
Q_SCRIPTABLE Q_NOREPLY void start()
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.