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 74 of file ImportAUP.cpp.

Constructor & Destructor Documentation

◆ AUPImportPlugin()

AUPImportPlugin::AUPImportPlugin ( )

Definition at line 242 of file ImportAUP.cpp.

243: ImportPlugin(FileExtensions(exts.begin(), exts.end()))
244{
245 static_assert(
246 sizeof(long long) >= sizeof(uint64_t) &&
247 sizeof(long) >= sizeof(uint32_t),
248 "Assumptions about sizes in XMLValueChecker calls are invalid!");
249}
wxArrayStringEx FileExtensions
Definition: Identifier.h:225
static const auto exts
Definition: ImportAUP.cpp:60
ImportPlugin(FileExtensions supportedExtensions)

◆ ~AUPImportPlugin()

AUPImportPlugin::~AUPImportPlugin ( )

Definition at line 251 of file ImportAUP.cpp.

252{
253}

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString AUPImportPlugin::GetPluginFormatDescription ( )
overridevirtual

Implements ImportPlugin.

Definition at line 260 of file ImportAUP.cpp.

261{
262 return DESC;
263}
#define DESC
Definition: ImportAUP.cpp:58

References DESC.

◆ GetPluginStringID()

wxString AUPImportPlugin::GetPluginStringID ( )
overridevirtual

Implements ImportPlugin.

Definition at line 255 of file ImportAUP.cpp.

256{
257 return wxT("legacyaup");
258}
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 265 of file ImportAUP.cpp.

267{
268 auto handle = std::make_unique<AUPImportFileHandle>(fileName, project);
269
270 if (!handle->Open())
271 {
272 // Error or not something that we recognize
273 return nullptr;
274 }
275
276 return handle;
277}

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