Audacity 3.2.0
Public Member Functions | List of all members
AUPImportPlugin Class Referencefinal

An ImportPlugin for AUP files (pre-AUP3) More...

Inheritance diagram for AUPImportPlugin:
[legend]
Collaboration diagram for AUPImportPlugin:
[legend]

Public Member Functions

 AUPImportPlugin ()
 
 ~AUPImportPlugin ()
 
wxString GetPluginStringID () override
 
TranslatableString GetPluginFormatDescription () override
 
ImportHandle Open (const FilePath &fileName, AudacityProject *project) 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

An ImportPlugin for AUP files (pre-AUP3)

Definition at line 67 of file ImportAUP.cpp.

Constructor & Destructor Documentation

◆ AUPImportPlugin()

AUPImportPlugin::AUPImportPlugin ( )

Definition at line 236 of file ImportAUP.cpp.

237: ImportPlugin(FileExtensions(exts.begin(), exts.end()))
238{
239 static_assert(
240 sizeof(long long) >= sizeof(uint64_t) &&
241 sizeof(long) >= sizeof(uint32_t),
242 "Assumptions about sizes in XMLValueChecker calls are invalid!");
243}
wxArrayStringEx FileExtensions
Definition: Identifier.h:225
static const auto exts
Definition: ImportAUP.cpp:56
ImportPlugin(FileExtensions supportedExtensions)

◆ ~AUPImportPlugin()

AUPImportPlugin::~AUPImportPlugin ( )

Definition at line 245 of file ImportAUP.cpp.

246{
247}

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString AUPImportPlugin::GetPluginFormatDescription ( )
overridevirtual

Implements ImportPlugin.

Definition at line 254 of file ImportAUP.cpp.

255{
256 return DESC;
257}
#define DESC
Definition: ImportAUP.cpp:54

References DESC.

◆ GetPluginStringID()

wxString AUPImportPlugin::GetPluginStringID ( )
overridevirtual

Implements ImportPlugin.

Definition at line 249 of file ImportAUP.cpp.

250{
251 return wxT("legacyaup");
252}
wxT("CloseDown"))

References wxT().

Here is the call graph for this function:

◆ Open()

ImportHandle AUPImportPlugin::Open ( const FilePath fileName,
AudacityProject project 
)
overridevirtual

Implements ImportPlugin.

Definition at line 259 of file ImportAUP.cpp.

261{
262 auto handle = std::make_unique<AUPImportFileHandle>(fileName, project);
263
264 if (!handle->Open())
265 {
266 // Error or not something that we recognize
267 return nullptr;
268 }
269
270 return handle;
271}
const auto project

References project.


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