Audacity  2.2.0
ImportCommand Class Referencefinal

Command for importing audio. More...

#include <ImportExportCommands.h>

Inheritance diagram for ImportCommand:
CommandImplementation Command

Public Member Functions

 ImportCommand (CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
 
virtual ~ImportCommand ()
 
bool Apply (CommandExecutionContext context) override
 
- Public Member Functions inherited from CommandImplementation
void Progress (double completed)
 
void Status (const wxString &status) override
 
void Error (const wxString &message) override
 
 CommandImplementation (CommandType &type, std::unique_ptr< CommandOutputTarget > &&output)
 
virtual ~CommandImplementation ()
 
wxString GetName ()
 An instance method for getting the command name (for consistency) More...
 
CommandSignatureGetSignature ()
 Get the signature of the command. More...
 
bool SetParameter (const wxString &paramName, const wxVariant &paramValue)
 
- Public Member Functions inherited from Command
virtual ~Command ()
 

Additional Inherited Members

- Protected Member Functions inherited from CommandImplementation
void TypeCheck (const wxString &typeName, const wxString &paramName, const wxVariant &param)
 
void CheckParam (const wxString &paramName)
 
bool GetBool (const wxString &paramName)
 
long GetLong (const wxString &paramName)
 
double GetDouble (const wxString &paramName)
 
wxString GetString (const wxString &paramName)
 
- Protected Attributes inherited from CommandImplementation
std::unique_ptr
< CommandOutputTarget
mOutput
 

Detailed Description

Command for importing audio.

Constructor & Destructor Documentation

ImportCommand::ImportCommand ( CommandType type,
std::unique_ptr< CommandOutputTarget > &&  target 
)
inline
ImportCommand::~ImportCommand ( )
virtual

Member Function Documentation

bool ImportCommand::Apply ( CommandExecutionContext  context)
overridevirtual

Actually carry out the command. Return true if successful and false otherwise.

Reimplemented from CommandImplementation.

References CommandExecutionContext::GetProject(), CommandImplementation::GetString(), and AudacityProject::Import().


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