24 #include "qmmp_export.h"
26 #define QMMP_VERSION_MAJOR 1
27 #define QMMP_VERSION_MINOR 6
28 #define QMMP_VERSION_PATCH 5
29 #define QMMP_VERSION_STABLE 1
31 #define QMMP_VERSION_INT (QMMP_VERSION_MAJOR<<16 | QMMP_VERSION_MINOR<<8 | QMMP_VERSION_PATCH)
37 #define QStringToFileName(s) TagLib::FileName(reinterpret_cast<const wchar_t *>(s.utf16()))
39 #define QStringToFileName(s) s.toLocal8Bit().constData()
42 #if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
45 Q_DECL_CONSTEXPR
typename std::add_const<T>::type &qAsConst(T &t) noexcept {
return t; }
48 void qAsConst(
const T &&) =
delete;
92 UNKNOWN_PROPERTY = -1,
106 REPLAYGAIN_TRACK_GAIN = 0,
109 REPLAYGAIN_ALBUM_PEAK
140 CHAN_FRONT_LEFT = 0x01,
141 CHAN_FRONT_RIGHT = 0x02,
142 CHAN_REAR_LEFT = 0x04,
143 CHAN_REAR_RIGHT = 0x08,
144 CHAN_FRONT_CENTER = 0x10,
145 CHAN_REAR_CENTER = 0x20,
146 CHAN_SIDE_LEFT = 0x40,
147 CHAN_SIDE_RIGHT = 0x80,
202 static bool isPortable();
205 #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
206 static QString wildcardToRegularExpression(
const QString &pattern);
207 static QString anchoredPattern(
const QString &expression);
211 static QString m_configDir;
212 static QString m_langID;
214 static QString m_appDir;
The Qmmp class stores global settings and enums.
Definition: qmmp.h:56
static void setConfigDir(const QString &path)
static void setUiLanguageID(const QString &code)
TrackProperty
Definition: qmmp.h:91
static QString strVersion()
ChannelPosition
Definition: qmmp.h:138
static QString dataPath()
State
Definition: qmmp.h:62
@ Stopped
Definition: qmmp.h:65
@ Paused
Definition: qmmp.h:64
@ NormalError
Definition: qmmp.h:67
@ Buffering
Definition: qmmp.h:66
static QString userDataPath()
MetaData
Definition: qmmp.h:74
@ ALBUMARTIST
Definition: qmmp.h:78
@ TRACK
Definition: qmmp.h:84
@ COMPOSER
Definition: qmmp.h:82
@ GENRE
Definition: qmmp.h:81
@ COMMENT
Definition: qmmp.h:80
@ ARTIST
Definition: qmmp.h:77
@ ALBUM
Definition: qmmp.h:79
@ YEAR
Definition: qmmp.h:83
AudioFormat
Definition: qmmp.h:115
@ PCM_S32BE
Definition: qmmp.h:128
@ PCM_U8
Definition: qmmp.h:118
@ PCM_S24BE
Definition: qmmp.h:124
@ PCM_S16BE
Definition: qmmp.h:120
@ PCM_S32LE
Definition: qmmp.h:127
@ PCM_U24BE
Definition: qmmp.h:126
@ PCM_U32BE
Definition: qmmp.h:130
@ PCM_S16LE
Definition: qmmp.h:119
@ PCM_S24LE
Definition: qmmp.h:123
@ PCM_U24LE
Definition: qmmp.h:125
@ PCM_U16BE
Definition: qmmp.h:122
@ PCM_U32LE
Definition: qmmp.h:129
@ PCM_U16LE
Definition: qmmp.h:121
ReplayGainKey
Definition: qmmp.h:105
@ REPLAYGAIN_ALBUM_GAIN
Definition: qmmp.h:108
@ REPLAYGAIN_TRACK_PEAK
Definition: qmmp.h:107
static QString systemLanguageID()
static QString uiLanguageID()
static QString configFile()
static QString configDir()
static QStringList findPlugins(const QString &prefix)
static QString pluginPath()