Audacity 3.2.0
Public Member Functions | List of all members
OpusImportPlugin Class Referencefinal
Inheritance diagram for OpusImportPlugin:
[legend]
Collaboration diagram for OpusImportPlugin:
[legend]

Public Member Functions

 OpusImportPlugin ()
 
 ~OpusImportPlugin ()
 
wxString GetPluginStringID () override
 
TranslatableString GetPluginFormatDescription () override
 
std::unique_ptr< ImportFileHandleOpen (const FilePath &Filename, AudacityProject *) override
 
- Public Member Functions inherited from ImportPlugin
virtual wxString GetPluginStringID ()=0
 
virtual TranslatableString GetPluginFormatDescription ()=0
 
virtual FileExtensions GetSupportedExtensions ()
 
virtual TranslatableString FailureHint () const
 User visible message suggesting what to do when a file type isn't recognized; default empty string. More...
 
bool SupportsExtension (const FileExtension &extension)
 
virtual std::unique_ptr< ImportFileHandleOpen (const FilePath &Filename, AudacityProject *)=0
 
virtual ~ImportPlugin ()
 

Additional Inherited Members

- Protected Member Functions inherited from ImportPlugin
 ImportPlugin (FileExtensions supportedExtensions)
 
- Protected Attributes inherited from ImportPlugin
const FileExtensions mExtensions
 

Detailed Description

Definition at line 37 of file ImportOpus.cpp.

Constructor & Destructor Documentation

◆ OpusImportPlugin()

OpusImportPlugin::OpusImportPlugin ( )

Definition at line 100 of file ImportOpus.cpp.

101: ImportPlugin(FileExtensions(exts.begin(), exts.end()))
102{
103}
wxArrayStringEx FileExtensions
Definition: Identifier.h:225
static const auto exts
Definition: ImportOpus.cpp:35
ImportPlugin(FileExtensions supportedExtensions)

◆ ~OpusImportPlugin()

OpusImportPlugin::~OpusImportPlugin ( )

Definition at line 105 of file ImportOpus.cpp.

106{
107}

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString OpusImportPlugin::GetPluginFormatDescription ( )
overridevirtual

Implements ImportPlugin.

Definition at line 114 of file ImportOpus.cpp.

115{
116 return DESC;
117}
#define DESC
Definition: ImportOpus.cpp:33

References DESC.

◆ GetPluginStringID()

wxString OpusImportPlugin::GetPluginStringID ( )
overridevirtual

Implements ImportPlugin.

Definition at line 109 of file ImportOpus.cpp.

110{
111 return wxT("libopus");
112}
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ Open()

std::unique_ptr< ImportFileHandle > OpusImportPlugin::Open ( const FilePath Filename,
AudacityProject  
)
overridevirtual

Implements ImportPlugin.

Definition at line 119 of file ImportOpus.cpp.

120{
121 auto handle = std::make_unique<OpusImportFileHandle>(filename);
122
123 if (!handle->IsOpen())
124 return {};
125
126 return std::move(handle);
127}

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