Audacity  2.2.0
SaveProjectCommand Class Referencefinal

Command for saving an Audacity project. More...

#include <OpenSaveCommands.h>

Inheritance diagram for SaveProjectCommand:
CommandImplementation Command

Public Member Functions

 SaveProjectCommand (CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
 
virtual ~SaveProjectCommand ()
 
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 saving an Audacity project.

Constructor & Destructor Documentation

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

Member Function Documentation

bool SaveProjectCommand::Apply ( CommandExecutionContext  context)
overridevirtual

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

Reimplemented from CommandImplementation.

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


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