/usr/include/qmmp/qmmp.h is in libqmmp-dev 0.7.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /***************************************************************************
* Copyright (C) 2008-2013 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef QMMP_H
#define QMMP_H
#include <QString>
#define QMMP_VERSION_MAJOR 0
#define QMMP_VERSION_MINOR 7
#define QMMP_VERSION_PATCH 4
#define QMMP_VERSION_STABLE 1
#define QMMP_VERSION_INT (QMMP_VERSION_MAJOR<<16 | QMMP_VERSION_MINOR<<8 | QMMP_VERSION_PATCH)
/*! @brief The Qmmp class stores global settings and enums.
* @author Ilya Kotov <forkotov02@hotmail.ru>
*/
class Qmmp
{
public:
/*!
* Playback state enum
*/
enum State
{
Playing = 0, /*!< The player is playing source */
Paused, /*!< The player has currently paused its playback */
Stopped, /*!< The player is ready to play source */
Buffering, /*!< The Player is waiting for data to be able to start playing. */
NormalError, /*!< Input source is invalid or unsupported. Player should skip this file */
FatalError /*!< This means unrecorvable error die audio output problems. Player should abort playback. */
};
/*!
* Metadata keys
*/
enum MetaData
{
TITLE = 0, /*!< Title */
ARTIST, /*!< Artist */
ALBUM, /*!< Album */
COMMENT, /*!< Comment */
GENRE, /*!< Genre */
COMPOSER, /*!< Composer */
YEAR, /*!< Year */
TRACK, /*!< Track number */
DISCNUMBER,/*!< Disc number */
URL /*!< Stream url or local file path */
};
/*!
* Keys of ReplayGain information
*/
enum ReplayGainKey
{
REPLAYGAIN_TRACK_GAIN = 0, /*!< track gain */
REPLAYGAIN_TRACK_PEAK, /*!< track peak */
REPLAYGAIN_ALBUM_GAIN, /*!< album gain */
REPLAYGAIN_ALBUM_PEAK /*!< album peak */
};
/*!
* Audio formats
*/
enum AudioFormat
{
PCM_UNKNOWM = -1, /*!< Unknown format */
PCM_S8 = 0, /*!< Signed 8 bit */
PCM_S16LE, /*!< Signed 16 bit Little Endian */
PCM_S24LE, /*!< Signed 24 bit Little Endian using low three bytes in 32-bit word */
PCM_S32LE /*!< Signed 32 bit Little Endian */
};
/*!
* Returns configuration file path.
*/
static const QString configFile();
/*!
* Overrides default configuration file path.
*/
static void setConfigFile(const QString &path);
/*!
* Returns %Qmmp library version.
*/
static const QString strVersion();
/*!
* Returns the location of the installed Qmmp plugins.
*/
static const QString pluginsPath();
/*!
* Returns system language if uiLanguageID() is 'auto'. Otherwise returns uiLanguageID().
*/
static QString systemLanguageID();
/*!
* Returns state of the user interface language option. Code "auto" means autodetection.
*/
static QString uiLanguageID();
/*!
* Sets user interface language.
* @param code Language code; code "auto" means autodetection.
*/
static void setUiLanguageID(const QString &code);
private:
static QString m_configFile;
static QString m_langID;
};
#endif
|