Audacity 3.2.0
|
Interface used to report on import state and progress. More...
#include <ImportProgressListener.h>
Public Types | |
enum class | ImportResult { Success , Error , Cancelled , Stopped } |
Public Member Functions | |
virtual | ~ImportProgressListener () |
virtual bool | OnImportFileOpened (ImportFileHandle &importFileHandle)=0 |
virtual void | OnImportProgress (double progress)=0 |
virtual void | OnImportResult (ImportResult result)=0 |
Used to report on import result for file handle passed as argument to OnImportFileOpened. More... | |
Interface used to report on import state and progress.
Definition at line 18 of file ImportProgressListener.h.
|
strong |
|
virtual |
Definition at line 13 of file ImportProgressListener.cpp.
|
pure virtual |
Called by Importer when it attempts to import file using registered ImportPlugin instance Could be called more than once, but for each call there will be a complementary call to OnImportResult
importFileHandle | file handle created by ImportPlugin instance |
Implemented in anonymous_namespace{Import.cpp}::ImportProgressResultProxy, and anonymous_namespace{ProjectFileManager.cpp}::ImportProgress.
|
pure virtual |
Used to report on import progress [optional]
progress | import progress in range [0, 1] |
Implemented in anonymous_namespace{Import.cpp}::ImportProgressResultProxy, and anonymous_namespace{ProjectFileManager.cpp}::ImportProgress.
Referenced by AUPImportFileHandle::Import(), FFmpegImportFileHandle::Import(), anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportFileHandle::Import(), OggImportFileHandle::Import(), OpusImportFileHandle::Import(), PCMImportFileHandle::Import(), WavPackImportFileHandle::Import(), and MyFLACFile::write_callback().
|
pure virtual |
Used to report on import result for file handle passed as argument to OnImportFileOpened.
Implemented in anonymous_namespace{Import.cpp}::ImportProgressResultProxy, and anonymous_namespace{ProjectFileManager.cpp}::ImportProgress.
Referenced by AUPImportFileHandle::Import(), FFmpegImportFileHandle::Import(), FLACImportFileHandle::Import(), LOFImportFileHandle::Import(), anonymous_namespace{ImportMP3_MPG123.cpp}::MP3ImportFileHandle::Import(), OggImportFileHandle::Import(), OpusImportFileHandle::Import(), PCMImportFileHandle::Import(), WavPackImportFileHandle::Import(), anonymous_namespace{ImportMIDI.cpp}::MIDIImportFileHandle::Import(), and OpusImportFileHandle::NotifyImportFailed().