KLdap

ldapconfigurewidgetng.h
1/*
2 * SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#pragma once
8
9#include "kldapwidgets_export.h"
10
11#include <QWidget>
12
13class QTreeView;
14class QPushButton;
15class QToolButton;
16class QCheckBox;
17
18namespace KLDAPCore
19{
20class LdapClientSearchConfig;
21class LdapModel;
22class LdapSortProxyModel;
23}
24
25namespace KLDAPWidgets
26{
27/**
28 * @brief The LdapConfigureWidgetNg class
29 * @author Laurent Montel <montel@kde.org>
30 */
31class KLDAPWIDGETS_EXPORT LdapConfigureWidgetNg : public QWidget
32{
33 Q_OBJECT
34public:
35 explicit LdapConfigureWidgetNg(QWidget *parent = nullptr);
36 ~LdapConfigureWidgetNg() override;
37
38 void save();
39
40 [[nodiscard]] bool enablePlasmaActivities() const;
41 void setEnablePlasmaActivities(bool newEnablePlasmaActivities);
42
43Q_SIGNALS:
44 void changed(bool);
45
46private:
47 KLDAPWIDGETS_NO_EXPORT void slotAddHost();
48 KLDAPWIDGETS_NO_EXPORT void slotEditHost();
49 KLDAPWIDGETS_NO_EXPORT void slotRemoveHost();
50 KLDAPWIDGETS_NO_EXPORT void slotSelectionChanged();
51 KLDAPWIDGETS_NO_EXPORT void slotMoveUp();
52 KLDAPWIDGETS_NO_EXPORT void slotMoveDown();
53 KLDAPWIDGETS_NO_EXPORT void initGUI();
54 QTreeView *mHostListView = nullptr;
55
56 QPushButton *mAddButton = nullptr;
57 QPushButton *mEditButton = nullptr;
58 QPushButton *mRemoveButton = nullptr;
59
60 QToolButton *mUpButton = nullptr;
61 QToolButton *mDownButton = nullptr;
62 KLDAPCore::LdapClientSearchConfig *const mClientSearchConfig;
63 KLDAPCore::LdapModel *const mLdapModel;
64 KLDAPCore::LdapSortProxyModel *const mLdapSortProxyModel;
65 QCheckBox *const mLdapOnCurrentActivity;
66};
67}
The LdapConfigureWidgetNg class.
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.