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

0001 /*
0002  * This file is part of LibKGAPI library
0003  *
0004  * SPDX-FileCopyrightText: 2019 David Barchiesi <david@barchie.si>
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 "createjob.h"
0012 #include "kgapidrive_export.h"
0013 
0014 namespace KGAPI2
0015 {
0016 
0017 namespace Drive
0018 {
0019 
0020 class KGAPIDRIVE_DEPRECATED_EXPORT TeamdriveCreateJob : public KGAPI2::CreateJob
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     TeamdriveCreateJob(const QString &requestId, const TeamdrivePtr &teamdrive, const AccountPtr &account, QObject *parent = nullptr);
0026     TeamdriveCreateJob(const QString &requestId, const TeamdrivesList &teamdrives, const AccountPtr &account, QObject *parent = nullptr);
0027     ~TeamdriveCreateJob() override;
0028 
0029     /**
0030      * @brief Returns the requestId used in this create request.
0031      */
0032     [[nodiscard]] QString requestId() const;
0033 
0034 protected:
0035     void start() override;
0036     KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
0037 
0038 private:
0039     class Private;
0040     QScopedPointer<Private> d;
0041     friend class Private;
0042 };
0043 
0044 } // namespace Drive
0045 
0046 } // namespace KGAPI2