KLdap

ldapclientsearchconfigwriteconfigjob.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 LdapClientSearchConfigWriteConfigJob : public QObject
19{
20 Q_OBJECT
21public:
22 explicit LdapClientSearchConfigWriteConfigJob(QObject *parent = nullptr);
23 ~LdapClientSearchConfigWriteConfigJob() 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
37 [[nodiscard]] KLDAPCore::LdapServer server() const;
38 void setServer(const KLDAPCore::LdapServer &server);
39
40Q_SIGNALS:
41 void configSaved();
42
43private:
44 KLDAP_CORE_NO_EXPORT void writeLdapClientConfigFinished();
45 KLDAP_CORE_NO_EXPORT void writeConfig();
46 int mServerIndex = -1;
47 KConfigGroup mConfig;
48 bool mActive = false;
50};
51
52}
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.