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 "kgapiblogger_export.h" 0010 #include "modifyjob.h" 0011 0012 namespace KGAPI2 0013 { 0014 namespace Blogger 0015 { 0016 0017 class KGAPIBLOGGER_EXPORT CommentDeleteContentJob : public KGAPI2::ModifyJob 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit CommentDeleteContentJob(const QString &blogId, 0023 const QString &postId, 0024 const QString &commentId, 0025 const AccountPtr &account, 0026 QObject *parent = nullptr); 0027 explicit CommentDeleteContentJob(const CommentPtr &comment, const AccountPtr &account, QObject *parent = nullptr); 0028 ~CommentDeleteContentJob() override; 0029 0030 protected: 0031 void start() override; 0032 ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override; 0033 0034 private: 0035 class Private; 0036 Private *const d; 0037 friend class Private; 0038 }; 0039 } 0040 }