Audacity  3.0.3
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 164 of file ImportPlugin.h.

Constructor & Destructor Documentation

◆ UnusableImportPlugin()

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

Definition at line 167 of file ImportPlugin.h.

168  :
169  mFormatName(formatName),
170  mExtensions( std::move( extensions ) )
171  {
172  }

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString UnusableImportPlugin::GetPluginFormatDescription ( )
inline

Definition at line 174 of file ImportPlugin.h.

175  {
176  return mFormatName;
177  }

◆ SupportsExtension()

bool UnusableImportPlugin::SupportsExtension ( const FileExtension extension)
inline

Definition at line 179 of file ImportPlugin.h.

180  {
181  return mExtensions.Index(extension, false) != wxNOT_FOUND;
182  }

Member Data Documentation

◆ mExtensions

const FileExtensions UnusableImportPlugin::mExtensions
private

Definition at line 186 of file ImportPlugin.h.

◆ mFormatName

TranslatableString UnusableImportPlugin::mFormatName
private

Definition at line 185 of file ImportPlugin.h.


The documentation for this class was generated from the following file:
UnusableImportPlugin::mExtensions
const FileExtensions mExtensions
Definition: ImportPlugin.h:186
UnusableImportPlugin::mFormatName
TranslatableString mFormatName
Definition: ImportPlugin.h:185