Sayonara Player
Public Member Functions | Protected Attributes | List of all members
Setting< T, SC > Class Template Reference

#include <Setting.h>

Detailed Description

template<typename T, template< typename Arg > class SC = SettingConverter>
class Setting< T, SC >

The Setting class
T is the pure value type e.g. QString.

Public Member Functions

template<typename SK::SettingKey S>
 Setting (const SettingKey< T, S > &key, const char *db_key, T def)
 
template<typename SK::SettingKey S>
 Setting (const SettingKey< T, S > &key, T def)
 
virtual void load_db (DatabaseSettings *db)
 
virtual void store_db (DatabaseSettings *db)
 
const T & getValue () const
 
const T & getDefaultValue () const
 
bool setValue (const T &val)
 
QString get_db_key () const
 
SK::SettingKey get_key () const
 

Protected Attributes

SK::SettingKey _key
 
QString _db_key
 
Inheritance diagram for Setting< T, SC >:
AbstrSetting