class QCefQuery
Represents the query request sent from the web content(Javascript)
Summary
Members | Descriptions |
---|---|
public QCefQuery () | Constructs a query instance. |
public QCefQuery (const QString & req, const int64_t query) | Constructs a query instance with request context and query id. |
public QCefQuery (const QCefQuery & other) | Constructs a query instance from existing one. |
public QCefQuery & operator= (const QCefQuery & other) | Assigns an existing query instance to current. |
public ~QCefQuery () | Destructs a query instance. |
public const QString request () const | Gets the query content. |
public const qint64 id () const | Gets the query id. |
public const QString response () const | Gets the response content string. |
public const bool result () const | Gets the response result. |
public const int error () const | Gets the response error. |
public void setResponseResult (bool success, const QString & response, int error) const | Sets the response. |
private QScopedPointer< QCefQueryPrivate > d_ptr |
Members
public
QCefQuery
()
Constructs a query instance.
public
QCefQuery
(const QString & req, const int64_t query)
Constructs a query instance with request context and query id.
Parameters
req
The request contextquery
The query id
public
QCefQuery
(const
QCefQuery
& other)
Constructs a query instance from existing one.
Parameters
other
The other query instance
public
QCefQuery
&
operator=
(const
QCefQuery
& other)
Assigns an existing query instance to current.
Parameters
other
The other query instance
public
~QCefQuery
()
Destructs a query instance.
public const QString
request
() const
Gets the query content.
Returns
The content string
public const qint64
id
() const
Gets the query id.
Returns
The query id
public const QString
response
() const
Gets the response content string.
Returns
The response content string
public const bool
result
() const
Gets the response result.
Returns
The respone result
public const int
error
() const
Gets the response error.
Returns
The response error
public void
setResponseResult
(bool success, const QString & response, int error) const
Sets the response.
Parameters
success
True if the query is successful; otherwise falseresponse
The response content stringerror
The response error