Audacity 3.2.0
Classes | Public Member Functions | Static Private Member Functions | List of all members
PreferencesResetHandler Class Referenceabstract

Allows custom logic for preferences reset event. More...

#include <Prefs.h>

Inheritance diagram for PreferencesResetHandler:
[legend]

Classes

struct  Registration
 Performs single-time global handler registration. More...
 

Public Member Functions

virtual ~PreferencesResetHandler ()
 
virtual void OnSettingResetBegin ()=0
 Happens before preferences reset. More...
 
virtual void OnSettingResetEnd ()=0
 Happens after preferences reset. More...
 

Static Private Member Functions

static void Register (std::unique_ptr< PreferencesResetHandler > handler)
 

Detailed Description

Allows custom logic for preferences reset event.

Definition at line 562 of file Prefs.h.

Constructor & Destructor Documentation

◆ ~PreferencesResetHandler()

PreferencesResetHandler::~PreferencesResetHandler ( )
virtualdefault

Member Function Documentation

◆ OnSettingResetBegin()

virtual void PreferencesResetHandler::OnSettingResetBegin ( )
pure virtual

◆ OnSettingResetEnd()

virtual void PreferencesResetHandler::OnSettingResetEnd ( )
pure virtual

◆ Register()

void PreferencesResetHandler::Register ( std::unique_ptr< PreferencesResetHandler handler)
staticprivate

Definition at line 495 of file Prefs.cpp.

496{
497 PreferencesResetHandlerRegistry::Get().Register(std::move(handler));
498}
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:202

References BasicUI::Get(), and audacity::cloud::audiocom::anonymous_namespace{AuthorizationHandler.cpp}::handler.

Here is the call graph for this function:

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