Kgapi

filetrashjob.h
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2013 Daniel Vrátil <dvratil@redhat.com>
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 "fileabstractmodifyjob.h"
12#include "kgapidrive_export.h"
13
15class QNetworkRequest;
16
17namespace KGAPI2
18{
19
20namespace Drive
21{
22
23class KGAPIDRIVE_EXPORT FileTrashJob : public KGAPI2::Drive::FileAbstractModifyJob
24{
25 Q_OBJECT
26
27public:
28 explicit FileTrashJob(const QString &fileId, const AccountPtr &account, QObject *parent = nullptr);
29 explicit FileTrashJob(const QStringList &filesIds, const AccountPtr &account, QObject *parent = nullptr);
30 explicit FileTrashJob(const FilePtr &file, const AccountPtr &account, QObject *parent = nullptr);
31 explicit FileTrashJob(const FilesList &files, const AccountPtr &account, QObject *parent = nullptr);
32 ~FileTrashJob() override;
33
34protected:
35 [[nodiscard]] QUrl url(const QString &fileId) override;
36 void dispatchRequest(QNetworkAccessManager *accessManager, const QNetworkRequest &request, const QByteArray &data, const QString &contentType) override;
37
38private:
39 class Private;
40 Private *const d;
41 friend class Private;
42};
43
44} // namespace Drive
45
46} // namespace KGAPI2
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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.