File indexing completed on 2024-03-24 04:59:29
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef REMOVEACCOUNT_H 0008 #define REMOVEACCOUNT_H 0009 0010 #include "kaccounts_export.h" 0011 0012 #include <kjob.h> 0013 0014 #include <QString> 0015 0016 namespace KAccounts 0017 { 0018 0019 /** 0020 * @brief A job which will attempt to remove the specified account 0021 */ 0022 class KACCOUNTS_EXPORT RemoveAccountJob : public KJob 0023 { 0024 Q_OBJECT 0025 Q_PROPERTY(QString accountId READ accountId WRITE setAccountId NOTIFY accountIdChanged) 0026 public: 0027 explicit RemoveAccountJob(QObject *parent = nullptr); 0028 ~RemoveAccountJob() override; 0029 0030 void start() override; 0031 0032 QString accountId() const; 0033 void setAccountId(const QString &accountId); 0034 Q_SIGNAL void accountIdChanged(); 0035 0036 private: 0037 class Private; 0038 Private *d; 0039 }; 0040 0041 }; 0042 0043 #endif // REMOVEACCOUNT_H