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 "createjob.h"
0010 #include "kgapiblogger_export.h"
0011 
0012 namespace KGAPI2
0013 {
0014 namespace Blogger
0015 {
0016 
0017 class KGAPIBLOGGER_EXPORT PageCreateJob : public KGAPI2::CreateJob
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit PageCreateJob(const PagePtr &page, const AccountPtr &account, QObject *parent = nullptr);
0023     ~PageCreateJob() override;
0024 
0025 protected:
0026     void start() override;
0027     ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
0028 
0029 private:
0030     class Private;
0031     Private *const d;
0032 };
0033 }
0034 }