Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
PrefsListener::Impl Struct Reference
Collaboration diagram for PrefsListener::Impl:
[legend]

Public Member Functions

 Impl (PrefsListener &owner)
 
 ~Impl ()
 
void OnEvent (int id)
 

Public Attributes

PrefsListenermOwner
 
Observer::Subscription mSubscription
 

Detailed Description

Definition at line 75 of file Prefs.cpp.

Constructor & Destructor Documentation

◆ Impl()

PrefsListener::Impl::Impl ( PrefsListener owner)

Definition at line 135 of file Prefs.cpp.

136 : mOwner{ owner }
137{
139}
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
Definition: Observer.h:199
void OnEvent(int id)
Definition: Prefs.cpp:162
PrefsListener & mOwner
Definition: Prefs.cpp:80
Observer::Subscription mSubscription
Definition: Prefs.cpp:81

References anonymous_namespace{Prefs.cpp}::hub(), mSubscription, OnEvent(), and Observer::Publisher< Message, NotifyAll >::Subscribe().

Here is the call graph for this function:

◆ ~Impl()

PrefsListener::Impl::~Impl ( )

Definition at line 141 of file Prefs.cpp.

142{
143}

Member Function Documentation

◆ OnEvent()

void PrefsListener::Impl::OnEvent ( int  id)

Definition at line 162 of file Prefs.cpp.

163{
164 if (id <= 0)
166 else
168}
virtual void UpdateSelectedPrefs(int id)
Definition: Prefs.cpp:158
virtual void UpdatePrefs()=0
Definition: Prefs.cpp:154

References mOwner, PrefsListener::UpdatePrefs(), and PrefsListener::UpdateSelectedPrefs().

Referenced by Impl().

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

Member Data Documentation

◆ mOwner

PrefsListener& PrefsListener::Impl::mOwner

Definition at line 80 of file Prefs.cpp.

Referenced by OnEvent().

◆ mSubscription

Observer::Subscription PrefsListener::Impl::mSubscription

Definition at line 81 of file Prefs.cpp.

Referenced by Impl().


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