1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00
audacity/src/commands/ImportExportCommands.h

77 lines
1.8 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
Audacity(R) is copyright (c) 1999-2009 Audacity Team.
File License: wxwidgets
ImportExportCommands.h
Dan Horgan
******************************************************************//**
\class ImportCommand
\brief Command for importing audio
\class ExportCommand
\brief Command for exporting audio
*//*******************************************************************/
#include "Command.h"
#include "CommandType.h"
// Import
class ImportCommandType : public CommandType
{
public:
virtual wxString BuildName();
virtual void BuildSignature(CommandSignature &signature);
virtual Command *Create(CommandOutputTarget *target);
};
class ImportCommand : public CommandImplementation
{
public:
ImportCommand(CommandType &type,
CommandOutputTarget *target)
: CommandImplementation(type, target)
{ }
virtual ~ImportCommand();
virtual bool Apply(CommandExecutionContext context);
};
// Export
class ExportCommandType : public CommandType
{
public:
virtual wxString BuildName();
virtual void BuildSignature(CommandSignature &signature);
virtual Command *Create(CommandOutputTarget *target);
};
class ExportCommand : public CommandImplementation
{
public:
ExportCommand(CommandType &type,
CommandOutputTarget *target)
: CommandImplementation(type, target)
{ }
virtual ~ExportCommand();
virtual bool Apply(CommandExecutionContext context);
};
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
// version control system. Please do not modify past this point.
//
// Local Variables:
// c-basic-offset: 3
// indent-tabs-mode: nil
// End:
//
// vim: et sts=3 sw=3
// arch-tag: TBD