Changeset View
Changeset View
Standalone View
Standalone View
src/lib/accountservicetogglejob.h
- This file was moved from src/jobs/accountservicetoggle.h.
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU General Public License * | 14 | * You should have received a copy of the GNU General Public License * | ||
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 | #include "kaccounts_export.h" | ||||
22 | 23 | | |||
23 | #include <kjob.h> | 24 | #include <kjob.h> | ||
24 | 25 | | |||
25 | #include <QStringList> | 26 | #include <QStringList> | ||
26 | 27 | | |||
27 | class AccountServiceToggle : public KJob | 28 | class KACCOUNTS_EXPORT AccountServiceToggleJob : public KJob | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | 31 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | ||
31 | Q_PROPERTY(QString serviceId READ serviceId WRITE setServiceId NOTIFY serviceIdChanged) | 32 | Q_PROPERTY(QString serviceId READ serviceId WRITE setServiceId NOTIFY serviceIdChanged) | ||
32 | Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged) | 33 | Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged) | ||
33 | public: | 34 | public: | ||
34 | explicit AccountServiceToggle(QObject* parent = nullptr); | 35 | explicit AccountServiceToggleJob(QObject* parent = nullptr); | ||
35 | virtual ~AccountServiceToggle(); | 36 | virtual ~AccountServiceToggleJob(); | ||
36 | 37 | | |||
37 | void start() override; | 38 | void start() override; | ||
38 | 39 | | |||
39 | QString accountId() const; | 40 | QString accountId() const; | ||
40 | void setAccountId(const QString& accountId); | 41 | void setAccountId(const QString& accountId); | ||
41 | Q_SIGNAL void accountIdChanged(); | 42 | Q_SIGNAL void accountIdChanged(); | ||
42 | 43 | | |||
43 | QString serviceId() const; | 44 | QString serviceId() const; | ||
Show All 11 Lines |