All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
WebBrowserCef::DownloadItem Class Reference

Public Member Functions

CefRefPtr< CefDownloadItem > cefDownloadItem ()
 cefDownloadItem More...
 
QString contentDisposition ()
 contentDisposition More...
 
int64 currentSpeed ()
 currentSpeed More...
 
 DownloadItem (CefRefPtr< CefDownloadItem > item)
 DownloadItem - construct DownloadItem from the CEF item. More...
 
 DownloadItem (const DownloadItem &)=delete
 
QDateTime endTime ()
 endTime More...
 
QString fullPath ()
 fullPath More...
 
uint32 id ()
 id More...
 
bool isCanceled ()
 isCanceled More...
 
bool isComplete ()
 isComplete More...
 
bool isInProgress ()
 isInProgress More...
 
QString mimeType ()
 mimeType More...
 
DownloadItemoperator= (const DownloadItem &)=delete
 
QString originalUrl ()
 originalUrl More...
 
float progress ()
 progress More...
 
int64 receivedBytes ()
 receivedBytes More...
 
QDateTime startTime ()
 startTime More...
 
QString suggestedFilename ()
 suggestedFilename More...
 
int64 totalBytes ()
 totalBytes More...
 
QString url ()
 url More...
 

Protected Member Functions

void suggestName (const CefString &suggestedName)
 

Friends

class DownloadHandler
 

Constructor & Destructor Documentation

WebBrowserCef::DownloadItem::DownloadItem ( CefRefPtr< CefDownloadItem >  item)

DownloadItem - construct DownloadItem from the CEF item.

Parameters
itemNOTE - this method is called by the DownloadHandler and a pointer to the resulting object is passed to subclasses of DownloadHandler so this method should not generally be called directly

Member Function Documentation

CefRefPtr<CefDownloadItem> WebBrowserCef::DownloadItem::cefDownloadItem ( )

cefDownloadItem

Returns
A pointer to the underlying CEF download structure - this is provided for completeness but is not required to implement downloads
QString WebBrowserCef::DownloadItem::contentDisposition ( )

contentDisposition

Returns
The content disposition
int64 WebBrowserCef::DownloadItem::currentSpeed ( )

currentSpeed

Returns
A simple speed estimate in bytes/s
QDateTime WebBrowserCef::DownloadItem::endTime ( )

endTime

Returns
The time that the download ended
QString WebBrowserCef::DownloadItem::fullPath ( )

fullPath

Returns
The full path to the downloaded or downloading file
uint32 WebBrowserCef::DownloadItem::id ( )

id

Returns
The unique identifier for this download
bool WebBrowserCef::DownloadItem::isCanceled ( )

isCanceled

Returns
True if download has been cancelled or interrupted
bool WebBrowserCef::DownloadItem::isComplete ( )

isComplete

Returns
True if the download is complete
bool WebBrowserCef::DownloadItem::isInProgress ( )

isInProgress

Returns
True if download is in progress
QString WebBrowserCef::DownloadItem::mimeType ( )

mimeType

Returns
The content mime type
QString WebBrowserCef::DownloadItem::originalUrl ( )

originalUrl

Returns
The original URL before any redirections
float WebBrowserCef::DownloadItem::progress ( )

progress

Returns
If size of file is known, returns value between zero and one indicating overall progress If the size of file is not known, returns ProgressUnknown (-1) If the download is not in progress, returns ProgressNone (-2)
int64 WebBrowserCef::DownloadItem::receivedBytes ( )

receivedBytes

Returns
Number of received bytes
QDateTime WebBrowserCef::DownloadItem::startTime ( )

startTime

Returns
The time that the download started
QString WebBrowserCef::DownloadItem::suggestedFilename ( )

suggestedFilename

Returns
The suggested file name based on the context of the download
int64 WebBrowserCef::DownloadItem::totalBytes ( )

totalBytes

Returns
Total size of file being downloaded, if known
QString WebBrowserCef::DownloadItem::url ( )

url

Returns
The URL of the file being downloaded