summaryrefslogtreecommitdiff
path: root/libcore/extrecinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcore/extrecinfo.h')
-rw-r--r--libcore/extrecinfo.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libcore/extrecinfo.h b/libcore/extrecinfo.h
new file mode 100644
index 0000000..9fb5bab
--- /dev/null
+++ b/libcore/extrecinfo.h
@@ -0,0 +1,36 @@
+#ifndef __EXTRECINFO_H
+#define __EXTRECINFO_H
+
+#include <vdr/recording.h>
+
+struct tAudioTrack {
+ string codec;
+ string bitrate;
+ string language;
+};
+
+class cExtRecInfo {
+private:
+ string xml;
+ size_t StripXmlTag(string &xmlstring, string &content, const char *tag, int start = 0);
+ size_t StripXmlTag(string &xmlstring, int &content, const char *tag, int start = 0);
+public:
+ cExtRecInfo(const char *xml);
+ ~cExtRecInfo(void);
+ bool Parse(void);
+ void Debug(void);
+ int resWidth;
+ int resHeight;
+ string resString;
+ bool isHD;
+ string aspectratio;
+ bool isWideScreen;
+ string codec;
+ string format;
+ string framerate;
+ string interlace;
+ bool isDolby;
+ vector< tAudioTrack > tracks;
+};
+
+#endif // __EXTRECINFO_H \ No newline at end of file