QCefView
|
Represents the download item. More...
#include <QCefDownloadItem.h>
Public Member Functions | |
~QCefDownloadItem () | |
Destructs the download item instance. | |
void | start (const QString &path, bool useDefaultDialog=true) const |
Starts to download the item. | |
void | pause () const |
Pauses the download. | |
void | resume () const |
Resume the download. | |
void | cancel () const |
Cancels the download. | |
bool | isStarted () const |
Gets whether the download is started. | |
bool | isInProgress () const |
Gets whether the download is in progress. | |
bool | isComplete () const |
Gets whether the download is complete. | |
bool | isCanceled () const |
Gets whether the download has been canceled or interrupted. | |
qint64 | currentSpeed () const |
Gets current download speed. | |
int | percentComplete () const |
Gets the completion percentage. | |
qint64 | totalBytes () const |
Gets total number of bytes. | |
qint64 | receivedBytes () const |
Gets number of received bytes. | |
QDateTime | startTime () const |
Gets the time that the download started. | |
QDateTime | endTime () const |
Gets the time that the download ended. | |
QString | fullPath () const |
Gets the full path to the downloaded or downloading file. | |
quint32 | id () const |
Gets the unique identifier for this download. | |
QString | url () const |
Gets the URL. | |
QString | originalUrl () const |
Gets the original URL before any redirections. | |
QString | suggestedFileName () const |
Gets the suggested file name. | |
QString | contentDisposition () const |
Gets the content disposition. | |
QString | mimeType () const |
Gets the mime type. | |
Represents the download item.
QCefDownloadItem::~QCefDownloadItem | ( | ) |
Destructs the download item instance.
void QCefDownloadItem::start | ( | const QString & | path, |
bool | useDefaultDialog = true ) const |
Starts to download the item.
path | The full path name (must include file name) to save the downloaded item |
useDefaultDialog | Whether to use the default 'Save As...' dialog or not |
The 'path' parameter only works when 'useDefaultDialog' is set to false. If you set 'useDefaultDialog' to true then you cannot control the initial location of the opened 'Save As...' dialog, it is determined by CEF internal implementation.
void QCefDownloadItem::pause | ( | ) | const |
Pauses the download.
void QCefDownloadItem::resume | ( | ) | const |
Resume the download.
void QCefDownloadItem::cancel | ( | ) | const |
Cancels the download.
bool QCefDownloadItem::isStarted | ( | ) | const |
Gets whether the download is started.
bool QCefDownloadItem::isInProgress | ( | ) | const |
Gets whether the download is in progress.
bool QCefDownloadItem::isComplete | ( | ) | const |
Gets whether the download is complete.
bool QCefDownloadItem::isCanceled | ( | ) | const |
Gets whether the download has been canceled or interrupted.
qint64 QCefDownloadItem::currentSpeed | ( | ) | const |
Gets current download speed.
int QCefDownloadItem::percentComplete | ( | ) | const |
Gets the completion percentage.
qint64 QCefDownloadItem::totalBytes | ( | ) | const |
Gets total number of bytes.
qint64 QCefDownloadItem::receivedBytes | ( | ) | const |
Gets number of received bytes.
QDateTime QCefDownloadItem::startTime | ( | ) | const |
Gets the time that the download started.
QDateTime QCefDownloadItem::endTime | ( | ) | const |
Gets the time that the download ended.
QString QCefDownloadItem::fullPath | ( | ) | const |
Gets the full path to the downloaded or downloading file.
quint32 QCefDownloadItem::id | ( | ) | const |
Gets the unique identifier for this download.
QString QCefDownloadItem::url | ( | ) | const |
Gets the URL.
QString QCefDownloadItem::originalUrl | ( | ) | const |
Gets the original URL before any redirections.
QString QCefDownloadItem::suggestedFileName | ( | ) | const |
Gets the suggested file name.
QString QCefDownloadItem::contentDisposition | ( | ) | const |
Gets the content disposition.
QString QCefDownloadItem::mimeType | ( | ) | const |
Gets the mime type.