#include <Soprano/BackendSetting>
Public Member Functions | |
| BackendSetting () | |
| BackendSetting (BackendOption option) | |
| BackendSetting (BackendOption s, const QVariant &value_) | |
| BackendSetting (const QString &userOption, const QVariant &value_) | |
| BackendSetting (const BackendSetting &other) | |
| ~BackendSetting () | |
| BackendSetting & | operator= (const BackendSetting &other) |
| BackendOption | option () const |
| QString | userOptionName () const |
| QVariant | value () const |
| void | setValue (const QVariant &value) |
A BackendSetting consists of an option type and an option value. The option type can either be a predefined value from Soprano::BackendOption or a user defined string value that depends on the Backend implementation. In the latter case option has to be set to Soprano::BackendOptionUser.
Definition at line 52 of file backend.h.
| Soprano::BackendSetting::BackendSetting | ( | ) |
Create an empty setting.
| Soprano::BackendSetting::BackendSetting | ( | BackendOption | option | ) |
Create a boolean setting with a default true value.
| Soprano::BackendSetting::BackendSetting | ( | BackendOption | s, | |
| const QVariant & | value_ | |||
| ) |
Create a standard setting with option s and value value_.
Create a user setting with user option name userOption and value value_.
| Soprano::BackendSetting::BackendSetting | ( | const BackendSetting & | other | ) |
Copy constructor.
| Soprano::BackendSetting::~BackendSetting | ( | ) |
Destructor.
| BackendSetting& Soprano::BackendSetting::operator= | ( | const BackendSetting & | other | ) |
Copy operator.
| BackendOption Soprano::BackendSetting::option | ( | ) | const |
The option that this setting sets. If Soprano::BackendOptionUser the option is identified by userOptionName().
| QString Soprano::BackendSetting::userOptionName | ( | ) | const |
The name of the user option if option() is Soprano::BackendOptionUser.
| QVariant Soprano::BackendSetting::value | ( | ) | const |
The value of the setting.
| void Soprano::BackendSetting::setValue | ( | const QVariant & | value | ) |
Set the value of the Setting.
1.5.7.1