Kgapi

drivesmodifyjob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2019 David Barchiesi <david@barchie.si>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#pragma once
10
11#include "kgapidrive_export.h"
12#include "modifyjob.h"
13
14namespace KGAPI2
15{
16
17namespace Drive
18{
19
20class KGAPIDRIVE_EXPORT DrivesModifyJob : public KGAPI2::ModifyJob
21{
22 Q_OBJECT
23
24 /**
25 * Issue the request as a domain administrator; if set to true, then all
26 * shared Drives of the domain in which the requester is an administrator
27 * are returned.
28 *
29 * Default value if missing is false.
30 *
31 * This property does not have any effect when fetching a specific event and
32 * can be modified only when the job is not running.
33 */
34 Q_PROPERTY(bool useDomainAdminAccess READ useDomainAdminAccess WRITE setUseDomainAdminAccess)
35
36public:
37 explicit DrivesModifyJob(const DrivesPtr &drives, const AccountPtr &account, QObject *parent = nullptr);
38 explicit DrivesModifyJob(const DrivesList &drives, const AccountPtr &account, QObject *parent = nullptr);
39 ~DrivesModifyJob() override;
40
41 void setUseDomainAdminAccess(bool useDomainAdminAccess);
42 [[nodiscard]] bool useDomainAdminAccess() const;
43
44protected:
45 void start() override;
46 KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, const QByteArray &rawData) override;
47
48private:
49 class Private;
51 friend class Private;
52};
53
54} // namespace Drive
55
56} // namespace KGAPI2
Abstract superclass for all jobs that somehow modify resources on Google.
Definition modifyjob.h:25
Q_SCRIPTABLE Q_NOREPLY void start()
A job to fetch a single map tile described by a StaticMapUrl.
Definition blog.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:50:41 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.