DtkCore
DTK Core module
Dtk::Core::QSettingBackend类 参考

Storage DSetttings to an QSettings. 更多...

类 Dtk::Core::QSettingBackend 继承关系图:
Dtk::Core::DSettingsBackend

Public 成员函数

 QSettingBackend (const QString &filepath, QObject *parent=0)
 Save data to filepath with QSettings::NativeFormat format. filepath is path to storage data. parent
 
virtual QStringList keys () const Q_DECL_OVERRIDE
 List all keys of QSettings 更多...
 
virtual QVariant getOption (const QString &key) const Q_DECL_OVERRIDE
 Get value of key from QSettings key 更多...
 
- Public 成员函数 继承自 Dtk::Core::DSettingsBackend
 DSettingsBackend (QObject *parent=Q_NULLPTR)
 
virtual QStringList keys () const =0
 return all key of storage. 更多...
 
virtual QVariant getOption (const QString &key) const =0
 get value by key. 更多...
 
virtual void doSync ()=0
 do the real sync action. 更多...
 

Protected 槽

virtual void doSetOption (const QString &key, const QVariant &value) Q_DECL_OVERRIDE
 Set value of key to QSettings key value
 
virtual void doSync () Q_DECL_OVERRIDE
 Trigger DSettings to save option value to QSettings
 

额外继承的成员函数

- 信号 继承自 Dtk::Core::DSettingsBackend
void optionChanged (const QString &key, const QVariant &value)
 emitted when option value changed. 更多...
 
void sync ()
 private signal, please do not use it. 更多...
 
void setOption (const QString &key, const QVariant &value)
 private signal, please do not use it. 更多...
 
- Protected 成员函数 继承自 Dtk::Core::DSettingsBackend
virtual void doSetOption (const QString &key, const QVariant &value)=0
 write key / value to storage. 更多...
 

详细描述

Storage DSetttings to an QSettings.

\inmodule dtkcore

成员函数说明

◆ getOption()

QVariant Dtk::Core::QSettingBackend::getOption ( const QString &  key) const
virtual

Get value of key from QSettings key

返回

实现了 Dtk::Core::DSettingsBackend.

◆ keys()

QStringList Dtk::Core::QSettingBackend::keys ( ) const
virtual

List all keys of QSettings

返回

实现了 Dtk::Core::DSettingsBackend.


该类的文档由以下文件生成: