Audacity 3.2.0
Public Member Functions | Static Public Member Functions | List of all members
PreferenceInitializer Struct Referenceabstract

#include <Prefs.h>

Inheritance diagram for PreferenceInitializer:
[legend]

Public Member Functions

 PreferenceInitializer ()
 
virtual ~PreferenceInitializer ()
 
virtual void operator() ()=0
 

Static Public Member Functions

static void ReinitializeAll ()
 

Detailed Description

Meant to be statically constructed. A callback to repopulate configuration files after a reset.

Definition at line 597 of file Prefs.h.

Constructor & Destructor Documentation

◆ PreferenceInitializer()

PreferenceInitializer::PreferenceInitializer ( )

Definition at line 487 of file Prefs.cpp.

488{
489 allInitializers().insert( this );
490}
PreferenceInitializers & allInitializers()
Definition: Prefs.cpp:480

References anonymous_namespace{Prefs.cpp}::allInitializers().

Here is the call graph for this function:

◆ ~PreferenceInitializer()

PreferenceInitializer::~PreferenceInitializer ( )
virtual

Definition at line 492 of file Prefs.cpp.

493{
494 allInitializers().erase( this );
495}

References anonymous_namespace{Prefs.cpp}::allInitializers().

Here is the call graph for this function:

Member Function Documentation

◆ operator()()

virtual void PreferenceInitializer::operator() ( )
pure virtual

◆ ReinitializeAll()

void PreferenceInitializer::ReinitializeAll ( )
static

Definition at line 497 of file Prefs.cpp.

498{
499 for ( auto pInitializer : allInitializers() )
500 (*pInitializer)();
501}

References anonymous_namespace{Prefs.cpp}::allInitializers().

Referenced by DoReloadPreferences().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following files: