Audacity 3.2.0
ImportProgressListener.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ImportProgressListener.h
6
7 Vitaly Sverchinsky
8
9**********************************************************************/
10
11#pragma once
12
14
16
18class IMPORT_EXPORT_API ImportProgressListener
19{
20public:
21 enum class ImportResult {
22 Success,
23 Error,
26 };
27
29
34 virtual bool OnImportFileOpened(ImportFileHandle& importFileHandle) = 0;
35
38 virtual void OnImportProgress(double progress) = 0;
39
41 virtual void OnImportResult(ImportResult result) = 0;
42};
Base class for FlacImportFileHandle, LOFImportFileHandle, MP3ImportFileHandle, OggImportFileHandle an...
Definition: ImportPlugin.h:111
Interface used to report on import state and progress.
virtual void OnImportResult(ImportResult result)=0
Used to report on import result for file handle passed as argument to OnImportFileOpened.
virtual void OnImportProgress(double progress)=0
virtual bool OnImportFileOpened(ImportFileHandle &importFileHandle)=0
Holds a msgid for the translation catalog; may also bind format arguments.