#include <SettingsMaster.h>
Public Member Functions | |
| void | IniFile (LPCSTR szIniFile) |
| void | Register (CSettingsHolder *pHolder) |
| void | Unregister (CSettingsHolder *pHolder) |
| void | SetSource (CSource *pSource) |
| void | SetChannelName (long NewValue) |
| void | SetVideoInput (long NewValue) |
| void | SetAudioInput (long NewValue) |
| void | SetVideoFormat (long NewValue) |
| void | SaveSettings () |
| void | LoadSettings () |
| CSettingGroup * | GetGroup (LPCSTR szDisplayName, DWORD Flags, BOOL IsActiveByDefault) |
| CTreeSettingsGeneric * | GetTreeSettingsPage () |
| void | LoadOneSetting (CSimpleSetting *pSetting) |
| void | WriteOneSetting (CSimpleSetting *pSetting) |
| GROUPID | CreateSettingsGroup (GROUPID nParentID, const char *name="") |
| GROUPID | CreateSettingsGroup (const char *name="") |
| void | DeleteGroup (GROUPID nID) |
| void | SetGroupCondition (GROUPID nID, PERSETTING nBit, long nMatch) |
| void | SetGroupCondition (PERSETTING nBit, long nMatch) |
| void | RemoveGroupCondition (GROUPID nID) |
| void | RemoveGroupCondition () |
| GROUPID | SetImplicitGroup (GROUPID nID) |
| PERBITS | SetImplicitPer (PERBITS fBits) |
| PERBITS | SetImplicitLockedPer (PERBITS fBits) |
| GROUPID | ResetImplicitGroup () |
| PERBITS | ResetImplicitPer () |
| PERBITS | ResetImplicitLockedPer () |
| void | AddSetting (GROUPID, LPSETTING, PERBITS fPerBits=0, PERBITS fLockedBits=0, PERBITS fMasterBits=0) |
| void | AddSetting (LPSETTING, PERBITS fPerBits=0, PERBITS fLockedBits=0, PERBITS fMasterBits=0) |
| void | AddMasterSetting (GROUPID, LPSETTING, PERBITS fMasterBits, PERBITS fPerBits=0, PERBITS fLockedBits=0) |
| void | AddMasterSetting (LPSETTING, PERBITS fMasterBits, PERBITS fPerBits=0, PERBITS fLockedBits=0) |
| void | AddChannelCondition (GROUPID, PERSETTING nBit, long lMatch) |
| void | AddChannelCondition (PERSETTING nBit, long lMatch) |
| void | SetNotifyFunction (GROUPID, TSMNotifyFunc *) |
| void | SetNotifyFunction (TSMNotifyFunc *) |
| void | ReadyGroup (GROUPID nID) |
| void | ReadyGroup () |
| void | EnableUserPerBits (PERBITS fUserBits) |
| void | DisableUserPerBits (PERBITS fUserBits) |
| void | ChangeChannel (long lValue) |
| void | OnExternalQuery (smInternal::CSettingWrapper *pChangedSetting, CSettingsGroup *pParentGroup) |
Protected Types | |
| typedef smInternal::TGroupInfo | TGroupInfo |
| typedef smInternal::TMasterInfo | TMasterInfo |
Protected Member Functions | |
| void | ParseAllSettings (bool IsLoad) |
| void | MakeSubSection (string &SubSection, CSettingGroup *pGroup) |
| GROUPID | PushBackGroup (CSettingsGroup *, const char *, TGroupInfo *pParentGroupInfo) |
| CSettingsGroup * | GetGroupById (GROUPID groupID) |
Protected Attributes | |
| vector< TSettingsHolderInfo > | m_Holders |
| List of setting holders. | |
| string | m_sIniFile |
| Name of the ini file. | |
| string | m_SourceName |
| Names of the current source, inputs, video format and channel. | |
| string | m_VideoInputName |
| string | m_AudioInputName |
| string | m_VideoFormatName |
| string | m_ChannelName |
The SettingsMaster also holds one big group list for a structured overview of all settings.
Used by CSettingsHolder.
There is one global instance of this class created in DScaler.cpp
|
|
Runs through all settings to see if they want to read/write their values we only save or load those setting that are being held by channel/format etc |
1.3.4