Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
UnusableImportPlugin Class Reference

Used in place of a real plug in for plug ins that have not been compiled or are not available in this version of Audacity. Has enough information to identify the file extensions that would be used, but little else. More...

#include <ImportPlugin.h>

Collaboration diagram for UnusableImportPlugin:
[legend]

Public Member Functions

 UnusableImportPlugin (const TranslatableString &formatName, FileExtensions extensions)
 
TranslatableString GetPluginFormatDescription ()
 
bool SupportsExtension (const FileExtension &extension)
 

Private Attributes

TranslatableString mFormatName
 
const FileExtensions mExtensions
 

Detailed Description

Used in place of a real plug in for plug ins that have not been compiled or are not available in this version of Audacity. Has enough information to identify the file extensions that would be used, but little else.

Definition at line 177 of file ImportPlugin.h.

Constructor & Destructor Documentation

◆ UnusableImportPlugin()

UnusableImportPlugin::UnusableImportPlugin ( const TranslatableString formatName,
FileExtensions  extensions 
)
inline

Definition at line 180 of file ImportPlugin.h.

181 :
182 mFormatName(formatName),
183 mExtensions( std::move( extensions ) )
184 {
185 }
TranslatableString mFormatName
Definition: ImportPlugin.h:198
const FileExtensions mExtensions
Definition: ImportPlugin.h:199

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString UnusableImportPlugin::GetPluginFormatDescription ( )
inline

Definition at line 187 of file ImportPlugin.h.

188 {
189 return mFormatName;
190 }

◆ SupportsExtension()

bool UnusableImportPlugin::SupportsExtension ( const FileExtension extension)
inline

Definition at line 192 of file ImportPlugin.h.

193 {
194 return mExtensions.Index(extension, false) != wxNOT_FOUND;
195 }

Member Data Documentation

◆ mExtensions

const FileExtensions UnusableImportPlugin::mExtensions
private

Definition at line 199 of file ImportPlugin.h.

◆ mFormatName

TranslatableString UnusableImportPlugin::mFormatName
private

Definition at line 198 of file ImportPlugin.h.


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