#ifndef __AUDACITY_AUTORECOVERY__ #define __AUDACITY_AUTORECOVERY__ #include "Project.h" #include "xml/XMLTagHandler.h" #include // // Show auto recovery dialog if there are projects to recover. Should be // called once at Audacity startup. // // This function possibly opens new project windows while it recovers all // projects. If so, it will re-use *pproj, if != NULL and set it to NULL. // // Returns: True, if the start of Audacity should continue as normal // False if Audacity should be quit immediately // bool ShowAutoRecoveryDialogIfNeeded(AudacityProject** pproj, bool *didRecoverAnything); // // XML Handler for a tag // class RecordingRecoveryHandler: public XMLTagHandler { public: RecordingRecoveryHandler(AudacityProject* proj); virtual bool HandleXMLTag(const wxChar *tag, const wxChar **attrs); virtual XMLTagHandler *HandleXMLChild(const wxChar *tag); // This class only knows reading tags virtual void WriteXML(XMLWriter &xmlFile) { wxASSERT(false); } private: AudacityProject* mProject; int mChannel; int mNumChannels; }; #endif // Indentation settings for Vim and Emacs. // Please do not modify past this point. // // Local Variables: // c-basic-offset: 3 // indent-tabs-mode: nil // End: // // vim: et sts=3 sw=3