The QSparqlConnectionOptions class encapsulates options given to QSparqlConnection. Some options are used only by some drivers. More...
Inherited by SparqlConnectionOptions.
The QSparqlConnectionOptions class encapsulates options given to QSparqlConnection. Some options are used only by some drivers.
The function setOption() can be used for setting an option and option() for getting a value of an option. An option can be unset by passing a QVariant() to setOption().
For frequently used options, there are separate convenience functions, e.g., setHost() and host().
QSparqlConnectionOptions::QSparqlConnectionOptions | ( | const QSparqlConnectionOptions & | other | ) |
Creates a QSparqlConnectionOptions object based on other, copying all key-value pairs from it.
QString QSparqlConnectionOptions::databaseName | ( | ) | const |
Convenience function for getting the database name.
int QSparqlConnectionOptions::dataReadyInterval | ( | ) | const |
Convenience function for getting the interval between when dataReady(int) signals are emitted. The default value is 1, which means that a dataReady() signal is emitted as soon as a driver has some results.
QString QSparqlConnectionOptions::hostName | ( | ) | const |
Convenience function for getting the host name.
int QSparqlConnectionOptions::maxThreadCount | ( | ) | const |
Convenience function for getting the max thread count to be used by the thread pool.
QNetworkAccessManager * QSparqlConnectionOptions::networkAccessManager | ( | ) | const |
Convenience function for getting the QNetworkAccessManager. Used by connections which use the network.
This option cannot be set using the option() function.
QSparqlConnectionOptions & QSparqlConnectionOptions::operator= | ( | const QSparqlConnectionOptions & | other | ) |
Assigns the QSparqlConnectionOptions object. Copies all key-value pairs from other.
bool QSparqlConnectionOptions::operator== | ( | const QSparqlConnectionOptions & | other | ) | const |
Returns true if the QSparqlConnection objects are equal. The objects are equal if they describe the same set of key-value pairs.
Returns the value of a given option, name, or QVariant(), if there is no value.
QString QSparqlConnectionOptions::password | ( | ) | const |
Convenience function for getting the password. Used by connections requiring authentication.
QString QSparqlConnectionOptions::path | ( | ) | const |
Convenience function for getting the path.
int QSparqlConnectionOptions::port | ( | ) | const |
Convenience function for getting the port.
QNetworkProxy QSparqlConnectionOptions::proxy | ( | ) | const |
Convenience function for setting the QNetworkProxy. Used by connections which use the network.
This option cannot be set using the setOption() function.
void QSparqlConnectionOptions::setDatabaseName | ( | const QString & | name | ) |
Convenience function for setting the database name.
void QSparqlConnectionOptions::setDataReadyInterval | ( | int | interval | ) |
Convenience function for setting the interval between when dataReady(int) signals are emitted.
void QSparqlConnectionOptions::setHostName | ( | const QString & | host | ) |
Convenience function for setting the host name of the RDF store.
void QSparqlConnectionOptions::setMaxThreadCount | ( | int | p | ) |
Convenience function for setting the maximum number of threads for the thread pool to use.
void QSparqlConnectionOptions::setNetworkAccessManager | ( | QNetworkAccessManager * | nam | ) |
Convenience function for setting the QNetworkAccessManager. Valid for drivers connecting to databases over the network.
This option cannot be set using the setOption() function.
Sets the option name to a given value. Use a null QVariant, i.e. QVariant(), to unset an option.
void QSparqlConnectionOptions::setPassword | ( | const QString & | password | ) |
Convenience function for setting the password. Used by connections requiring authentication.
void QSparqlConnectionOptions::setPath | ( | const QString & | path | ) |
Convenience function for setting the path of the RDF store.
void QSparqlConnectionOptions::setPort | ( | int | p | ) |
Convenience function for setting the port of the RDF store.
void QSparqlConnectionOptions::setProxy | ( | const QNetworkProxy & | proxy | ) |
Convenience function for setting the QNetworkProxy. Valid for drivers connecting to databases over the network.
This option cannot be set using the setOption() function.
void QSparqlConnectionOptions::setThreadExpiryTime | ( | int | p | ) |
Convenience function for setting the expiry time (in milliseconds) of threads created by the threadpool.
void QSparqlConnectionOptions::setUserName | ( | const QString & | name | ) |
Convenience function for setting the user name. Used by connections requiring authentication.
int QSparqlConnectionOptions::threadExpiryTime | ( | ) | const |
Convenience function for getting the thread expiry time.
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
|