00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef QMMP_H
00021 #define QMMP_H
00022
00023 #include <QUrl>
00024 #include <QEvent>
00025
00029 class Qmmp
00030 {
00031 public:
00035 enum State
00036 {
00037 Playing = 0,
00038 Paused,
00039 Stopped,
00040 Buffering,
00041 NormalError,
00042 FatalError
00043 };
00047 enum MetaData
00048 {
00049 TITLE = 0,
00050 ARTIST,
00051 ALBUM,
00052 COMMENT,
00053 GENRE,
00054 COMPOSER,
00055 YEAR,
00056 TRACK,
00057 DISCNUMBER,
00058 URL
00059 };
00063 enum ReplayGainKey
00064 {
00065 REPLAYGAIN_TRACK_GAIN = 0,
00066 REPLAYGAIN_TRACK_PEAK,
00067 REPLAYGAIN_ALBUM_GAIN,
00068 REPLAYGAIN_ALBUM_PEAK
00069 };
00073 enum AudioFormat
00074 {
00075 PCM_UNKNOWM = -1,
00076 PCM_S8 = 0,
00077 PCM_S16LE,
00078 PCM_S24LE,
00079 PCM_S32LE
00080 };
00084 static const QString configFile();
00088 static void setConfigFile(const QString &path);
00092 static const QString strVersion();
00096 static const QString pluginsPath();
00100 static QString systemLanguageID();
00101
00102 private:
00103 static QString m_configFile;
00104
00105 };
00106
00107 #endif