blob: 76e735b74968c246101e7b0b3fe890560ee10a74 (
plain)
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
|
/*
* mimetypes.h: Web video plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef __WEBVIDEO_MIMETYPES_H
#define __WEBVIDEO_MIMETYPES_H
class cMimeListObject : public cListObject {
private:
char *type;
char *ext;
public:
cMimeListObject(const char *mimetype, const char *extension);
~cMimeListObject();
char *GetType() { return type; };
char *GetExtension() { return ext; };
};
class cMimeTypes {
private:
cList<cMimeListObject> types;
public:
cMimeTypes(const char **filenames);
char *ExtensionFromMimeType(const char *mimetype);
};
extern cMimeTypes *MimeTypes;
#endif
|