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 169 of file ImportPlugin.h.

Constructor & Destructor Documentation

◆ UnusableImportPlugin()

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

Definition at line 172 of file ImportPlugin.h.

173 :
174 mFormatName(formatName),
175 mExtensions( std::move( extensions ) )
176 {
177 }
TranslatableString mFormatName
Definition: ImportPlugin.h:190
const FileExtensions mExtensions
Definition: ImportPlugin.h:191

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString UnusableImportPlugin::GetPluginFormatDescription ( )
inline

Definition at line 179 of file ImportPlugin.h.

180 {
181 return mFormatName;
182 }

References mFormatName.

◆ SupportsExtension()

bool UnusableImportPlugin::SupportsExtension ( const FileExtension extension)
inline

Definition at line 184 of file ImportPlugin.h.

185 {
186 return mExtensions.Index(extension, false) != wxNOT_FOUND;
187 }

References mExtensions.

Member Data Documentation

◆ mExtensions

const FileExtensions UnusableImportPlugin::mExtensions
private

Definition at line 191 of file ImportPlugin.h.

Referenced by SupportsExtension().

◆ mFormatName

TranslatableString UnusableImportPlugin::mFormatName
private

Definition at line 190 of file ImportPlugin.h.

Referenced by GetPluginFormatDescription().


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