KIO
transferjob.cpp
28 d->m_readChannelFinishedConnection = connect(d->m_outgoingDataSource, &QIODevice::readChannelFinished, this, [d]() {
43 qCWarning(KIO_CORE) << "mimeType() not emitted when sending first data!; job URL =" << d->m_url << "data size =" << _data.size();
237 // qDebug() << "send" << dataForWorker.size() / 1024 / 1024 << "MB of data in TransferJob::dataReq. This needs to be split, which requires a copy. Fix
257 qCWarning(KIO_CORE) << "mimetype() emitted again, or after sending first data!; job URL =" << d->m_url;
bool isNull() const const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setTotalSize(KIO::filesize_t bytes)
Set the total size of data that we are going to send in a put job.
Definition: transferjob.cpp:53
WriteOnly
void setErrorText(const QString &errorText)
void permanentRedirection(KIO::Job *job, const QUrl &fromUrl, const QUrl &toUrl)
Signals a permanent redirection.
Q_EMITQ_EMIT
Type type(const QSqlDatabase &db)
Definition: simplejob.h:26
QString mimetype() const
Call this in the slot connected to result, and only after making sure no error happened.
Definition: transferjob.cpp:206
Q_SCRIPTABLE Q_NOREPLY void start()
void addMetaData(const QString &key, const QString &value)
Add key/value pair to the meta data that is sent to the worker.
Definition: job.cpp:228
Definition: metadata.h:22
KIOCORE_EXPORT TransferJob * get(const QUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
Get (means: read).
Definition: transferjob.cpp:471
void clear()
void sendAsyncData(const QByteArray &data)
Provide data to the job when async data is enabled.
Definition: transferjob.cpp:171
bool authorizeUrlAction(const QString &action, const QUrl &baseURL, const QUrl &destURL)
Returns whether a certain URL related action is authorized.
Definition: kurlauthorized.cpp:25
QString queryMetaData(const QString &key)
Query meta data received from the worker.
Definition: job.cpp:217
QUrl redirectUrl() const
After the job has finished, it will return the final url in case a redirection has happened.
Definition: transferjob.cpp:211
virtual void slotFinished()
Called when the worker marks the job as finished.
Definition: simplejob.cpp:200
virtual void slotMetaData(const KIO::MetaData &_metaData)
MetaData from the worker is received.
Definition: simplejob.cpp:302
void readyRead()
Definition: job_base.h:44
QueuedConnection
void readChannelFinished()
bool isEmpty() const const
void resize(int size)
void setProcessedAmount(Unit unit, qulonglong amount)
void setModificationTime(const QDateTime &mtime)
Sets the modification time of the file to be created (by KIO::put) Note that some KIO workers might i...
Definition: transferjob.cpp:466
void processedAmount(KJob *job, KJob::Unit unit, qulonglong amount)
void mimeTypeFound(KIO::Job *job, const QString &mimeType)
MIME type determined.
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
virtual void slotResult(KJob *job)
int size() const const
@ HideProgressInfo
Hide progress information dialog, i.e. don't show a GUI.
Definition: job_base.h:275
void truncate(int pos)
int error() const
void setReportDataSent(bool enabled)
When enabled, the job reports the amount of data that has been sent, instead of the amount of data th...
Definition: transferjob.cpp:188
QString toString(Qt::DateFormat format) const const
void data(KIO::Job *job, const QByteArray &data)
Data from the worker has arrived.
bool reportDataSent() const
Returns whether the job reports the amount of data that has been sent (true), or whether the job repo...
Definition: transferjob.cpp:200
void setError(int errorCode)
ISODate
Q_D(Todo)
char * data()
Bytes
Definition: transferjob.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:55:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:55:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.