Qmmp
|
00001 /*************************************************************************** 00002 * Copyright (C) 2008-2013 by Ilya Kotov * 00003 * forkotov02@hotmail.ru * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00019 ***************************************************************************/ 00020 #ifndef QMMP_H 00021 #define QMMP_H 00022 00023 #include <QString> 00024 00025 #define QMMP_VERSION_MAJOR 0 00026 #define QMMP_VERSION_MINOR 8 00027 #define QMMP_VERSION_PATCH 0 00028 #define QMMP_VERSION_STABLE 0 00029 00030 #define QMMP_VERSION_INT (QMMP_VERSION_MAJOR<<16 | QMMP_VERSION_MINOR<<8 | QMMP_VERSION_PATCH) 00031 00032 00036 class Qmmp 00037 { 00038 public: 00042 enum State 00043 { 00044 Playing = 0, 00045 Paused, 00046 Stopped, 00047 Buffering, 00048 NormalError, 00049 FatalError 00050 }; 00054 enum MetaData 00055 { 00056 TITLE = 0, 00057 ARTIST, 00058 ALBUM, 00059 COMMENT, 00060 GENRE, 00061 COMPOSER, 00062 YEAR, 00063 TRACK, 00064 DISCNUMBER, 00065 URL 00066 }; 00070 enum ReplayGainKey 00071 { 00072 REPLAYGAIN_TRACK_GAIN = 0, 00073 REPLAYGAIN_TRACK_PEAK, 00074 REPLAYGAIN_ALBUM_GAIN, 00075 REPLAYGAIN_ALBUM_PEAK 00076 }; 00080 enum AudioFormat 00081 { 00082 PCM_UNKNOWM = -1, 00083 PCM_S8 = 0, 00084 PCM_S16LE, 00085 PCM_S24LE, 00086 PCM_S32LE 00087 }; 00091 static const QString configFile(); 00095 static void setConfigFile(const QString &path); 00099 static const QString strVersion(); 00103 static const QString pluginsPath(); 00107 static QString systemLanguageID(); 00111 static QString uiLanguageID(); 00116 static void setUiLanguageID(const QString &code); 00117 00118 private: 00119 static QString m_configFile; 00120 static QString m_langID; 00121 00122 }; 00123 00124 #endif