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 | /** | ||
29 | * @brief A job which will attempt to remove the specified account | ||||
30 | */ | ||||
31 | class KACCOUNTS_EXPORT RemoveAccountJob : public KJob | ||||
29 | { | 32 | { | ||
30 | Q_OBJECT | 33 | Q_OBJECT | ||
31 | Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) | 34 | 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: | 35 | public: | ||
35 | explicit AccountServiceToggleJob(QObject* parent = nullptr); | 36 | explicit RemoveAccountJob(QObject* parent = nullptr); | ||
36 | virtual ~AccountServiceToggleJob(); | 37 | virtual ~RemoveAccountJob(); | ||
37 | 38 | | |||
38 | void start() override; | 39 | void start() override; | ||
39 | 40 | | |||
40 | QString accountId() const; | 41 | QString accountId() const; | ||
41 | void setAccountId(const QString& accountId); | 42 | void setAccountId(const QString& accountId); | ||
42 | Q_SIGNAL void accountIdChanged(); | 43 | 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: | 44 | private: | ||
52 | class Private; | 45 | class Private; | ||
53 | Private* d; | 46 | Private* d; | ||
54 | }; | 47 | }; | ||
55 | #endif//ACCOUNTSERVICETOGGLE_H | 48 | #endif//REMOVEACCOUNT_H |