Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler Struct Referencefinal
Collaboration diagram for audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler:
[legend]

Public Member Functions

 Idler ()
 
void OnIdle ()
 

Public Attributes

std::list< IdleItemItems
 
Observer::Subscription Subsctiption
 
bool IdlerLocked {}
 

Detailed Description

Definition at line 237 of file AudioComDialogBase.cpp.

Constructor & Destructor Documentation

◆ Idler()

audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler::Idler ( )
inline

Member Function Documentation

◆ OnIdle()

void audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler::OnIdle ( )
inline

Definition at line 250 of file AudioComDialogBase.cpp.

251 {
252 if (IdlerLocked)
253 return;
254
255 for (auto it = Items.begin(); it != Items.end();)
256 {
257 if (it->Condition())
258 {
259 IdlerLocked = true;
260
261 auto swapFlag = finally([this] { IdlerLocked = false; });
262
263 it->DialogFactory();
264 it = Items.erase(it);
265 }
266 else
267 ++it;
268 }
269 }

References MenuRegistry::Items.

Member Data Documentation

◆ IdlerLocked

bool audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler::IdlerLocked {}

Definition at line 243 of file AudioComDialogBase.cpp.

◆ Items

std::list<IdleItem> audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler::Items

Definition at line 239 of file AudioComDialogBase.cpp.

◆ Subsctiption

Observer::Subscription audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::Idler::Subsctiption

Definition at line 241 of file AudioComDialogBase.cpp.


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