Changeset View
Changeset View
Standalone View
Standalone View
kaccounts/kaccounts-ktp-plugin.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | namespace Accounts { | 28 | namespace Accounts { | ||
29 | class Manager; | 29 | class Manager; | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | class KAccountsKTpPlugin : public KAccountsDPlugin | 32 | class KAccountsKTpPlugin : public KAccountsDPlugin | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | Q_PLUGIN_METADATA(IID "org.kde.kaccounts.DPlugin") | | |||
36 | Q_INTERFACES(KAccountsDPlugin) | | |||
37 | | ||||
38 | public: | 35 | public: | ||
39 | KAccountsKTpPlugin(QObject *parent = nullptr); | 36 | KAccountsKTpPlugin(QObject *parent, const QVariantList &args); | ||
40 | ~KAccountsKTpPlugin() override; | 37 | ~KAccountsKTpPlugin() override; | ||
41 | 38 | | |||
42 | public Q_SLOTS: | 39 | public Q_SLOTS: | ||
43 | void onAccountCreated(const Accounts::AccountId accountId, const Accounts::ServiceList &serviceList) override; | 40 | void onAccountCreated(const Accounts::AccountId accountId, const Accounts::ServiceList &serviceList) override; | ||
44 | void onAccountRemoved(const Accounts::AccountId accountId) override; | 41 | void onAccountRemoved(const Accounts::AccountId accountId) override; | ||
45 | void onServiceEnabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | 42 | void onServiceEnabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | ||
46 | void onServiceDisabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | 43 | void onServiceDisabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | ||
47 | 44 | | |||
Show All 11 Lines |