QWebEngineQuotaRequest 類

The QWebEngineQuotaRequest class enables accepting or rejecting requests for larger persistent storage than the application's current allocation in File System API. 更多...

頭: #include <QWebEngineQuotaRequest>
Since: Qt 5.11
實例化: QuotaRequest

特性

公共函數

void accept ()
QUrl origin () const
void reject ()
qint64 requestedSize () const
bool operator!= (const QWebEngineQuotaRequest & that ) const
bool operator== (const QWebEngineQuotaRequest & that ) const

靜態公共成員

const QMetaObject staticMetaObject

詳細描述

The QWebEngineQuotaRequest class enables accepting or rejecting requests for larger persistent storage than the application's current allocation in File System API.

This class is used by the QWebEnginePage::quotaRequested () 信號到 accept () 或 reject () a request for an increase in the persistent storage allocated to the application. The default quota is 0 bytes.

特性文檔編製

origin : const QUrl

This property holds the URL of the web page that issued the quota request.

訪問函數:

QUrl origin () const

requestedSize : const qint64

Contains the size of the requested disk space in bytes.

訪問函數:

qint64 requestedSize () const

成員函數文檔編製

void QWebEngineQuotaRequest:: accept ()

接受更大持久性存儲的請求。

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

void QWebEngineQuotaRequest:: reject ()

拒絕更大持久性存儲的請求。

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

bool QWebEngineQuotaRequest:: operator!= (const QWebEngineQuotaRequest & that ) const

返迴 true if that 指嚮與此請求不同的對象。

bool QWebEngineQuotaRequest:: operator== (const QWebEngineQuotaRequest & that ) const

返迴 true if that 指嚮與此配額請求相同的對象。