File indexing completed on 2024-09-15 04:26:17
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 namespace KAccounts 0015 { 0016 class KAccountsDPlugin; 0017 }; 0018 0019 class KDEDAccounts : public KDEDModule 0020 { 0021 Q_OBJECT 0022 Q_CLASSINFO("D-Bus Interface", "org.kde.Accounts") 0023 0024 public: 0025 explicit KDEDAccounts(QObject *parent, const QList<QVariant> &); 0026 ~KDEDAccounts() override; 0027 0028 public Q_SLOTS: 0029 void startDaemon(); 0030 void accountCreated(const Accounts::AccountId id); 0031 void accountRemoved(const Accounts::AccountId id); 0032 void enabledChanged(const QString &serviceName, bool enabled); 0033 0034 private: 0035 void monitorAccount(const Accounts::AccountId id); 0036 0037 QList<KAccounts::KAccountsDPlugin *> m_plugins; 0038 }; 0039 0040 #endif /*ACCOUNTS_DAEMON_H*/