Changeset View
Changeset View
Standalone View
Standalone View
src/jobs/accountservicetogglejob.h
- This file was copied from src/jobs/accountservicetoggle.h.
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software * | 15 | * along with this program; if not, write to the Free Software * | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | ||
17 | *************************************************************************************/ | 17 | *************************************************************************************/ | ||
18 | 18 | | |||
19 | #ifndef ACCOUNTSERVICETOGGLE_H | 19 | #ifndef ACCOUNTSERVICETOGGLE_H | ||
20 | #define ACCOUNTSERVICETOGGLE_H | 20 | #define ACCOUNTSERVICETOGGLE_H | ||
21 | 21 | | |||
22 | 22 | | |||
23 | #include "kaccounts_export.h" | ||||
24 | | ||||
23 | #include <kjob.h> | 25 | #include <kjob.h> | ||
24 | 26 | | |||
25 | #include <QStringList> | 27 | #include <QStringList> | ||
26 | 28 | | |||
27 | class AccountServiceToggle : public KJob | 29 | class KACCOUNTS_EXPORT AccountServiceToggleJob : public KJob | ||
28 | { | 30 | { | ||
29 | Q_OBJECT | 31 | Q_OBJECT | ||
30 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | 32 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | ||
31 | Q_PROPERTY(QString serviceId READ serviceId WRITE setServiceId NOTIFY serviceIdChanged) | 33 | Q_PROPERTY(QString serviceId READ serviceId WRITE setServiceId NOTIFY serviceIdChanged) | ||
32 | Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged) | 34 | Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged) | ||
33 | public: | 35 | public: | ||
34 | explicit AccountServiceToggle(QObject* parent = nullptr); | 36 | explicit AccountServiceToggleJob(QObject* parent = nullptr); | ||
35 | virtual ~AccountServiceToggle(); | 37 | virtual ~AccountServiceToggleJob(); | ||
36 | 38 | | |||
37 | void start() override; | 39 | void start() override; | ||
38 | 40 | | |||
39 | QString accountId() const; | 41 | QString accountId() const; | ||
40 | void setAccountId(const QString& accountId); | 42 | void setAccountId(const QString& accountId); | ||
41 | Q_SIGNAL void accountIdChanged(); | 43 | Q_SIGNAL void accountIdChanged(); | ||
42 | 44 | | |||
43 | QString serviceId() const; | 45 | QString serviceId() const; | ||
Show All 11 Lines |