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 693 of file Prefs.h.

Constructor & Destructor Documentation

◆ PreferenceInitializer()

PreferenceInitializer::PreferenceInitializer ( )

Definition at line 528 of file Prefs.cpp.

529{
530 allInitializers().insert( this );
531}
PreferenceInitializers & allInitializers()
Definition: Prefs.cpp:521

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

Here is the call graph for this function:

◆ ~PreferenceInitializer()

PreferenceInitializer::~PreferenceInitializer ( )
virtual

Definition at line 533 of file Prefs.cpp.

534{
535 allInitializers().erase( this );
536}

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

539{
540 for ( auto pInitializer : allInitializers() )
541 (*pInitializer)();
542}

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: