File indexing completed on 2025-01-26 04:52:14

0001 /*
0002   This file is part of libkldap.
0003 
0004   SPDX-FileCopyrightText: 2002-2010 Tobias Koenig <tokoe@kde.org>
0005 
0006   SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #pragma once
0010 
0011 #include "kldapwidgets_export.h"
0012 #include <QDialog>
0013 
0014 namespace KLDAPCore
0015 {
0016 class LdapServer;
0017 }
0018 namespace KLDAPWidgets
0019 {
0020 class AddHostDialogPrivate;
0021 /**
0022  * @brief The AddHostDialog class
0023  * @author Laurent Montel <montel@kde.org>
0024  */
0025 class KLDAPWIDGETS_EXPORT AddHostDialog : public QDialog
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030     explicit AddHostDialog(KLDAPCore::LdapServer *server, QWidget *parent = nullptr);
0031     ~AddHostDialog() override;
0032 
0033 Q_SIGNALS:
0034     void changed(bool);
0035 
0036 private Q_SLOTS:
0037     KLDAPWIDGETS_NO_EXPORT void slotHostEditChanged(const QString &);
0038     KLDAPWIDGETS_NO_EXPORT void slotOk();
0039 
0040 private:
0041     KLDAPWIDGETS_NO_EXPORT void readConfig();
0042     KLDAPWIDGETS_NO_EXPORT void writeConfig();
0043     std::unique_ptr<AddHostDialogPrivate> const d;
0044 };
0045 }