File indexing completed on 2023-12-10 08:22:07

0001 /*
0002  *  SPDX-FileCopyrightText: 2013 Alejandro Fiestas Olivares <afiestas@kde.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef ACCOUNTS_DAEMON_H
0008 #define ACCOUNTS_DAEMON_H
0009 
0010 #include <KDEDModule>
0011 
0012 #include <Accounts/Account>
0013 
0014 class KAccountsDPlugin;
0015 
0016 class KDEDAccounts : public KDEDModule
0017 {
0018     Q_OBJECT
0019     Q_CLASSINFO("D-Bus Interface", "org.kde.Accounts")
0020 
0021 public:
0022     explicit KDEDAccounts(QObject *parent, const QList<QVariant> &);
0023     ~KDEDAccounts() override;
0024 
0025 public Q_SLOTS:
0026     void startDaemon();
0027     void accountCreated(const Accounts::AccountId id);
0028     void accountRemoved(const Accounts::AccountId id);
0029     void enabledChanged(const QString &serviceName, bool enabled);
0030 
0031 private:
0032     void monitorAccount(const Accounts::AccountId id);
0033 
0034     QList<KAccountsDPlugin *> m_plugins;
0035 };
0036 
0037 #endif /*ACCOUNTS_DAEMON_H*/