Changeset View
Changeset View
Standalone View
Standalone View
src/lib/removeaccountjob.h
- This file was copied from src/lib/accountservicetogglejob.h.
Show All 10 Lines | |||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
12 | * GNU General Public License for more details. * | 12 | * GNU General Public License for more details. * | ||
13 | * * | 13 | * * | ||
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 REMOVEACCOUNT_H | ||
20 | #define ACCOUNTSERVICETOGGLE_H | 20 | #define REMOVEACCOUNT_H | ||
21 | 21 | | |||
22 | #include "kaccounts_export.h" | 22 | #include "kaccounts_export.h" | ||
23 | 23 | | |||
24 | #include <kjob.h> | 24 | #include <kjob.h> | ||
25 | 25 | | |||
26 | #include <QStringList> | 26 | #include <QString> | ||
27 | 27 | | |||
28 | class KACCOUNTS_EXPORT AccountServiceToggleJob : public KJob | 28 | class KACCOUNTS_EXPORT RemoveAccountJob : public KJob | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | 31 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | ||
32 | Q_PROPERTY(QString serviceId READ serviceId WRITE setServiceId NOTIFY serviceIdChanged) | | |||
33 | Q_PROPERTY(bool serviceEnabled READ serviceEnabled WRITE setServiceEnabled NOTIFY serviceEnabledChanged) | | |||
34 | public: | 32 | public: | ||
35 | explicit AccountServiceToggleJob(QObject* parent = nullptr); | 33 | explicit RemoveAccountJob(QObject* parent = nullptr); | ||
36 | virtual ~AccountServiceToggleJob(); | 34 | virtual ~RemoveAccountJob(); | ||
37 | 35 | | |||
38 | void start() override; | 36 | void start() override; | ||
39 | 37 | | |||
40 | QString accountId() const; | 38 | QString accountId() const; | ||
41 | void setAccountId(const QString& accountId); | 39 | void setAccountId(const QString& accountId); | ||
42 | Q_SIGNAL void accountIdChanged(); | 40 | Q_SIGNAL void accountIdChanged(); | ||
43 | | ||||
44 | QString serviceId() const; | | |||
45 | void setServiceId(const QString& serviceId); | | |||
46 | Q_SIGNAL void serviceIdChanged(); | | |||
47 | | ||||
48 | bool serviceEnabled() const; | | |||
49 | void setServiceEnabled(bool serviceEnabled); | | |||
50 | Q_SIGNAL void serviceEnabledChanged(); | | |||
51 | private: | 41 | private: | ||
52 | class Private; | 42 | class Private; | ||
53 | Private* d; | 43 | Private* d; | ||
54 | }; | 44 | }; | ||
55 | #endif//ACCOUNTSERVICETOGGLE_H | 45 | #endif//REMOVEACCOUNT_H |