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

Constructor & Destructor Documentation

◆ UnusableImportPlugin()

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

Definition at line 179 of file ImportPlugin.h.

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

Member Function Documentation

◆ GetPluginFormatDescription()

TranslatableString UnusableImportPlugin::GetPluginFormatDescription ( )
inline

Definition at line 186 of file ImportPlugin.h.

187 {
188 return mFormatName;
189 }

◆ SupportsExtension()

bool UnusableImportPlugin::SupportsExtension ( const FileExtension extension)
inline

Definition at line 191 of file ImportPlugin.h.

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

References anonymous_namespace{CloudProjectFileIOExtensions.cpp}::extension.

Member Data Documentation

◆ mExtensions

const FileExtensions UnusableImportPlugin::mExtensions
private

Definition at line 198 of file ImportPlugin.h.

◆ mFormatName

TranslatableString UnusableImportPlugin::mFormatName
private

Definition at line 197 of file ImportPlugin.h.


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