[c925ac]: plugins / codec_wav / WavFormatMap.h Maximize Restore History

Download this file

WavFormatMap.h    44 lines (35 with data), 1.6 kB

 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
/***************************************************************************
WavFormatMap.h - list of known wav file formats
-------------------
begin : Apr 28 2002
copyright : (C) 2002 by Thomas Eschenbacher
email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef _WAV_FORMAT_MAP_H_
#define _WAV_FORMAT_MAP_H_
#include "config.h"
#include <qmap.h>
#include <qstring.h>
#include "WavFileFormat.h"
/**
* list of known wav file formats
*/
class WavFormatMap: public QMap<wav_format_id, QString>
{
public:
/** Constructor, fills the map with all known types */
WavFormatMap();
/** Destructor */
virtual ~WavFormatMap() {};
/** Returns the name of an id, or "unknown" if not found. */
const QString &findName(unsigned int id);
};
#endif /* _WAV_FORMAT_MAP_H_ */