MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QSparqlQueryOptions Class Reference

Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers. More...

List of all members.

Public Types

enum   ExecutionMethod { AsyncExec = 1, SyncExec = 2 }
enum   Priority { HighPriority = -10, 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)
void  setForwardOnly (bool value)
bool  isForwardOnly () const
void  setFireAndForget (bool value)
bool  isFireAndForget () const
ExecutionMethod  executionMethod () const
void  setPriority (Priority p)
Priority  priority () const

Detailed Description

Encapsulates query execution options given to QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&). Some options are used only by some drivers.

See also:
QSparqlConnection::exec(const QSparqlQuery&, const QSparqlQueryOptions&)

Member Enumeration Documentation

Execution method of the query.

Enumerator:
AsyncExec 

Query is to be executed asynchronously. This is the default value of QSparqlQueryOptions.

SyncExec 

Query is to be executed synchronously.

See also:
setExecutionMethod, executionMethod

Priority of the query.

Enumerator:
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.

See also:
setPriority, priority

Constructor & Destructor Documentation

QSparqlQueryOptions::QSparqlQueryOptions ( const QSparqlQueryOptions other  ) 

Creates a QSparqlQueryOptions object based on other, copying all option values from it.


Member Function Documentation

QSparqlQueryOptions::ExecutionMethod QSparqlQueryOptions::executionMethod (  )  const

Returns the execution method of the query.

See also:
setExecutionMethod
bool QSparqlQueryOptions::isFireAndForget (  )  const

Returns whether or not the query is to be executed in a "fire and forget" manner.

bool QSparqlQueryOptions::isForwardOnly (  )  const

Returns whether or not an asynchronous query will be executed in a forward only manner.

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.

See also:
setPriority
void QSparqlQueryOptions::setExecutionMethod ( ExecutionMethod  em  ) 

Sets the exeuction method of the query. The default execution method is QSparqlQueryOptions::AsyncExec.

See also:
executionMethod
void QSparqlQueryOptions::setFireAndForget ( bool  fireAndForget  ) 

Sets whether or not to execute an QSparqlQuery::InsertStatment or QSparqlQuery::DeleteStatement in a "fire and forget" manner, where there is no requirement to wait on the result to finish. When using this option, no QSparqlResult::finished() signal will be emitted, and QSparqlResult::isFinished() will return true after the query is executed.

Support for this option is currently limited to the QTRACKER driver, and setting this for other statement types will have no effect.

void QSparqlQueryOptions::setForwardOnly ( bool  forward  ) 

Sets whether or not to execute asynchronous queries in a ForwardOnly manner. Support for this option is currently limited to the QTRACKER_DIRECT driver.

See also:
QTRACKER_DIRECT specific usage
void QSparqlQueryOptions::setPriority ( Priority  p  ) 

Sets the priority of the query. The default priority is QSparqlQueryOptions::NormalPriority.

See also:
priority

Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
Commercial Qt/LGPL 2.1 with Nokia exception/GPL 3.0
MeeGo 1.2 Harmattan API