KLdap

ldapconfigurewidget.h
1/*
2 * SPDX-FileCopyrightText: 2019-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 QListWidget;
14class QPushButton;
15class QToolButton;
16class QListWidgetItem;
17
18namespace KLDAPCore
19{
20class LdapClientSearchConfig;
21}
22
23namespace KLDAPWidgets
24{
25/**
26 * @brief The LdapConfigureWidget class
27 * @author Laurent Montel <montel@kde.org>
28 */
29class KLDAPWIDGETS_EXPORT LdapConfigureWidget : public QWidget
30{
31 Q_OBJECT
32public:
33 explicit LdapConfigureWidget(QWidget *parent = nullptr);
34 ~LdapConfigureWidget() override;
35
36 void load();
37 void save();
38
39Q_SIGNALS:
40 void changed(bool);
41
42private:
43 KLDAPWIDGETS_NO_EXPORT void slotAddHost();
44 KLDAPWIDGETS_NO_EXPORT void slotEditHost();
45 KLDAPWIDGETS_NO_EXPORT void slotRemoveHost();
46 KLDAPWIDGETS_NO_EXPORT void slotSelectionChanged(QListWidgetItem *);
47 KLDAPWIDGETS_NO_EXPORT void slotItemClicked(QListWidgetItem *);
48 KLDAPWIDGETS_NO_EXPORT void slotMoveUp();
49 KLDAPWIDGETS_NO_EXPORT void slotMoveDown();
50 KLDAPWIDGETS_NO_EXPORT void initGUI();
51
52 QListWidget *mHostListView = nullptr;
53
54 QPushButton *mAddButton = nullptr;
55 QPushButton *mEditButton = nullptr;
56 QPushButton *mRemoveButton = nullptr;
57
58 QToolButton *mUpButton = nullptr;
59 QToolButton *mDownButton = nullptr;
60 KLDAPCore::LdapClientSearchConfig *const mClientSearchConfig;
61};
62}
The LdapConfigureWidget 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.