summaryrefslogtreecommitdiff
path: root/src/vdr-plugin/mimetypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdr-plugin/mimetypes.h')
-rw-r--r--src/vdr-plugin/mimetypes.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/vdr-plugin/mimetypes.h b/src/vdr-plugin/mimetypes.h
new file mode 100644
index 0000000..76e735b
--- /dev/null
+++ b/src/vdr-plugin/mimetypes.h
@@ -0,0 +1,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