File indexing completed on 2024-05-12 05:22:16

0001 /*
0002  * This file is part of LibKGAPI library
0003  *
0004  * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #pragma once
0010 
0011 #include "fetchjob.h"
0012 #include "kgapidrive_export.h"
0013 
0014 namespace KGAPI2
0015 {
0016 
0017 namespace Drive
0018 {
0019 
0020 class KGAPIDRIVE_EXPORT AppFetchJob : public KGAPI2::FetchJob
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit AppFetchJob(const AccountPtr &account, QObject *parent = nullptr);
0025     explicit AppFetchJob(const QString &appId, const AccountPtr &account, QObject *parent = nullptr);
0026     ~AppFetchJob() override;
0027 
0028 protected:
0029     void start() override;
0030     KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
0031 
0032 private:
0033     class Private;
0034     Private *const d;
0035     friend class Private;
0036 };
0037 
0038 } // namespace Drive
0039 
0040 } // namespace KGAPI2