Kgapi

fileresumablecreatejob.cpp
1/*
2 * This file is part of LibKGAPI library
3 *
4 * SPDX-FileCopyrightText: 2020 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#include "fileresumablecreatejob.h"
10#include "driveservice.h"
11
12using namespace KGAPI2;
13using namespace KGAPI2::Drive;
14
15class Q_DECL_HIDDEN FileResumableCreateJob::Private
16{
17};
18
19FileResumableCreateJob::FileResumableCreateJob(const AccountPtr &account, QObject *parent)
20 : FileAbstractResumableJob(account, parent)
21 , d(new Private)
22{
23}
24
25FileResumableCreateJob::FileResumableCreateJob(const FilePtr &metadata, const AccountPtr &account, QObject *parent)
26 : FileAbstractResumableJob(metadata, account, parent)
27 , d(new Private)
28{
29}
30
31FileResumableCreateJob::FileResumableCreateJob(QIODevice *device, const AccountPtr &account, QObject *parent)
32 : FileAbstractResumableJob(device, account, parent)
33 , d(new Private)
34{
35}
36
37FileResumableCreateJob::FileResumableCreateJob(QIODevice *device, const FilePtr &metadata, const AccountPtr &account, QObject *parent)
38 : FileAbstractResumableJob(device, metadata, account, parent)
39 , d(new Private)
40{
41}
42
43FileResumableCreateJob::~FileResumableCreateJob() = default;
44
45QUrl FileResumableCreateJob::createUrl()
46{
47 return DriveService::uploadMediaFileUrl();
48}
49
50#include "moc_fileresumablecreatejob.cpp"
Abstract superclass for KGAPI2::Drive::File create or modify jobs that use chunked uploading of the f...
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 Mon Nov 4 2024 16:36:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.