]> git.tdb.fi Git - xinema.git/blob - source/xinema.h
Refactor the libxine interface into classes
[xinema.git] / source / xinema.h
1 #ifndef XINEMA_H_
2 #define XINEMA_H_
3
4 #include <msp/core/application.h>
5 #include <msp/core/mutex.h>
6 #include <msp/graphics/display.h>
7 #include <msp/graphics/window.h>
8
9 class XineEngine;
10 class XineStream;
11
12 class Xinema: public Msp::RegisteredApplication<Xinema>
13 {
14 private:
15         std::string filename;
16         Msp::Graphics::Display display;
17         Msp::Mutex display_mutex;
18         Msp::Graphics::Window window;
19         XineEngine *engine;
20         XineStream *stream;
21
22 public:
23         Xinema(int, char **);
24
25         virtual int main();
26
27 private:
28         virtual void tick();
29 };
30
31 #endif