]> git.tdb.fi Git - xinema.git/blobdiff - source/xinestream.h
Refactor the libxine interface into classes
[xinema.git] / source / xinestream.h
diff --git a/source/xinestream.h b/source/xinestream.h
new file mode 100644 (file)
index 0000000..885797d
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef XINESTREAM_H_
+#define XINESTREAM_H_
+
+#include <string>
+#include <xine.h>
+
+class XineEngine;
+
+class XineStream
+{
+private:
+       xine_stream_t *stream;
+       xine_event_queue_t *queue;
+
+public:
+       XineStream(XineEngine &, const std::string &);
+       ~XineStream();
+
+       void play();
+       void stop();
+
+       void tick();
+private:
+       void handle_event(const xine_event_t &);
+};
+
+#endif