Audacity  3.0.3
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 429 of file Prefs.h.

Constructor & Destructor Documentation

◆ PreferenceInitializer()

PreferenceInitializer::PreferenceInitializer ( )

Definition at line 433 of file Prefs.cpp.

434 {
435  allInitializers().insert( this );
436 }

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

Here is the call graph for this function:

◆ ~PreferenceInitializer()

PreferenceInitializer::~PreferenceInitializer ( )
virtual

Definition at line 438 of file Prefs.cpp.

439 {
440  allInitializers().erase( this );
441 }

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 443 of file Prefs.cpp.

444 {
445  for ( auto pInitializer : allInitializers() )
446  (*pInitializer)();
447 }

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:
anonymous_namespace{Prefs.cpp}::allInitializers
PreferenceInitializers & allInitializers()
Definition: Prefs.cpp:426