File indexing completed on 2024-05-12 05:22:11
0001 /* 0002 * SPDX-FileCopyrightText: 2014 Daniel Vrátil <dvratil@redhat.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "deletejob.h" 0010 #include "kgapiblogger_export.h" 0011 0012 namespace KGAPI2 0013 { 0014 namespace Blogger 0015 { 0016 0017 class KGAPIBLOGGER_EXPORT PostDeleteJob : public KGAPI2::DeleteJob 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit PostDeleteJob(const QString &blogId, const QString &postId, const AccountPtr &account, QObject *parent = nullptr); 0023 explicit PostDeleteJob(const PostPtr &post, const AccountPtr &account, QObject *parent = nullptr); 0024 ~PostDeleteJob() override; 0025 0026 protected: 0027 void start() override; 0028 void handleReply(const QNetworkReply *reply, const QByteArray &rawData) override; 0029 0030 private: 0031 class Private; 0032 Private *const d; 0033 friend class Private; 0034 }; 0035 } 0036 }