The QmmpSettings class provides access to global settings.
More...
#include <qmmpsettings.h>
|
| QmmpSettings (QObject *parent=nullptr) |
|
virtual | ~QmmpSettings () |
|
QmmpSettings::ReplayGainMode | replayGainMode () const |
|
double | replayGainPreamp () const |
|
double | replayGainDefaultGain () const |
|
bool | replayGainPreventClipping () const |
|
void | setReplayGainSettings (ReplayGainMode mode, double preamp, double default_gain, bool clip) |
|
bool | useSoftVolume () const |
|
Qmmp::AudioFormat | outputFormat () const |
|
bool | useDithering () const |
|
void | setAudioSettings (bool soft_volume, Qmmp::AudioFormat format, bool use_dithering) |
|
const QStringList & | coverNameFilters (bool include=true) const |
|
int | coverSearchDepth () const |
|
bool | useCoverFiles () const |
|
void | setCoverSettings (QStringList inc, QStringList exc, int depth, bool use_files) |
|
bool | isProxyEnabled () const |
|
bool | useProxyAuth () const |
|
const QUrl & | proxy () const |
|
ProxyType | proxyType () const |
|
void | setNetworkSettings (bool use_proxy, bool auth, ProxyType type, const QUrl &proxy) |
|
const EqSettings & | eqSettings () const |
|
void | setEqSettings (const EqSettings &settings) |
|
void | readEqSettings (EqSettings::Bands bands=EqSettings::EQ_BANDS_10) |
|
int | bufferSize () const |
|
void | setBufferSize (int msec) |
|
void | setVolumeStep (int step) |
|
int | volumeStep () const |
|
void | setAverageBitrate (bool enabled) |
|
bool | averageBitrate () const |
|
void | setDetermineFileTypeByContent (bool enabled) |
|
bool | determineFileTypeByContent () const |
|
The QmmpSettings class provides access to global settings.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
Definition at line 35 of file qmmpsettings.h.
This enum describes proxy types.
Enumerator |
---|
HTTP_PROXY |
HTTP proxy
|
SOCKS5_PROXY |
SOCKS5 proxy
|
Definition at line 52 of file qmmpsettings.h.
This enum describes possible replaygain modes.
Enumerator |
---|
REPLAYGAIN_TRACK |
Use track gain/peak
|
REPLAYGAIN_ALBUM |
Use album gain/peak
|
REPLAYGAIN_DISABLED |
Disable ReplayGain
|
Definition at line 42 of file qmmpsettings.h.
QmmpSettings::QmmpSettings |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
virtual QmmpSettings::~QmmpSettings |
( |
| ) |
|
|
virtual |
void QmmpSettings::audioSettingsChanged |
( |
| ) |
|
|
signal |
Emitted when audio settings are changed.
bool QmmpSettings::averageBitrate |
( |
| ) |
const |
Returns true if average bitrate displaying is enabled, otherwise returns false
int QmmpSettings::bufferSize |
( |
| ) |
const |
const QStringList& QmmpSettings::coverNameFilters |
( |
bool |
include = true | ) |
const |
If include is true, this function returns include cover file name filters, otherwise returns exclude filters.
int QmmpSettings::coverSearchDepth |
( |
| ) |
const |
Returns a depth of recursive cover file search.
void QmmpSettings::coverSettingsChanged |
( |
| ) |
|
|
signal |
Emitted when cover settings are changed.
bool QmmpSettings::determineFileTypeByContent |
( |
| ) |
const |
Return true if content based file type determination is enabled. Otherwise returns false.
Returns equalizer settings.
void QmmpSettings::eqSettingsChanged |
( |
| ) |
|
|
signal |
Emitted when equalizer settings are changed.
bool QmmpSettings::isProxyEnabled |
( |
| ) |
const |
Returns true if global proxy is enabled, otherwise returns false
void QmmpSettings::networkSettingsChanged |
( |
| ) |
|
|
signal |
Emitted when network settings are changed.
const QUrl& QmmpSettings::proxy |
( |
| ) |
const |
Returns global proxy url.
Returls global proxy type.
Reads equalizer settings. Call this function before equalizer usage.
- Parameters
-
double QmmpSettings::replayGainDefaultGain |
( |
| ) |
const |
double QmmpSettings::replayGainPreamp |
( |
| ) |
const |
bool QmmpSettings::replayGainPreventClipping |
( |
| ) |
const |
void QmmpSettings::replayGainSettingsChanged |
( |
| ) |
|
|
signal |
void QmmpSettings::saveSettings |
( |
| ) |
|
|
private |
void QmmpSettings::setAudioSettings |
( |
bool |
soft_volume, |
|
|
Qmmp::AudioFormat |
format, |
|
|
bool |
use_dithering |
|
) |
| |
void QmmpSettings::setAverageBitrate |
( |
bool |
enabled | ) |
|
Enables/Disables average bitrate displaying.
- Parameters
-
enabled | State of the average bitrate displaying (true - enabled, false - disabled). This function emits audioSettingsChanged() signal. |
void QmmpSettings::setBufferSize |
( |
int |
msec | ) |
|
void QmmpSettings::setCoverSettings |
( |
QStringList |
inc, |
|
|
QStringList |
exc, |
|
|
int |
depth, |
|
|
bool |
use_files |
|
) |
| |
Sets cover search options.
- Parameters
-
inc | Include cover name filters |
exc | Exclude cover name filters |
depth | Depth of recursive cover file search. Recursive cover file search can be disabled by setting depth to 0. |
use_files | Use or not use files with covers. This parameter doesn't take effect in embedded covers. |
void QmmpSettings::setDetermineFileTypeByContent |
( |
bool |
enabled | ) |
|
Enables/Disables file type determination by content.
- Parameters
-
enabled | State of the content based type determination. (true - enabled, false - disabled). |
Changes equalizer settings to settings.
void QmmpSettings::setNetworkSettings |
( |
bool |
use_proxy, |
|
|
bool |
auth, |
|
|
ProxyType |
type, |
|
|
const QUrl & |
proxy |
|
) |
| |
Sets network settings.
- Parameters
-
use_proxy | Enables or disables global proxy. |
auth | Enables or disables proxy authentication. |
type | Proxy type. |
proxy | Proxy url. |
void QmmpSettings::setReplayGainSettings |
( |
ReplayGainMode |
mode, |
|
|
double |
preamp, |
|
|
double |
default_gain, |
|
|
bool |
clip |
|
) |
| |
void QmmpSettings::setVolumeStep |
( |
int |
step | ) |
|
void QmmpSettings::sync |
( |
| ) |
|
|
privateslot |
Writes all unsaved settings to configuration file
bool QmmpSettings::useCoverFiles |
( |
| ) |
const |
Returns true if cover file search is enabled; otherwise returns false.
bool QmmpSettings::useDithering |
( |
| ) |
const |
bool QmmpSettings::useProxyAuth |
( |
| ) |
const |
Returns true if global proxy authentication is enabled, otherwise returns false
bool QmmpSettings::useSoftVolume |
( |
| ) |
const |
int QmmpSettings::volumeStep |
( |
| ) |
const |
bool QmmpSettings::m_aud_dithering |
|
private |
bool QmmpSettings::m_aud_software_volume |
|
private |
bool QmmpSettings::m_average_bitrate |
|
private |
int QmmpSettings::m_buffer_size |
|
private |
int QmmpSettings::m_cover_depth |
|
private |
QStringList QmmpSettings::m_cover_exclude |
|
private |
QStringList QmmpSettings::m_cover_inc |
|
private |
bool QmmpSettings::m_cover_use_files |
|
private |
bool QmmpSettings::m_determine_by_content |
|
private |
bool QmmpSettings::m_proxy_auth |
|
private |
bool QmmpSettings::m_proxy_enabled |
|
private |
QUrl QmmpSettings::m_proxy_url |
|
private |
double QmmpSettings::m_rg_defaut_gain |
|
private |
double QmmpSettings::m_rg_preamp |
|
private |
bool QmmpSettings::m_rg_prevent_clipping |
|
private |
bool QmmpSettings::m_saveSettings = false |
|
private |
int QmmpSettings::m_volume_step |
|
private |
The documentation for this class was generated from the following file: