LIDL Soundboard  1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
LIDL::PresetController Class Reference

The PresetController singleton. More...

#include <PresetController.h>

Inheritance diagram for LIDL::PresetController:
Inheritance graph
Collaboration diagram for LIDL::PresetController:
Collaboration graph

Public Member Functions

QStringList GetExistingPresetsList (LIDL::SFX_TYPE type) const
 GetExistingPresetsList. More...
 
QStringList GetExistingSFXList () const
 
void AddPreset (QString name, BASS_DX8_CHORUS preset, bool overwrite=false)
 
void AddPreset (QString name, BASS_DX8_DISTORTION preset, bool overwrite=false)
 
void AddPreset (QString name, BASS_DX8_COMPRESSOR preset, bool overwrite=false)
 
void AddPreset (QString name, BASS_DX8_ECHO preset, bool overwrite=false)
 
void AddPreset (QString name, BASS_DX8_FLANGER preset, bool overwrite=false)
 
void AddPreset (QString name, BASS_DX8_GARGLE preset, bool overwrite=false)
 
template<typename BASS_SFX_STRUCT >
std::map< int, int > GetPreset (QString name)
 Declares the template we are going to specialize. More...
 
template<>
std::map< int, int > GetPreset (QString name)
 
template<>
std::map< int, int > GetPreset (QString name)
 
template<>
std::map< int, int > GetPreset (QString name)
 
template<>
std::map< int, int > GetPreset (QString name)
 
template<>
std::map< int, int > GetPreset (QString name)
 
template<>
std::map< int, int > GetPreset (QString name)
 

Static Public Member Functions

static PresetControllerGetInstance ()
 GetInstance, returns the instance of the controller, creating one if it doesn't exist. More...
 

Private Member Functions

 PresetController (QObject *parent=nullptr)
 PresetController default constructor. More...
 

Private Attributes

QMap< QString, BASS_DX8_DISTORTION_distortionPreset
 
QMap< QString, BASS_DX8_ECHO_echoPreset
 
QMap< QString, BASS_DX8_CHORUS_chorusPreset
 
QMap< QString, BASS_DX8_COMPRESSOR_compressorPreset
 
QMap< QString, BASS_DX8_FLANGER_flangerPreset
 
QMap< QString, BASS_DX8_GARGLE_garglePreset
 

Static Private Attributes

static PresetControllerself = nullptr
 

Detailed Description

The PresetController singleton.

Deals with storing the presets and acessing them.

Author
Devolution
Version
1.8.0
Since
1.8.0

Constructor & Destructor Documentation

◆ PresetController()

LIDL::PresetController::PresetController ( QObject *  parent = nullptr)
explicitprivate

PresetController default constructor.

Parameters
parent

Referenced by GetInstance().

Here is the caller graph for this function:

Member Function Documentation

◆ AddPreset() [1/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_CHORUS  preset,
bool  overwrite = false 
)

References _chorusPreset.

◆ AddPreset() [2/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_DISTORTION  preset,
bool  overwrite = false 
)

References _distortionPreset.

◆ AddPreset() [3/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_COMPRESSOR  preset,
bool  overwrite = false 
)

References _compressorPreset.

◆ AddPreset() [4/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_ECHO  preset,
bool  overwrite = false 
)

References _echoPreset.

◆ AddPreset() [5/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_FLANGER  preset,
bool  overwrite = false 
)

References _flangerPreset.

◆ AddPreset() [6/6]

void LIDL::PresetController::AddPreset ( QString  name,
BASS_DX8_GARGLE  preset,
bool  overwrite = false 
)

References _garglePreset.

◆ GetExistingPresetsList()

QStringList LIDL::PresetController::GetExistingPresetsList ( LIDL::SFX_TYPE  type) const

GetExistingPresetsList.

Parameters
typeThe SFX_TYPE we wanna get the preset list.
Returns
The list of available presets

References _chorusPreset, _compressorPreset, _distortionPreset, _echoPreset, _flangerPreset, _garglePreset, LIDL::CHORUS, LIDL::COMPRESSOR, LIDL::DISTORTION, LIDL::ECHO, LIDL::FLANGER, and LIDL::GARGLE.

◆ GetExistingSFXList()

QStringList LIDL::PresetController::GetExistingSFXList ( ) const

◆ GetInstance()

PresetController * LIDL::PresetController::GetInstance ( )
static

GetInstance, returns the instance of the controller, creating one if it doesn't exist.

References PresetController().

Referenced by PresetWizardIntroPage::PresetWizardIntroPage(), PresetWizardIntroPage::sfxBoxIndexChanged(), and SfxSettingsWidget::SfxSettingsWidget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPreset() [1/7]

template<typename BASS_SFX_STRUCT >
std::map<int,int> LIDL::PresetController::GetPreset ( QString  name)

Declares the template we are going to specialize.

Used as syntax flavor, to call only GetPreset<PresetName> instead of GetPresetName weSmart

◆ GetPreset() [2/7]

◆ GetPreset() [3/7]

◆ GetPreset() [4/7]

template<>
std::map<int,int> LIDL::PresetController::GetPreset ( QString  name)

◆ GetPreset() [5/7]

◆ GetPreset() [6/7]

◆ GetPreset() [7/7]

Member Data Documentation

◆ _chorusPreset

QMap<QString , BASS_DX8_CHORUS > LIDL::PresetController::_chorusPreset
private

◆ _compressorPreset

QMap<QString , BASS_DX8_COMPRESSOR > LIDL::PresetController::_compressorPreset
private

◆ _distortionPreset

QMap<QString , BASS_DX8_DISTORTION > LIDL::PresetController::_distortionPreset
private

◆ _echoPreset

QMap<QString , BASS_DX8_ECHO > LIDL::PresetController::_echoPreset
private

◆ _flangerPreset

QMap<QString , BASS_DX8_FLANGER > LIDL::PresetController::_flangerPreset
private

◆ _garglePreset

QMap<QString , BASS_DX8_GARGLE > LIDL::PresetController::_garglePreset
private

◆ self

PresetController * LIDL::PresetController::self = nullptr
staticprivate

A pointer to the only existing PresetController.


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