Kgapi

filecreatejob.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 "fileabstractuploadjob.h"
12#include "kgapidrive_export.h"
13
14namespace KGAPI2
15{
16
17namespace Drive
18{
19
20class KGAPIDRIVE_EXPORT FileCreateJob : public KGAPI2::Drive::FileAbstractUploadJob
21{
22 Q_OBJECT
23
24public:
25 explicit FileCreateJob(const FilePtr &metadata, const AccountPtr &account, QObject *parent = nullptr);
26 explicit FileCreateJob(const FilesList &metadata, const AccountPtr &account, QObject *parent = nullptr);
27 explicit FileCreateJob(const QString &filePath, const AccountPtr &account, QObject *parent = nullptr);
28 explicit FileCreateJob(const QString &filePath, const FilePtr &metaData, const AccountPtr &account, QObject *parent = nullptr);
29 explicit FileCreateJob(const QStringList &filePaths, const AccountPtr &account, QObject *parent = nullptr);
30 explicit FileCreateJob(const QMap<QString /* filepath */, FilePtr /* metadata */> &files, const AccountPtr &account, QObject *parent = nullptr);
31 ~FileCreateJob() override;
32
33protected:
34 QNetworkReply *dispatch(QNetworkAccessManager *accessManager, const QNetworkRequest &request, const QByteArray &data) override;
35
36 [[nodiscard]] QUrl createUrl(const QString &filePath, const FilePtr &metaData) 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 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.