File indexing completed on 2024-10-27 04:58:02

0001 /*
0002     SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 // This code was taken from kmail-account-wizard
0008 
0009 #pragma once
0010 
0011 #include "setupobject.h"
0012 
0013 class AutoconfigKolabLdap;
0014 
0015 class SetupAutoconfigKolabLdap : public SetupObject
0016 {
0017     Q_OBJECT
0018 public:
0019     /** Constructor */
0020     explicit SetupAutoconfigKolabLdap(QObject *parent = nullptr);
0021     ~SetupAutoconfigKolabLdap() override;
0022 
0023     void create() override;
0024     void destroy() override;
0025 
0026 public Q_SLOTS:
0027     Q_SCRIPTABLE void fillLdapServer(int i, QObject *) const;
0028     Q_SCRIPTABLE int countLdapServers() const;
0029 
0030     Q_SCRIPTABLE void start();
0031 
0032     Q_SCRIPTABLE void setEmail(const QString &);
0033     Q_SCRIPTABLE void setPassword(const QString &);
0034 
0035 Q_SIGNALS:
0036     void ispdbFinished(bool);
0037 
0038 private Q_SLOTS:
0039     void onIspdbFinished(bool);
0040 
0041 private:
0042     AutoconfigKolabLdap *const mIspdb;
0043 };
0044