Changeset View
Changeset View
Standalone View
Standalone View
kaccounts/kaccountsplugin.h
Show All 18 Lines | |||||
19 | 19 | | |||
20 | #pragma once | 20 | #pragma once | ||
21 | 21 | | |||
22 | #include <KAccounts/KAccountsDPlugin> | 22 | #include <KAccounts/KAccountsDPlugin> | ||
23 | 23 | | |||
24 | class GoogleDrivePlugin : public KAccountsDPlugin | 24 | class GoogleDrivePlugin : public KAccountsDPlugin | ||
25 | { | 25 | { | ||
26 | Q_OBJECT | 26 | Q_OBJECT | ||
27 | Q_PLUGIN_METADATA(IID "org.kde.kaccounts.DPlugin") | | |||
28 | Q_INTERFACES(KAccountsDPlugin) | | |||
29 | | ||||
30 | public: | 27 | public: | ||
31 | explicit GoogleDrivePlugin(QObject *parent = nullptr); | 28 | explicit GoogleDrivePlugin(QObject *parent, const QVariantList &args); | ||
32 | 29 | | |||
33 | public slots: | 30 | public slots: | ||
34 | void onAccountCreated(const Accounts::AccountId accountId, const Accounts::ServiceList &serviceList) override; | 31 | void onAccountCreated(const Accounts::AccountId accountId, const Accounts::ServiceList &serviceList) override; | ||
35 | void onAccountRemoved(const Accounts::AccountId accountId) override; | 32 | void onAccountRemoved(const Accounts::AccountId accountId) override; | ||
36 | void onServiceEnabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | 33 | void onServiceEnabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | ||
37 | void onServiceDisabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | 34 | void onServiceDisabled(const Accounts::AccountId accountId, const Accounts::Service &service) override; | ||
38 | }; | 35 | }; |