Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers. More...
Public Types | |
enum | ExecutionMethod { AsyncExec = 1, SyncExec = 2 } |
enum | Priority { NormalPriority = 0, LowPriority = 10 } |
Public Member Functions | |
QSparqlQueryOptions (const QSparqlQueryOptions &other) | |
QSparqlQueryOptions & | operator= (const QSparqlQueryOptions &other) |
bool | operator== (const QSparqlQueryOptions &other) const |
Returns true if the QSparqlQueryOptions objects are equal. | |
void | setExecutionMethod (ExecutionMethod em) |
ExecutionMethod | executionMethod () const |
void | setPriority (Priority p) |
Priority | priority () const |
Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers.
Execution method of the query.
AsyncExec |
Query is to be executed asynchronously. This is the default value of QSparqlQueryOptions. |
SyncExec |
Query is to be executed synchronously.
|
Priority of the query.
NormalPriority |
Query is to be executed with normal priority. This is the default value of QSparqlQueryOptions. |
LowPriority |
Query is to be executed with low priority. Support for this option is driver-specfifc.
|
QSparqlQueryOptions::QSparqlQueryOptions | ( | const QSparqlQueryOptions & | other | ) |
Creates a QSparqlQueryOptions object based on other, copying all option values from it.
QSparqlQueryOptions::ExecutionMethod QSparqlQueryOptions::executionMethod | ( | ) | const |
Returns the exeuction method of the query.
QSparqlQueryOptions & QSparqlQueryOptions::operator= | ( | const QSparqlQueryOptions & | other | ) |
Assigns the QSparqlQueryOptions object. Copies all option values from other.
QSparqlQueryOptions::Priority QSparqlQueryOptions::priority | ( | ) | const |
Returns the priority of the query.
void QSparqlQueryOptions::setExecutionMethod | ( | ExecutionMethod | em | ) |
Sets the exeuction method of the query. The default execution method is QSparqlQueryOptions::AsyncExec.
void QSparqlQueryOptions::setPriority | ( | Priority | p | ) |
Sets the priority of the query. The default priority is QSparqlQueryOptions::NormalPriority.