Audacity  2.2.0
GetTrackInfoCommand.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  License: wxwidgets
6 
7  Dan Horgan
8  Marty Goddard
9 ******************************************************************//*******************************************************************/
15 
16 #ifndef __GETTRACKINFOCOMMAND__
17 #define __GETTRACKINFOCOMMAND__
18 
19 #include "Command.h"
20 #include "CommandType.h"
21 
23 {
24 public:
25  wxString BuildName() override;
26  void BuildSignature(CommandSignature &signature) override;
27  CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
28 };
29 
31 {
32 public:
33  GetTrackInfoCommand(CommandType &type, std::unique_ptr<CommandOutputTarget> &&target)
34  : CommandImplementation(type, std::move(target))
35  { }
37  { }
38 
39  bool Apply(CommandExecutionContext context) override;
40 
41 private:
42  void SendBooleanStatus(bool BooleanValue);
43 };
44 
45 #endif /* End of include guard: __GETTRACKINFOCOMMAND__ */
Command that returns requested track information.
Definition: GetTrackInfoCommand.h:30
bool Apply(CommandExecutionContext context) override
Definition: GetTrackInfoCommand.cpp:70
std::shared_ptr< Command > CommandHolder
Definition: AppCommandEvent.h:26
Contains declarations for CommandType class.
Definition: GetTrackInfoCommand.h:22
Contains declaration of Command base class.
void SendBooleanStatus(bool BooleanValue)
Definition: GetTrackInfoCommand.cpp:57
wxString BuildName() override
Definition: GetTrackInfoCommand.cpp:24
CommandHolder Create(std::unique_ptr< CommandOutputTarget > &&target) override
Definition: GetTrackInfoCommand.cpp:49
Definition: Command.h:108
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:29
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
Definition: GetTrackInfoCommand.cpp:29
GetTrackInfoCommand(CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
Definition: GetTrackInfoCommand.h:33
Represents a context to which a command may be applied.
Definition: Command.h:40
virtual ~GetTrackInfoCommand()
Definition: GetTrackInfoCommand.h:36
Class that maps parameter names to default values and validators.
Definition: CommandSignature.h:28