1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-31 08:58:43 +01:00

Use events to break dependency cycle introduced at 3978e8c

This commit is contained in:
Paul Licameli
2020-11-25 12:18:09 -05:00
parent 7a1ca42109
commit 6944ba564c
6 changed files with 40 additions and 16 deletions

View File

@@ -40,6 +40,11 @@ using Connection = std::unique_ptr<DBConnection>;
using BlockIDs = std::unordered_set<SampleBlockID>;
// An event processed by the project in the main thread after a checkpoint
// failure was detected in a worker thread
wxDECLARE_EXPORTED_EVENT( AUDACITY_DLL_API,
EVT_CHECKPOINT_FAILURE, wxCommandEvent );
///\brief Object associated with a project that manages reading and writing
/// of Audacity project file formats, and autosave
class ProjectFileIO final
@@ -177,6 +182,8 @@ public:
DBConnection &GetConnection();
private:
void OnCheckpointFailure();
void WriteXMLHeader(XMLWriter &xmlFile) const;
void WriteXML(XMLWriter &xmlFile, bool recording = false,
const TrackList *tracks = nullptr) /* not override */;