Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry Class Reference
Collaboration diagram for anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry:
[legend]

Public Member Functions

void Register (std::unique_ptr< PreferencesResetHandler > handler)
 
void BeginReset ()
 
void EndReset ()
 

Static Public Member Functions

static PreferencesResetHandlerRegistryGet ()
 

Private Attributes

std::vector< std::unique_ptr< PreferencesResetHandler > > mHandlers
 

Detailed Description

Definition at line 86 of file Prefs.cpp.

Member Function Documentation

◆ BeginReset()

void anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry::BeginReset ( )
inline

Definition at line 101 of file Prefs.cpp.

102 {
103 for(auto& handler : mHandlers)
104 handler->OnSettingResetBegin();
105 }
std::vector< std::unique_ptr< PreferencesResetHandler > > mHandlers
Definition: Prefs.cpp:88

References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.

◆ EndReset()

void anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry::EndReset ( )
inline

Definition at line 107 of file Prefs.cpp.

108 {
109 for(auto& handler : mHandlers)
110 handler->OnSettingResetEnd();
111 }

References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.

◆ Get()

static PreferencesResetHandlerRegistry & anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry::Get ( )
inlinestatic

Definition at line 90 of file Prefs.cpp.

91 {
92 static PreferencesResetHandlerRegistry registry;
93 return registry;
94 }

◆ Register()

void anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry::Register ( std::unique_ptr< PreferencesResetHandler handler)
inline

Definition at line 96 of file Prefs.cpp.

97 {
98 mHandlers.push_back(std::move(handler));
99 }

References audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.

Member Data Documentation

◆ mHandlers

std::vector<std::unique_ptr<PreferencesResetHandler> > anonymous_namespace{Prefs.cpp}::PreferencesResetHandlerRegistry::mHandlers
private

Definition at line 88 of file Prefs.cpp.


The documentation for this class was generated from the following file: