Skip to main content

class QCefQuery

Represents the query request sent from the web content(Javascript)

Summary

MembersDescriptions
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() constGets the query content.
public const qint64 id() constGets the query id.
public const QString response() constGets the response content string.
public const bool result() constGets the response result.
public const int error() constGets the response error.
public void setResponseResult(bool success, const QString & response, int error) constSets 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 context

  • query 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 false

  • response The response content string

  • error The response error


private QScopedPointer< QCefQueryPrivate > d_ptr