File indexing completed on 2025-02-02 05:08:37

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