Kgapi
fileabstractresumablejob.h
35 * @see <a href="https://developers.google.com/drive/api/v2/manage-uploads#resumable">Perform a resumable upload</a>
62 explicit FileAbstractResumableJob(const FilePtr &metadata, const AccountPtr &account, QObject *parent = nullptr);
72 explicit FileAbstractResumableJob(QIODevice *device, const AccountPtr &account, QObject *parent = nullptr);
83 explicit FileAbstractResumableJob(QIODevice *device, const FilePtr &metadata, const AccountPtr &account, QObject *parent = nullptr);
141 void dispatchRequest(QNetworkAccessManager *accessManager, const QNetworkRequest &request, const QByteArray &data, const QString &contentType) override;
Abstract superclass for KGAPI2::Drive::File create or modify jobs that use chunked uploading of the f...
Definition fileabstractresumablejob.h:42
void write(const QByteArray &data)
This function writes all the bytes in data to the upload session.
Definition fileabstractresumablejob.cpp:235
void readyWrite(KGAPI2::Drive::FileAbstractResumableJob *job)
Emitted when job requires more data to proceed.
void handleReply(const QNetworkReply *reply, const QByteArray &rawData) override
KGAPI2::Job::handleReply implementation.
Definition fileabstractresumablejob.cpp:302
~FileAbstractResumableJob() override
Destructor.
FilePtr metadata() const
Returns metadata supplied at Job creation or retrieved on Job completion.
Definition fileabstractresumablejob.cpp:220
virtual QUrl createUrl()=0
Generates url that will be used during upload session start.
FileAbstractResumableJob(const AccountPtr &account, QObject *parent=nullptr)
Constructs a job that will upload an Untitled file in the users root folder.
Definition fileabstractresumablejob.cpp:190
void dispatchRequest(QNetworkAccessManager *accessManager, const QNetworkRequest &request, const QByteArray &data, const QString &contentType) override
KGAPI2::Job::dispatchRequest implementation.
Definition fileabstractresumablejob.cpp:281
void setUploadSize(int size)
Sets the total upload size and is required for progress reporting via the Job::progress() signal.
Definition fileabstractresumablejob.cpp:225
Q_SCRIPTABLE Q_NOREPLY void start()
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:30 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:30 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.