Audacity  2.2.2
Public Member Functions | List of all members
GetPreferenceCommandType Class Referencefinal

#include <PreferenceCommands.h>

Inheritance diagram for GetPreferenceCommandType:
CommandType

Public Member Functions

wxString BuildName () override
 
void BuildSignature (CommandSignature &signature) override
 Postcondition: signature is a 'signature' map containing parameter. More...
 
CommandHolder Create (std::unique_ptr< CommandOutputTarget > &&target) override
 
- Public Member Functions inherited from CommandType
 CommandType ()
 
virtual ~CommandType ()
 
const wxString & GetName ()
 
CommandSignatureGetSignature ()
 
wxString Describe ()
 

Detailed Description

Definition at line 28 of file PreferenceCommands.h.

Member Function Documentation

wxString GetPreferenceCommandType::BuildName ( )
overridevirtual

Implements CommandType.

Definition at line 23 of file PreferenceCommands.cpp.

24 {
25  return wxT("GetPreference");
26 }
void GetPreferenceCommandType::BuildSignature ( CommandSignature signature)
overridevirtual

Postcondition: signature is a 'signature' map containing parameter.

Implements CommandType.

Definition at line 28 of file PreferenceCommands.cpp.

References CommandSignature::AddParameter().

29 {
30  auto prefNameValidator = make_movable<DefaultValidator>();
31  signature.AddParameter(wxT("PrefName"), wxT(""), std::move(prefNameValidator));
32 }
void AddParameter(const wxString &name, const wxVariant &dft, movable_ptr< Validator > &&valid)
CommandHolder GetPreferenceCommandType::Create ( std::unique_ptr< CommandOutputTarget > &&  target)
overridevirtual

Implements CommandType.

Definition at line 34 of file PreferenceCommands.cpp.

35 {
36  return std::make_shared<GetPreferenceCommand>(*this, std::move(target));
37 }

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