# class BackendSetting

###

Module | soprano
Namespace | Soprano
Class | BackendSetting
Inherits |

\class BackendSetting backend.h Soprano/BackendSetting

Wraps one setting for Model creation.

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.

See also Backend.createModel()

Author Sebastian Trueg <trueg@kde.org>

### methods

- BackendSetting ( )

  returns ctor

  Create an empty setting.

  See also Soprano.BackendOptionNone

- BackendSetting (option)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  option | Soprano.BackendOption |

  Create a boolean setting with a default true value.

- BackendSetting (s, value_)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  s | Soprano.BackendOption |
  value_ | QVariant |

  Create a standard setting with option s and value value_.

- BackendSetting (userOption, value_)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  userOption | QString |
  value_ | QVariant |

  Create a user setting with user option name userOption and value value_.

- BackendSetting (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | Soprano.BackendSetting |

  Copy constructor.

- option ( )

  returns Soprano.BackendOption

  The option that this setting sets. If Soprano.BackendOptionUser the option is identified by userOptionName().

- setValue (value)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  value | QVariant |

  Set the value of the Setting.

- userOptionName ( )

  returns QString

  The name of the user option if option() is Soprano.BackendOptionUser.

- value ( )

  returns QVariant

  The value of the setting.