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

Storage DSetttings to an DConfig. 更多...

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

Public 成员函数

 DSettingsDConfigBackend (const QString &name, const QString &subpath=QString(), QObject *parent=nullptr)
 Save data to configure file name with DConfig. name configure file name. subpath subdirectory of configure file name. parent
 
virtual QStringList keys () const Q_DECL_OVERRIDE
 List all keys of DConfig 更多...
 
virtual QVariant getOption (const QString &key) const Q_DECL_OVERRIDE
 Get value of key from DConfig 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 DConfig key value
 
virtual void doSync () Q_DECL_OVERRIDE
 Trigger DSettings to save option value to DConfig
 

额外继承的成员函数

- 信号 继承自 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 DConfig.

\inmodule dtkcore

成员函数说明

◆ getOption()

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

Get value of key from DConfig key

返回

实现了 Dtk::Core::DSettingsBackend.

◆ keys()

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

List all keys of DConfig

返回

实现了 Dtk::Core::DSettingsBackend.


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